/* AskGyd — editorial design system
   Warm paper, ink typography, terracotta accent. No build step. */

:root {
  --bg: #f4efe6;
  --bg-elevated: #fffdf8;
  --bg-muted: #ebe4d6;
  --ink: #1b1713;
  --ink-soft: #5a534a;
  --ink-faint: #8a8276;
  --line: #ddd4c5;
  --line-strong: #c9bead;
  --accent: #9b3a1c;
  --accent-hover: #7c2d15;
  --accent-soft: #f3e0d6;
  --forest: #2c4a3c;
  --forest-soft: #dce6df;
  --ochre: #c4923a;
  --ochre-soft: #f3e6c8;
  --shadow: 0 1px 2px rgba(27, 23, 19, 0.05), 0 10px 30px rgba(27, 23, 19, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --measure: 40.5rem;
  --wrap: 72rem;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Figtree", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, .serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 2.4rem 0 0.8rem; }
h3 { font-size: 1.28rem; margin: 1.8rem 0 0.55rem; }
p { margin: 0 0 1.05rem; }
p, li { overflow-wrap: break-word; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }
strong { font-weight: 650; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px;
  height: 34px;
}
.logo-word {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-word span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

/* Footer */
.site-footer {
  margin-top: 4.5rem;
  border-top: 1px solid var(--line);
  background: #ebe5d8;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  padding: 3.2rem 0 2.4rem;
}
.footer-brand .logo-word { font-size: 1.35rem; color: var(--ink); }
.footer-brand p { margin-top: 0.85rem; max-width: 22rem; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-note {
  background: var(--ochre-soft);
  color: var(--ink);
  font-size: 0.88rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.footer-note .wrap { display: flex; gap: 0.75rem; align-items: flex-start; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 620;
  font-size: 0.95rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--ink); }

/* Hero */
.hero {
  padding: 3.6rem 0 2.8rem;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.hero h1 { max-width: 16ch; margin: 0 0 1rem; }
.hero-dek {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-areas:
    "copy photo"
    "aside photo";
  gap: 1.4rem 2.5rem;
  align-items: start;
}
.hero-copy { grid-area: copy; }
.hero-photo {
  grid-area: photo;
  margin: 0;
  align-self: stretch;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.hero-aside {
  grid-area: aside;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.hero-aside h2 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}
.hero-aside ol { margin: 0; padding-left: 1.15rem; color: var(--ink-soft); font-size: 0.95rem; }

/* Sections */
.section { padding: 3.4rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: 0.95rem; }

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.cat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.cat-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-muted);
}
.cat-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-card-body {
  padding: 1.15rem 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
  color: inherit;
}
.cat-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
}
.cat-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}
.cat-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}
.cat-card .more {
  margin-top: 1rem;
  font-weight: 620;
  font-size: 0.88rem;
  color: var(--accent);
}

/* Guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.guide-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.guide-card-art {
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: var(--bg-muted);
  position: relative;
}
.guide-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-card-body { padding: 1.1rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.45rem;
}
.guide-card h3 { margin: 0 0 0.45rem; font-size: 1.22rem; }
.guide-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* Art palettes */
.art-a { background: linear-gradient(155deg, #2c4a3c 0%, #1d3329 60%, #9b3a1c 140%); }
.art-b { background: linear-gradient(155deg, #9b3a1c 0%, #5c2414 70%, #c4923a 140%); }
.art-c { background: linear-gradient(155deg, #1b1713 0%, #3a332c 55%, #8a8276 140%); }
.art-d { background: linear-gradient(155deg, #3d4f6b 0%, #243246 70%, #c4923a 150%); }
.art-e { background: linear-gradient(155deg, #5a3d2b 0%, #2c2118 65%, #9b3a1c 140%); }
.art-f { background: linear-gradient(155deg, #2a3d55 0%, #6b3a28 80%); }
.art-g { background: linear-gradient(155deg, #3d5a3c 0%, #1e2e1e 70%, #c4923a 150%); }

/* Q&A list */
.qa-list { display: grid; gap: 0.75rem; }
.qa-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: inherit;
}
.qa-item:hover { border-color: var(--line-strong); color: inherit; box-shadow: var(--shadow); }
.qa-q {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.qa-item h3 { margin: 0; font-size: 1.15rem; }
.qa-item p { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.qa-go { color: var(--accent); font-weight: 650; font-size: 0.9rem; }

/* Method band */
.method {
  background: var(--forest);
  color: #f4efe6;
  padding: 3.2rem 0;
  margin-top: 1rem;
}
.method h2 { color: #fff; margin: 0 0 0.8rem; }
.method p { color: #d7e0da; max-width: 44rem; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.method-grid article {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}
.method-grid h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.15rem; }
.method-grid p { margin: 0; color: #d7e0da; font-size: 0.95rem; }
.method a.btn { margin-top: 1.6rem; }

/* Page hero (inner) */
.page-hero {
  padding: 2.6rem 0 1.8rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0 0 0.7rem; max-width: 20ch; }
.page-hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; margin: 0; }
.crumbs {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Article layout */
.article-wrap {
  display: grid;
  grid-template-columns: var(--measure) 1fr;
  gap: 3.5rem;
  padding: 2.2rem 0 3rem;
  align-items: start;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}
.article-body { max-width: var(--measure); font-size: 1.1rem; line-height: 1.72; }
.article-body > p:first-of-type {
  font-size: 1.22rem;
  line-height: 1.55;
  color: #3a342c;
}
.disclosure {
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--ochre-soft);
  border-left: 3px solid var(--ochre);
  padding: 0.75rem 0.95rem;
  margin: 0 0 1.6rem;
  border-radius: 0 8px 8px 0;
}
.disclosure a { color: var(--ink); font-weight: 620; }
.article-body h2 { margin-top: 2.6rem; }
.article-body figure { margin: 1.6rem 0; }
.article-body figure img,
.article-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.article-photo figcaption,
.article-hero-fig figcaption {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0.5rem 0 0;
  line-height: 1.45;
}
.article-hero-fig,
.page-hero-photo {
  margin: 1.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-muted);
}
.article-hero-fig img,
.page-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1.5rem 0;
}
.callout strong { display: block; margin-bottom: 0.25rem; }
.takeaway {
  background: var(--forest-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.6rem 0;
}
.takeaway h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.toc h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}
.toc ol { margin: 0; padding-left: 1.15rem; font-size: 0.9rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* Product placeholder cards */
.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}
.product-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}
.product-card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.product-card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0 0 0.9rem; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.2rem 0 1.6rem;
}

/* Legal / about prose */
.prose {
  max-width: var(--measure);
  padding: 2.2rem 0 3rem;
  font-size: 1.05rem;
}
.prose h2:first-child { margin-top: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2.2rem 0 3rem;
  align-items: start;
}
form label {
  display: block;
  font-weight: 620;
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
}
form input,
form textarea,
form select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--ink);
  margin-bottom: 1rem;
}
form textarea { min-height: 9rem; resize: vertical; }
form input:focus,
form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-status {
  display: none;
  background: var(--forest-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 0.8rem;
}
.form-status.is-visible { display: block; }

/* 404 */
.error-page { padding: 5rem 0 6rem; text-align: left; }
.error-page h1 { font-size: clamp(3rem, 8vw, 6rem); margin: 0 0 0.4rem; }
.error-page p { font-size: 1.2rem; max-width: 32rem; color: var(--ink-soft); }

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.2rem 0 1.6rem;
  background: var(--bg-elevated);
}
.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.article-body th {
  background: var(--bg-muted);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 620;
  font-family: var(--font-serif);
  font-size: 1.12rem;
}
.faq details p { margin: 0.6rem 0 0.2rem; }

/* Category article list */
.cat-list { display: grid; gap: 1rem; padding: 2rem 0 3rem; }
.cat-list .guide-card { flex-direction: row; min-height: 0; }
.cat-list .guide-card-art { width: 240px; aspect-ratio: 4 / 3; height: auto; flex-shrink: 0; }
.cat-list .guide-card-body { justify-content: center; }
.related-topics {
  background: var(--bg-elevated);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin: 0 0 3rem;
}
.related-topics h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.related-topics ul { margin: 0.4rem 0 0; }

@media (max-width: 900px) {
  .hero-split,
  .cat-grid,
  .guide-grid,
  .method-grid,
  .footer-grid,
  .contact-grid,
  .article-wrap {
    grid-template-columns: 1fr;
  }
  .toc { position: static; margin-bottom: 0.5rem; }
  .cat-list .guide-card { flex-direction: column; }
  .cat-list .guide-card-art { width: 100%; aspect-ratio: 16 / 9; height: auto; }
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "photo"
      "aside";
  }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.25rem 1rem;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .qa-item { grid-template-columns: auto 1fr; }
  .qa-go { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap, .article-wrap { width: min(var(--wrap), calc(100% - 1.5rem)); }
  .cat-grid, .guide-grid, .footer-grid, .method-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.2rem; }
  .logo-word { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat-card, .guide-card, .btn { transition: none; }
}
