/* ─────────────────────────────────────────────────────────────
   Unclinq guides — shared styles. Warm editorial, washi paper,
   terracotta ink. Tuned for long-form reading.
   ───────────────────────────────────────────────────────────── */
:root {
  --paper:        #F8F1E7;
  --paper-deep:   #F0EAD6;
  --card:         #FDFBF7;
  --border:       #E6E2D6;
  --border-strong:#C8B8A8;
  --ink:          #2C332B;
  --ink-deep:     #1E2820;
  --umber:        #5D4037;
  --lichen:       #8C9688;
  --moss:         #4A6741;
  --terra:        #C06C54;
  --terra-light:  #D48C70;
  --terra-faint:  #FDF0E3;
  --serif: "Newsreader", Georgia, serif;
  --sans:  "Satoshi", "Nunito", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
* { margin: 0; padding: 0; box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; }
::selection { background: var(--terra); color: #fff; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 3px; }
a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terra); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── nav ── */
.gnav { border-bottom: 1px solid var(--border); background: rgba(248,241,231,0.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; }
.gnav-inner { max-width: 960px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--sans); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.22em; color: var(--terra); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.wordmark img { width: 30px; height: 30px; object-fit: contain; }
.gnav .cta { font-size: 0.8125rem; font-weight: 700; text-decoration: none; color: #FDFBF7; background: var(--ink); padding: 9px 18px; border-radius: 999px; }
.gnav .cta:hover { background: var(--ink-deep); color: #fff; }

/* ── breadcrumb ── */
.crumb { font-size: 0.8125rem; color: var(--lichen); margin: 28px 0 0; }
.crumb a { color: var(--lichen); }
.crumb a:hover { color: var(--terra); }

/* ── article ── */
.article { padding: 8px 0 64px; }
.eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); margin: 26px 0 14px; display: block; }
.article h1 { font-family: var(--serif); font-weight: 480; letter-spacing: -0.015em; font-size: clamp(2rem, 5vw, 2.875rem); line-height: 1.12; margin-bottom: 18px; }
.lede { font-size: 1.25rem; line-height: 1.6; color: var(--umber); margin-bottom: 14px; font-family: var(--serif); }
.byline { font-size: 0.8125rem; color: var(--lichen); margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 1.875rem); line-height: 1.25; margin: 44px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 32px 0 10px; }
.prose p { margin-bottom: 18px; color: var(--ink); }
.prose strong { color: var(--ink-deep); font-weight: 600; }
.prose em { color: var(--umber); }
.prose ul, .prose ol { margin: 0 0 18px 1.2em; }
.prose li { margin-bottom: 10px; }
.prose ul li::marker { color: var(--terra); }
.prose blockquote { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.5; color: var(--terra); border-left: 2px solid var(--terra); padding-left: 22px; margin: 30px 0; }

/* ── callout / CTA box ── */
.callout { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px 30px; margin: 36px 0; box-shadow: 0 10px 32px rgba(74,55,40,0.06); }
.callout h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3125rem; margin-bottom: 10px; }
.callout p { color: var(--umber); margin-bottom: 18px; font-size: 1rem; }
.btn-ink { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; text-decoration: none; border-radius: 999px; padding: 13px 26px; background: var(--ink); color: #FDFBF7; box-shadow: 0 8px 24px rgba(44,51,43,0.18); transition: transform 0.25s var(--ease-out), background 0.25s; }
.btn-ink:hover { background: var(--ink-deep); color: #fff; transform: translateY(-2px); }
.btn-ink .arrow { color: var(--terra-light); }

/* ── FAQ ── */
.faq { margin: 40px 0; }
.faq h2 { margin-bottom: 8px; }
details { border-top: 1px solid var(--border-strong); }
details:last-of-type { border-bottom: 1px solid var(--border-strong); }
summary { list-style: none; cursor: pointer; padding: 22px 4px; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-family: var(--serif); font-size: 1.125rem; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--terra); }
summary .pl { color: var(--terra); font-style: italic; flex: none; transition: transform 0.3s; }
details[open] summary .pl { transform: rotate(45deg); }
.faq-a { padding: 0 4px 22px; color: var(--umber); font-size: 1rem; }

/* ── related ── */
.related { margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--border); }
.related h2 { font-family: var(--serif); font-weight: 500; font-size: 1.375rem; margin-bottom: 18px; }
.related-list { display: grid; gap: 12px; }
.related-list a { display: block; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color 0.2s, transform 0.2s; }
.related-list a:hover { border-color: var(--terra); transform: translateX(4px); color: var(--ink); }

/* ── hub grid ── */
.hub-head { padding: 40px 0 8px; }
.hub-head h1 { font-family: var(--serif); font-weight: 480; font-size: clamp(2rem, 5vw, 2.875rem); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 16px; }
.hub-head p { color: var(--umber); font-size: 1.125rem; max-width: 56ch; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 36px 0 56px; }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { display: block; padding: 26px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s; }
.hub-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(74,55,40,0.1); color: var(--ink); }
.hub-card .k { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra); }
.hub-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.3125rem; line-height: 1.3; margin: 10px 0 8px; }
.hub-card p { color: var(--umber); font-size: 0.9375rem; line-height: 1.55; }

/* ── footer ── */
.gfoot { border-top: 1px solid var(--border); background: var(--paper-deep); padding: 40px 0; margin-top: 24px; }
.gfoot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.gfoot a { font-size: 0.875rem; color: var(--umber); }
.gfoot .tag { font-family: var(--serif); font-style: italic; color: var(--lichen); font-size: 0.9rem; }
.disclaimer { font-size: 0.8125rem; color: var(--lichen); line-height: 1.6; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none !important; } }
