/* Gilune user documentation — one stylesheet for every page.
   Light, quiet, lots of air. System fonts only; no external assets. */

:root {
  color-scheme: light;

  --ink: #1D2026;
  --ink-soft: #4A5058;
  --ink-faint: #6E757F;
  --bg: #FCFCFD;
  --panel: #F6F7F9;
  --line: #E3E5EA;
  --line-soft: #EDEEF2;
  --accent: #3F5B8B;
  --accent-deep: #2F4570;
  --accent-wash: #EEF1F7;

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, "DejaVu Sans Mono", monospace;

  --col: 820px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 18px 24px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: var(--accent);
}

.brand img {
  width: 25px;
  height: 25px;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14.5px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav a.here {
  color: var(--accent);
  font-weight: 600;
}

/* The way to the source, set apart from the guide pages it follows. */
.site-nav a.github {
  display: inline-flex;
  align-items: center;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.site-nav a.github svg {
  display: block;
}

/* ----------------------------------------------------------------- shell */

main {
  max-width: var(--col);
  margin: 0 auto;
  padding: 46px 24px 72px;
}

section {
  margin: 0 0 46px;
}

/* ------------------------------------------------------------- typography */

h1 {
  font-size: 33px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
}

h2 {
  font-size: 22px;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 46px 0 12px;
  padding-top: 4px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 30px 0 8px;
}

p {
  margin: 0 0 15px;
}

.lede {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.muted {
  color: var(--ink-faint);
  font-size: 14.5px;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(63, 91, 139, 0.35);
  text-underline-offset: 2.5px;
}

a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin: 0 0 7px;
}

li > ul,
li > ol {
  margin-top: 7px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

strong {
  font-weight: 600;
}

/* -------------------------------------------------------- code and keycaps */

code {
  font-family: var(--mono);
  font-size: 0.885em;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

pre {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.62;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 17px;
  margin: 0 0 18px;
  overflow-x: auto;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  white-space: pre;
}

kbd {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1;
  display: inline-block;
  padding: 3px 6px 4px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-color: #D3D6DD;
  border-radius: 5px;
  box-shadow: 0 1px 0 rgba(29, 32, 38, 0.05);
  white-space: nowrap;
}

/* ----------------------------------------------------------- screenshots */

figure {
  margin: 22px 0 26px;
}

figure img,
.shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(29, 32, 38, 0.04), 0 6px 20px rgba(29, 32, 38, 0.06);
  background: #fff;
}

figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- tables */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  line-height: 1.55;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
}

thead th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td code {
  white-space: nowrap;
}

td:first-child {
  white-space: nowrap;
}

/* ---------------------------------------------------------------- notes */

.note {
  background: var(--accent-wash);
  border: 1px solid #DDE3EF;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.62;
}

.note p:last-child {
  margin-bottom: 0;
}

.note strong {
  color: var(--accent-deep);
}

/* -------------------------------------------------------- landing hero */

.hero {
  text-align: center;
  padding: 20px 0 6px;
  margin-bottom: 40px;
}

.hero img.mark {
  width: 118px;
  height: auto;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  margin: 0 auto 14px;
  display: block;
}

.hero h1 {
  font-size: 40px;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------------------------------------------------------- guide index */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
}

.cards a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
}

.cards a:hover {
  border-color: #C8D0E0;
  background: var(--accent-wash);
}

.cards strong {
  display: block;
  color: var(--accent);
  margin-bottom: 2px;
  font-size: 15.5px;
}

.cards span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.site-footer .inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 20px 24px 30px;
  font-size: 14px;
  color: var(--ink-faint);
}

.site-footer a {
  color: var(--ink-faint);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.62;
  }

  main {
    padding: 30px 18px 56px;
  }

  .site-header .inner,
  .site-footer .inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 27px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .tagline {
    font-size: 17px;
  }

  h2 {
    font-size: 20px;
    margin-top: 38px;
  }

  .lede {
    font-size: 17px;
  }

  .site-nav {
    gap: 4px 14px;
    font-size: 14px;
  }
}
