/* ==========================================================================
   Fonts, self-hosted. Byte-identical to what fonts.googleapis.com served, so
   nothing changes visually; it just removes two cross-origin round trips
   (googleapis then gstatic) from the critical path. Refresh with the recipe in
   landing/README.md if the families ever change.
   ========================================================================== */

/* Instrument Serif · latin-ext */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Instrument Serif · latin */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter · latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter · latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Glutt — guides, FAQ and about pages
   The homepage's editorial chapter as a reading page: same bone ground, same
   Inter + Instrument Serif, same green, same dark footer. Self-contained so
   landing.css (the scroll story) and styles.css (legal pages) stay untouched.
   ========================================================================== */

:root {
  --ink: #100d0b;
  --bone: #f3efe6;
  --bone-2: #e9e2d4;
  --char: #1f1b18;
  --muted: #6c645d;
  --green: #1f6b45;
  --green-lit: #5aab7e;
  --green-soft: #d7eadf;
  --amber-soft: #f6e7c9;
  --on-dark: #f1ece2;
  --on-dark-2: rgba(241, 236, 226, 0.66);
  --on-dark-3: rgba(241, 236, 226, 0.38);
  --hair: rgba(241, 236, 226, 0.14);
  --hair-lt: rgba(31, 27, 24, 0.14);

  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --e-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --pad: clamp(1rem, 4vw, 4.5rem);
  --wrap: 1440px;
  --read: 44rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body.gd {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.08vw, 1.0625rem);
  line-height: 1.65;
  color: var(--char);
  background: var(--bone);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--green);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--char);
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 220ms var(--e-out);
}

.skip-link:focus-visible {
  transform: none;
}

/* ------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.011em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 220ms var(--e-out), box-shadow 220ms var(--e-out);
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 10px 30px -12px rgba(31, 107, 69, 0.9);
}

.btn--primary:hover {
  background: #23794e;
}

.btn--sm {
  padding: 0.62em 1.15em;
  font-size: 0.85rem;
}

/* --------------------------------- nav ---------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(0.9rem, 1.6vw, 1.3rem) var(--pad);
  background: rgba(243, 239, 230, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair-lt);
}

.nav__brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
  margin-left: auto;
}

.nav__link {
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 220ms var(--e-out);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  opacity: 1;
}

/* ------------------------------- article -------------------------------- */

.doc {
  padding-block: clamp(2.5rem, 7vh, 5rem) clamp(3rem, 9vh, 6rem);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  opacity: 0.6;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.doc__head,
.doc__body,
.doc__foot {
  max-width: var(--read);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.doc h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.doc h1 em {
  color: var(--green);
}

.lede {
  margin: 0 0 1.4rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--hair-lt);
  font-size: 0.82rem;
  color: var(--muted);
}

.answer {
  margin: 0 0 2.4rem;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  background: var(--green-soft);
}

.answer > strong:first-child {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.answer p {
  margin: 0;
}

.doc__body h2 {
  margin: 2.8rem 0 0.9rem;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.doc__body h3 {
  margin: 1.9rem 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.doc__body p,
.doc__body ul,
.doc__body ol {
  margin: 0 0 1.05rem;
}

.doc__body ul,
.doc__body ol {
  padding-left: 1.3rem;
}

.doc__body li + li {
  margin-top: 0.4rem;
}

.doc__body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc__body blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--green);
}

.doc__body blockquote p {
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
}

.doc__body blockquote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.note {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--amber-soft);
  font-size: 0.95rem;
}

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

.table {
  margin: 1.4rem 0 1.8rem;
  overflow-x: auto;
  border: 1px solid var(--hair-lt);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.table table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}

.table th,
.table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hair-lt);
}

.table thead th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bone-2);
}

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

.table tbody th {
  font-weight: 650;
}

.shot {
  margin: 1.8rem 0;
  display: flex;
  gap: 1rem;
}

.shot figure {
  margin: 0;
  flex: 1 1 0;
  max-width: 15rem;
}

.shot img {
  border-radius: 22px;
  box-shadow: 0 18px 40px -22px rgba(31, 27, 24, 0.55);
}

.shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.demo {
  margin: 0 0 2.4rem;
}

.demo video {
  width: min(100%, 16rem);
  border-radius: 22px;
  background: var(--ink);
  box-shadow: 0 18px 40px -22px rgba(31, 27, 24, 0.55);
}

.demo figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* FAQ: visible text, not collapsed, so every answer is readable in the HTML */
.faq {
  margin-top: 2.8rem;
}

.faq h3 {
  margin-top: 1.5rem;
}

/* sources */
.sources {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hair-lt);
  font-size: 0.85rem;
  color: var(--muted);
}

.sources h2 {
  margin: 0 0 0.6rem !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sources ol {
  padding-left: 1.1rem;
}

/* related guides + CTA */
.doc__foot {
  margin-top: 3rem;
}

.related h2 {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.related ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related a {
  display: block;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--hair-lt);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 220ms var(--e-out), background 220ms var(--e-out);
}

.related a:hover {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.5);
}

.related a span {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
}

.cta {
  margin-top: 2.4rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 24px;
  background: var(--ink);
  color: var(--on-dark);
}

.cta h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.cta h2 em {
  color: var(--green-lit);
}

.cta p {
  margin: 0 0 1.4rem;
  color: var(--on-dark-2);
}

.cta small {
  display: block;
  margin-top: 0.9rem;
  color: var(--on-dark-3);
  font-size: 0.8rem;
}

/* hub cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.cards a {
  display: block;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--hair-lt);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: border-color 220ms var(--e-out), transform 220ms var(--e-out);
}

.cards a:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.cards h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cards p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.ft {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(3rem, 8vh, 5rem) clamp(2rem, 5vh, 3.5rem);
}

.ft__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 4rem);
}

.ft__brand strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ft__brand p {
  margin: 0;
  color: var(--on-dark-2);
  font-size: 0.92rem;
  max-width: 32ch;
}

.ft__muted {
  color: var(--on-dark-3) !important;
  font-size: 0.86rem !important;
  margin-top: 0.5rem !important;
}

.ft__muted a {
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}

.ft__col {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.ft__col h2 {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.ft__col a {
  width: fit-content;
  color: var(--on-dark-2);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 220ms var(--e-out);
}

.ft__col a:hover {
  color: var(--on-dark);
}

/* ------------------------------- mobile --------------------------------- */

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }

  .ft__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .shot figure {
    max-width: none;
  }
}
