@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: Caveat; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-latin-500-normal.woff2") format("woff2"); }

/* Folio's own palette: the desk, the page, the ink. */
:root {
  --desk: #ebe4d8;
  --desk-2: #e3dbcf;
  --page: #f6f1e8;
  --ink: #2c261f;
  --soft: #5c5348;
  --rule: #ddd2c1;
  --terra: #a34c2e;
  --terra-deep: #8c3f25;
  --quill: #1c3d72;
  --card: #fbf8f2;
  --shadow: 62, 44, 28;
  --serif: "EB Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #141210;
    --desk-2: #0e0d0b;
    --page: #1c1a17;
    --ink: #e8e2d6;
    --soft: #b3a998;
    --rule: #34302a;
    --terra: #e0896a;
    --terra-deep: #eba085;
    --quill: #9db4e0;
    --card: #211e1a;
    --shadow: 0, 0, 0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 400 19px/1.55 var(--serif);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-underline-offset: 3px; }
a:hover { color: var(--terra-deep); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.82em; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 0.1em 0.35em; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--page); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--desk) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand-lockup { display: flex; align-items: center; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 500; letter-spacing: 0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.by-basalt { font: 400 0.75rem/1 var(--mono); letter-spacing: 0.04em; color: var(--soft); text-decoration: none; margin-left: 10px; padding-top: 4px; white-space: nowrap; }
.by-basalt:hover { color: var(--ink); text-decoration: underline; }
.nav-links { display: flex; gap: 28px; font-size: 17px; }
.nav-links a { color: var(--soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.nav-gh { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); text-decoration: none; font-size: 17px; }
.nav-gh svg { width: 18px; height: 18px; }
.nav-gh:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; text-decoration: none; font: 500 15px/1 var(--sans); padding: 12px 20px; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--page); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--terra)); color: var(--page); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { color: var(--ink); border-color: var(--soft); }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* Hero: the headline in the middle, real pieces of the app around it. */
.hero { position: relative; padding: 72px 0 40px; }
.hero-center { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; text-align: center; }
.kicker { font: 500 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); margin: 0 0 22px; }
.hero h1 { font-weight: 500; font-size: clamp(44px, 6.4vw, 78px); line-height: 0.98; letter-spacing: -0.015em; margin: 0; }
.hero h1 em { color: var(--terra); }
.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--soft); margin: 26px auto 0; max-width: 28em; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.trust { font: 400 14px/1.5 var(--sans); color: var(--soft); margin: 16px 0 0; }
.trust a { color: var(--soft); }

.floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float { position: absolute; margin: 0; background: var(--card); border-radius: 12px; box-shadow: 0 1px 2px rgba(var(--shadow), .10), 0 14px 34px -10px rgba(var(--shadow), .30); overflow: hidden; }
.float img { width: 100%; }
.f1 { width: 220px; left: 0; top: 10px; transform: rotate(-4deg); }
.f2 { width: 210px; left: 20px; top: 300px; transform: rotate(3deg); }
.f3 { width: 220px; right: 0; top: 0; transform: rotate(4deg); }
.f4 { width: 220px; right: 14px; top: 290px; transform: rotate(-3deg); }
@media (max-width: 1160px) { .floats { display: none; } .hero { padding-top: 56px; } }

.hero-shot { position: relative; z-index: 2; margin: 64px auto 0; max-width: 1100px; }
.frame { margin: 0; border-radius: 14px; overflow: hidden; background: var(--desk-2); box-shadow: 0 1px 2px rgba(var(--shadow), .10), 0 30px 70px -24px rgba(var(--shadow), .45); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.frame img { width: 100%; }
.caption { font-style: italic; color: var(--soft); text-align: center; font-size: 17px; margin: 16px auto 0; max-width: 46em; }

/* Sections */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.eyebrow { font: 500 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); margin: 0 0 14px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-weight: 500; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.section-head p { color: var(--soft); font-size: 20px; margin: 18px 0 0; }

.glossary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.glossary li { background: var(--page); border: 1px solid var(--rule); border-radius: 12px; padding: 24px 22px 22px; }
.glossary b { display: block; font-weight: 500; font-size: 26px; line-height: 1.1; }
.glossary .is { display: block; font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 8px 0 12px; }
.glossary p { margin: 0; color: var(--soft); font-size: 17.5px; line-height: 1.5; }
.ink { font-family: Caveat, cursive; color: var(--quill); font-size: 1.22em; line-height: 1.1; }
.mark { color: var(--terra); font-size: 0.7em; position: relative; top: -0.5em; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-weight: 500; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; margin: 0 0 16px; }
.feature p { margin: 0 0 14px; color: var(--soft); }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--soft); }
.feature li { margin: 0 0 8px; }
.feature li b { color: var(--ink); font-weight: 500; }

/* The catch */
.catch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.catch li { background: var(--page); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 24px; }
.catch h3 { font-weight: 500; font-size: 23px; margin: 0 0 8px; }
.catch p { margin: 0; color: var(--soft); font-size: 17.5px; }

/* Download */
.download { text-align: center; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; margin-top: 8px; }
.platform { background: var(--page); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; }
.platform h3 { font-weight: 500; font-size: 26px; margin: 0 0 4px; }
.platform .files { font: 400 13px/1.5 var(--mono); color: var(--soft); margin: 0 0 14px; }
.platform ol { margin: 0 0 18px; padding-left: 1.2em; color: var(--soft); font-size: 17px; }
.platform li { margin-bottom: 6px; }
.platform .btn { margin-top: auto; align-self: flex-start; }
.note { color: var(--soft); font-size: 17px; max-width: 46em; margin: 28px auto 0; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-size: 22px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; color: var(--soft); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--soft); }

/* Documents: privacy, terms, 404 */
.doc { padding: 64px 0 96px; }
.doc-wrap { max-width: 760px; }
.doc h1 { font-weight: 500; font-size: clamp(40px, 6vw, 58px); line-height: 1.05; margin: 0 0 8px; }
.doc-meta { color: var(--soft); font-style: italic; margin: 0 0 36px; }
.doc h2 { font-weight: 500; font-size: 28px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--soft); }
.doc li { margin-bottom: 8px; }
.doc b { color: var(--ink); font-weight: 500; }
.doc .lede-doc { font-size: 22px; color: var(--ink); }

/* Basalt product footer (basalt/footer), mapped to Folio's tokens. */
.footer { --bg-2: var(--desk-2); --ink-2: var(--ink); --ink-3: var(--soft); font-family: var(--sans); }
.footer { border-top: 1px solid var(--rule); background: var(--bg-2); padding-block: 48px 36px; font-size: 14px; }
.footer .wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.footer .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none; font-family: var(--serif); }
.footer .brand img { width: 24px; height: 24px; display: block; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { color: var(--ink-3); margin: 10px 0 0; max-width: 26em; }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-title { font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.footer-base p { margin: 0; }
.footer-base a { color: var(--ink-2); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip .feature-copy { order: 0; }
  .catch, .platforms { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  body { font-size: 18px; }
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .nav-gh span { display: none; }
  .hero-shot { margin-top: 44px; }
}
@media (max-width: 360px) { .by-basalt { display: none; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero-wrap { position: relative; }
.doc-wrap.center { text-align: center; }
.doc .lede-doc.soft { color: var(--soft); }
.doc .back { margin-top: 28px; }
.section-head .eyebrow { color: var(--terra); font-size: 13px; margin: 0 0 14px; }
.trust a { white-space: nowrap; }
.doc .eyebrow { color: var(--terra); }
