/* Association Records – "Kaustaregister": bone ledger paper, olive folders, salmon index tabs,
   olive-black ink, numbers stamped in IBM Plex Mono. */

@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.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; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.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; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.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; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.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; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.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; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.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; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f3f1e7;
  --sheet: #fffefa;
  --sunk: #e8e5d6;
  --rule: #e2decc;
  --line: #d6d2bf;
  --ink: #22261a;
  --soft: #555a48;
  --olive: #5e6b24;
  --olive-dark: #46511a;
  --olive-tint: #e3e7cc;
  --salmon: #ee8466;
  --salmon-text: #a3401f;
  --folder: #2f3520;
  --sans: "Plex Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--salmon); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.small { font-size: 0.9rem; color: var(--soft); }

.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  background: var(--folder);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
}
.kicker { font-family: var(--mono); font-size: 0.9rem; color: var(--olive-dark); text-transform: uppercase; letter-spacing: 0.06em; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.kicker .stamp { text-transform: none; }
.text-link { font-weight: 600; color: var(--olive-dark); }
.text-link.light { color: #fff; }

/* Header with folder edge */
.top { padding-top: 14px; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 10px 2px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a[aria-current="page"], .nav a:hover { color: var(--olive-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.edge { position: relative; height: 18px; border-bottom: 4px solid var(--olive); margin-top: 10px; }
.edge i { position: absolute; bottom: 0; width: 44px; height: 12px; border-radius: 4px 4px 0 0; }
.edge i:nth-child(1) { right: 120px; background: var(--olive-tint); }
.edge i:nth-child(2) { right: 64px; background: var(--salmon); }
.edge i:nth-child(3) { right: 8px; background: var(--olive); }

/* Hero */
.hero { padding: 48px 0 56px; background-image: repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule) 39px 40px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--soft); max-width: 36em; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 28px 0 22px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.facts li { font-family: var(--mono); font-size: 0.88rem; border: 1.5px solid var(--line); background: var(--sheet); padding: 4px 10px; border-radius: 3px; }

/* Folder holding a real screenshot */
.folder { position: relative; margin: 0; padding: 26px 0 0 22px; }
.folder::before { content: ""; position: absolute; inset: 14px 22px 0 0; background: var(--olive); border-radius: 8px; }
.folder-tab {
  position: absolute; top: 0; left: 34px; z-index: 1;
  min-width: 110px; height: 30px; padding: 0 12px;
  background: var(--salmon); border-radius: 6px 6px 0 0;
  font-family: var(--mono); font-weight: 600; font-size: 0.9rem; line-height: 30px; color: var(--ink);
}
.sheet { position: relative; z-index: 2; background: var(--sheet); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; margin-top: 18px; box-shadow: 0 12px 30px rgba(34, 38, 26, 0.18); }
.hero-folder { max-width: 380px; justify-self: center; width: 100%; }
.folder.small { padding: 18px 0 0 14px; }
.folder.small::before { inset: 10px 14px 0 0; }
.folder.small .folder-tab { min-width: 54px; height: 20px; left: 24px; }
.folder.small .sheet { margin-top: 12px; border-radius: 10px; box-shadow: none; }

/* Ledger */
.ledger-wrap { padding: 56px 0; background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { max-width: 26em; }
.section-lead { color: var(--soft); max-width: 44em; }
.ledger { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { border-bottom: 1px solid var(--line); }
.ledger a { display: grid; grid-template-columns: 90px minmax(0, 260px) minmax(0, 1fr); gap: 16px; padding: 16px 4px; text-decoration: none; color: var(--ink); align-items: baseline; border-left: 4px solid transparent; }
.ledger a:hover { background: var(--paper); border-left-color: var(--salmon); }
.ledger-no { font-family: var(--mono); font-weight: 600; color: var(--salmon-text); }
.ledger-title { font-weight: 700; font-size: 1.1rem; }
.ledger-text { color: var(--soft); }

/* Stories */
.story { padding: 72px 0; }
.story-alt { background: var(--olive-tint); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.story-alt .story-text { order: 2; }
.story-no { margin-bottom: 10px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 6px 0 6px 30px; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 8px; border-left: 3px solid var(--olive); border-bottom: 3px solid var(--olive); transform: rotate(-45deg); }
.story-shots { display: grid; gap: 24px; justify-items: center; }
.shots-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.shots-2 figure:nth-child(2) { margin-top: 56px; }
.shots-1 figure { max-width: 320px; width: 100%; }

/* Access levels */
.access { padding: 64px 0; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.access-card { background: var(--sheet); border: 1.5px solid var(--line); border-top: 8px solid var(--olive); border-radius: 6px; padding: 20px; }
.access-card.access-1 { border-top-color: var(--salmon); }
.access-card.access-2 { border-top-color: var(--folder); }
.access-card p { margin: 0; color: var(--soft); }

/* Templates */
.templates { padding: 8px 0 64px; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0 16px; }
.tpl { padding: 18px 20px; border-left: 4px solid var(--salmon); background: var(--sheet); border-radius: 0 6px 6px 0; }
.tpl p { margin: 0; color: var(--soft); font-size: 0.97rem; }

/* Privacy band */
.privacy-band { background: var(--folder); color: #fff; padding: 56px 0; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px 48px; align-items: start; }
.privacy-band h2 { color: #fff; }
.privacy-band ul { list-style: none; padding: 0; margin: 0; grid-row: span 2; }
.privacy-band li { padding: 10px 0 10px 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); position: relative; }
.privacy-band li::before { content: ""; position: absolute; left: 0; top: 17px; width: 18px; height: 10px; background: var(--salmon); border-radius: 3px 3px 0 0; }

/* FAQ */
.faq { padding: 64px 0; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style-position: outside; }
details p { color: var(--soft); }

/* Final CTA */
.final { padding: 48px 0 64px; }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--sheet); border: 2px solid var(--ink); border-radius: 10px; padding: 28px; position: relative; }
.final-inner::before { content: ""; position: absolute; top: -14px; left: 28px; width: 90px; height: 14px; background: var(--salmon); border-radius: 6px 6px 0 0; }
.final h2 { font-size: 1.6rem; }
.final p { margin: 0; color: var(--soft); }

/* Store button */
.play { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; background: var(--olive); color: #fff; border-radius: 6px; padding: 10px 20px 10px 16px; min-height: 56px; position: relative; }
.play:hover { background: var(--olive-dark); color: #fff; }
.play-tab { width: 22px; height: 28px; border-radius: 3px; background: var(--salmon); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.play-big { font-weight: 700; font-size: 1.1rem; }
.play-soon { background: var(--sunk); color: var(--ink); cursor: default; }

/* Pages */
.page { padding: 40px 0 72px; }
.steps { padding: 0; margin: 24px 0 32px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 64px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 4px; font-family: var(--mono); font-weight: 600; background: var(--folder); color: #fff; padding: 2px 8px; border-radius: 3px; }
.steps h2 { font-size: 1.3rem; }
.page h2 { margin-top: 1.4em; }
.steps h2 { margin-top: 0; }
.search-table { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; }
.search-table dt code { font-family: var(--mono); background: var(--olive-tint); padding: 2px 8px; border-radius: 3px; }
.search-table dd { margin: 0; color: var(--soft); }
.legal h2 { font-size: 1.3rem; }

/* Footer */
.foot { border-top: 4px solid var(--olive); background: var(--sheet); padding: 32px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 10px; }
.foot-name { margin: 0; font-weight: 700; }
.foot-small { margin: 0; font-size: 0.88rem; color: var(--soft); }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.foot-links a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hero-grid, .story-grid, .privacy-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .story-alt .story-text { order: 0; }
  .access-grid, .tpl-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger a { grid-template-columns: 64px minmax(0, 1fr); }
  .ledger-text { grid-column: 2; }
  .privacy-band ul { grid-row: auto; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 32px; }
  .lead { font-size: 1.08rem; }
  .story-shots { gap: 12px; }
  .shots-2 figure:nth-child(2) { margin-top: 32px; }
  .shots-1 figure { max-width: 240px; }
  .edge i { width: 30px; }
  .edge i:nth-child(1) { right: 84px; }
  .edge i:nth-child(2) { right: 46px; }
  .final-inner { padding: 22px 18px; }
  .search-table { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
