/* Knud — shared styles for subpages. The front page carries its own copy inline. */
:root {
  --paper: #F4EDE2; --paper-2: #EDE3D3; --manila: #F1D48C;
  --ink: #1F1A17; --ink-2: #4A413B; --ink-3: #8A7F75;
  --terra: #E8694A; --terra-2: #C7533A;
  --rule: rgba(31,26,23,0.12); --red-rule: rgba(232,105,74,0.45);
  --mint: #D9F2D9; --lav: #DDDDF4; --sky: #D9EBFA; --pink: #F5DED8; --sand: #F2EDD1; --peach: #FAE6D9;
  --shadow: 0 1px 2px rgba(31,26,23,.08), 0 10px 30px -12px rgba(31,26,23,.25);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.55; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; font-variation-settings: "opsz" 144; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* Nav (folder tabs) */
nav { position: sticky; top: 0; z-index: 50; background: rgba(244,237,226,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.nav-inner { display: flex; align-items: flex-end; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; font-family: 'Fraunces', serif; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.tabs { display: flex; gap: 6px; align-items: flex-end; }
.tab { font-size: 13.5px; font-weight: 500; padding: 8px 16px 10px; border: 2px solid var(--ink); border-bottom: none; border-radius: 10px 10px 0 0; background: var(--paper-2); position: relative; top: 2px; white-space: nowrap; transition: background .15s, transform .15s; }
.tab:hover { background: var(--manila); transform: translateY(-3px); }
.tab--on { background: #fff; }
.tab--hot { background: var(--terra); color: #fff; }
.tab--hot:hover { background: var(--terra-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; font-size: 15px; padding: 14px 22px; border-radius: 12px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--terra); transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--terra); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--terra); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn--terra { background: var(--terra); border-color: var(--terra); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn--terra:hover { box-shadow: 6px 6px 0 var(--ink); }

/* Page layout */
main { flex: 1; padding: 72px 0 110px; }
.page-head { max-width: 760px; margin-bottom: 44px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 72px); margin-bottom: 16px; }
.page-head p { font-size: 19px; font-weight: 300; color: var(--ink-2); max-width: 560px; }
.page-head .updated { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }

/* Index card sections */
.cards { display: grid; gap: 22px; max-width: 760px; }
.card { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 28px 26px 26px; box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 50px; height: 2px; background: var(--red-rule); }
.card h2 { font-size: 24px; margin-bottom: 14px; font-variation-settings: "opsz" 48; }
.card h3 { font-size: 17px; margin: 18px 0 8px; font-family: 'DM Sans', sans-serif; font-weight: 500; letter-spacing: 0; }
.card p, .card li { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.card p + p { margin-top: 10px; }
.card ul { margin: 8px 0 8px 20px; display: grid; gap: 4px; }
.card a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.card strong { color: var(--ink); font-weight: 500; }

/* Contact block (manila folder) */
.folder { position: relative; background: var(--manila); border: 2px solid var(--ink); border-radius: 0 12px 12px 12px; padding: 26px 26px 24px; margin-top: 16px; max-width: 760px; }
.folder::before { content: ""; position: absolute; top: -16px; left: -2px; width: 40%; height: 18px; background: var(--manila); border: 2px solid var(--ink); border-bottom: none; border-radius: 8px 8px 0 0; }
.folder h2 { font-size: 24px; margin-bottom: 8px; font-variation-settings: "opsz" 48; }
.folder p { color: var(--ink-2); font-size: 16px; }
.folder .btn { margin-top: 16px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; font-variation-settings: "opsz" 48; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'IBM Plex Mono', monospace; font-size: 24px; color: var(--terra); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); font-size: 16px; max-width: 620px; line-height: 1.6; }

.back { display: inline-block; margin-top: 44px; font-weight: 500; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.back:hover { color: var(--terra); border-color: var(--terra); }

/* Footer */
footer { border-top: 2px solid var(--ink); background: var(--paper-2); padding: 48px 0 32px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot a { display: block; font-size: 14.5px; margin-bottom: 8px; } .foot a:hover { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.foot .brand { padding: 0; margin-bottom: 8px; }
.foot p { font-size: 13.5px; color: var(--ink-2); max-width: 300px; }
.foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1.5px dashed var(--rule); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media (max-width: 1000px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-inner { height: 58px; }
  .brand { font-size: 19px; padding-bottom: 12px; }
  .tab { padding: 6px 11px 8px; font-size: 12.5px; }
  .tab--hide-sm { display: none; }
  main { padding: 48px 0 80px; }
  .page-head h1 { font-size: 38px; }
  .foot { grid-template-columns: 1fr; }
}
