/* Community over Convenience: the Boekstore paper system. Ink on paper, the ink page in dark mode.
   Square corners, 1px hairlines, no cards, no shadows. */
:root {
  --ground: #F5EFE3;
  --ink: #24201F;
  --soft: #57524D;
  --hair: #DAD0C1;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --label: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #24201F; --ink: #F5EFE3; --soft: #DAD0C1; --hair: #5E5853; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #24201F; --ink: #F5EFE3; --soft: #DAD0C1; --hair: #5E5853; color-scheme: dark;
}

* { 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(--ground); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ground); padding: 8px 12px; z-index: 10; }

/* Small-caps labels: Libre Franklin Medium, tracked. */
.label, .nav ul a, .btn, .tags li, .eyebrow, .meta, .more {
  font-family: var(--label); font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; font-size: 12.5px; line-height: 1.4;
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: var(--ground); border-bottom: 1px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-family: var(--serif); font-size: 20px; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.brand i { color: var(--soft); }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav ul a { text-decoration: none; color: var(--soft); padding: 12px 0; display: inline-block; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); }
.nav .app-chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 17px; }
.nav .app-chip img { width: 28px; height: 28px; }
@media (max-width: 600px) {
  .brand { font-size: 16px; }
  .nav ul { gap: 14px; }
  .nav .hide-sm { display: none; }
}

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; border-bottom: 1px solid var(--hair); }
.eyebrow { color: var(--soft); margin: 0 0 22px; }
.display { font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.1; margin: 0 auto; max-width: 15ch; letter-spacing: -.01em; }
.display em { font-style: italic; }
.rule { width: 64px; height: 1px; background: var(--ink); border: 0; margin: 28px auto; }
.lead { color: var(--soft); font-style: italic; font-size: 21px; max-width: 34ch; margin: 0 auto; }
.icons { list-style: none; display: flex; justify-content: center; gap: 22px; margin: 44px 0 0; padding: 0; flex-wrap: wrap; }
.icons a { display: block; text-decoration: none; text-align: center; }
.icons img { width: 84px; height: 84px; border: 1px solid var(--hair); }
.icons span { display: block; margin-top: 10px; color: var(--soft); }
@media (max-width: 600px) { .hero { padding: 56px 0 48px; } .lead { font-size: 19px; } .icons img { width: 68px; height: 68px; } }

/* App rows on the home page: ruled list, no cards. */
.apps { padding: 24px 0 0; }
.app-row { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.app-row:first-child, .family { border-top: 1px solid var(--ink); }
.family { padding: 40px 0 0; }
.family p:last-child { margin: 0; max-width: 40ch; font-size: 22px; line-height: 1.4; }
.family + .app-row { padding-top: 40px; }
.app-row .ic { width: 64px; height: 64px; border: 1px solid var(--hair); margin-bottom: 24px; }
.app-row h2 { font-weight: 400; font-size: 44px; line-height: 1.1; margin: 0 0 6px; }
.app-row .for { font-style: italic; color: var(--soft); margin: 0 0 18px; font-size: 19px; }
.app-row .tag { margin: 0 0 22px; max-width: 34ch; font-size: 20px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 28px; }
.tags li { border: 1px solid var(--hair); padding: 5px 10px; color: var(--soft); font-size: 11px; }
.more { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.app-row:hover .more { border-bottom-width: 2px; }
.shot { border: 1px solid var(--hair); background: var(--ground); }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0; }
.panel li { list-style: none; border-bottom: 1px solid var(--hair); padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; }
.panel li:last-child { border-bottom: 0; }
.panel ul { margin: 0; padding: 0; }
.panel .k { font-family: var(--serif); }
.panel .v { color: var(--soft); white-space: nowrap; }
.soon { display: inline-block; border: 1px solid var(--ink); padding: 5px 10px; margin-left: 10px; vertical-align: middle; font-size: 11px; }
@media (max-width: 760px) {
  .app-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .app-row h2 { font-size: 36px; }
  .app-row .visual { max-width: 320px; }
}

/* Sections */
.section { padding: 88px 0; border-bottom: 1px solid var(--hair); }
.section.alt { border-top: 1px solid var(--ink); }
.section > .wrap > h2, .section-head h2 { font-weight: 400; font-size: 40px; line-height: 1.15; margin: 0 0 10px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--soft); font-style: italic; font-size: 20px; margin: 0; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.cols h3 { font-weight: 400; font-size: 23px; line-height: 1.25; margin: 0 0 10px; }
.cols p { margin: 0; color: var(--soft); }
@media (max-width: 760px) { .section { padding: 56px 0; } .cols { grid-template-columns: 1fr; gap: 32px; } .section > .wrap > h2, .section-head h2 { font-size: 32px; } }

/* App page features: alternating text and screen. */
.feature { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--hair); }
.feature:last-child { border-bottom: 0; }
.feature.flip { grid-template-columns: 280px 1fr; }
.feature.flip .text { order: 2; }
.feature.text-only { grid-template-columns: 1fr; max-width: 680px; }
.feature h3 { font-weight: 400; font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
.feature p { margin: 0 0 14px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { padding: 10px 0; border-top: 1px solid var(--hair); color: var(--soft); }
@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature.flip .text { order: 0; }
  .feature .visual { max-width: 300px; }
}

.btn { display: inline-block; text-decoration: none; border: 1px solid var(--ink); padding: 16px 28px; min-height: 48px; }
.btn:hover { background: var(--ink); color: var(--ground); }
.meta { color: var(--soft); margin-top: 22px; }
.app-hero .ic { width: 112px; height: 112px; margin: 0 auto 28px; border: 1px solid var(--hair); }
.app-hero .actions { margin-top: 36px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.status { display: inline-block; border: 1px solid var(--hair); color: var(--soft); padding: 16px 28px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; padding: 20px 0; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--label); color: var(--soft); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 22px; color: var(--soft); }

/* Footer */
.foot { padding: 48px 0 64px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.foot p { margin: 0; color: var(--soft); }
.foot ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--soft); }
.foot a:hover { color: var(--ink); }
