/* Afghanchat guide — clean paper + clay, compact type */

:root {
  --ink: #1c1612;
  --ink-soft: #4a4038;
  --paper: #f5efe7;
  --paper-card: rgba(255, 255, 255, 0.55);
  --clay: #8f4728;
  --clay-deep: #6e351c;
  --sage: #4a5a48;
  --line: rgba(28, 22, 18, 0.1);
  --muted: #6e6258;
  --max: 38rem;
  --wide: 64rem;
  --radius: 0.65rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(143, 71, 40, 0.09), transparent 55%),
    linear-gradient(180deg, #f8f3ec 0%, var(--paper) 45%, #ebe3d8 100%);
}

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

a {
  color: var(--clay-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--clay);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 50;
  background: #fff;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
}

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

.site-header {
  padding: 0.85rem 0 0.25rem;
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--clay);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.95rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.05rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--clay);
  color: var(--ink);
}

.hero {
  padding: 1.6rem 0 1.25rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 0.55rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  font-size: clamp(1.55rem, 3.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

.lede {
  margin: 0 0 1rem;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--clay);
  color: #fff8f2;
}

.btn-primary:hover {
  background: var(--clay-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.hero-panel {
  min-height: 11rem;
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(26, 20, 16, 0.5), rgba(26, 20, 16, 0.12)),
    linear-gradient(160deg, #5a3f30, #2a211c 55%, #1a1410);
  box-shadow: 0 16px 36px rgba(26, 20, 16, 0.14);
  position: relative;
  overflow: hidden;
}

.hero-panel p {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  color: #f3ebe3;
  font-size: 0.85rem;
  max-width: 20rem;
  line-height: 1.45;
}

main {
  padding-bottom: 2.25rem;
}

.section {
  padding: 1.15rem 0;
}

.section h2,
.prose h2 {
  margin: 0 0 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  letter-spacing: -0.02em;
}

.prose {
  max-width: var(--max);
}

.prose p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.prose ul {
  margin: 0 0 0.85rem;
  padding-left: 1.05rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.prose li {
  margin-bottom: 0.3rem;
}

.note {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.85rem;
  border-left: 2px solid var(--clay);
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-radius: 0 0.4rem 0.4rem 0;
}

.link-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
}

.link-list a {
  display: block;
  padding: 0.65rem 0.8rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

.link-list a:hover {
  border-color: rgba(143, 71, 40, 0.35);
}

.link-list a strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.link-list a span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.cta-band {
  margin: 1.35rem 0 0;
  padding: 1.1rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(125deg, #262019, #3d3228);
  color: #f2e9e0;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.15rem;
}

.cta-band p {
  margin: 0 0 0.85rem;
  color: rgba(242, 233, 224, 0.82);
  max-width: 32rem;
  font-size: 0.88rem;
}

.cta-band .btn-primary {
  background: #e4bfa7;
  color: #2a1810;
}

.cta-band .btn-primary:hover {
  background: #efd2bc;
  color: #1a1410;
}

.site-footer {
  margin-top: 0.5rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--line);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer .foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  justify-content: space-between;
}

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

.site-footer a:hover {
  text-decoration: underline;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.65rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.85rem;
}

.faq p {
  margin: 0.4rem 0 0.1rem;
  font-size: 0.88rem;
}

.page-hero {
  padding: 1.35rem 0 0.5rem;
}

.crumbs {
  margin: 0 0 0.65rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--clay);
  text-decoration: underline;
}
