/* DocuCasa site stylesheet — palette from DocuCasa/Assets.xcassets/Ledger*.colorset
   Design: Option C ("Ledger + Window blend"), locked 2026-08-10.
   Copy/design spec: docs/superpowers/specs/2026-08-10-website-copy-design.md */

:root {
  --paper: #FAF8F3;
  --ink: #262119;
  --ink-soft: #6E675C;
  --ink-faint: #9B937F;
  --green: #2F5D4C;
  --green-tint: #E9EFEA;
  --hairline: #E4DFD5;
  --card: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #23211D;
    --ink: #E8E2D6;
    --ink-soft: #B3ABA0;
    --ink-faint: #8A8373;
    --green: #6BA88C;
    --green-tint: #30493B;
    --hairline: #3A362F;
    --card: #2B2925;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", sans-serif;
}
a { color: var(--green); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.col { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
nav { border-bottom: 1px solid var(--hairline); }
.nav-inner {
  max-width: 808px; margin: 0 auto;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px;
  padding: 20px 24px;
}
.wordmark {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 22px; font-weight: 700;
  color: var(--green); text-decoration: none;
  margin-right: 10px;
}
.nav-inner a:not(.wordmark) {
  font-size: 14px; color: var(--ink-soft); text-decoration: none;
}
.nav-inner a:not(.wordmark):hover { color: var(--green); }
.nav-inner a[aria-current] { color: var(--ink); }

/* ---- Hero on ruled ledger lines (home) ---- */
.hero {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 35px,
    var(--hairline) 35px 36px
  );
  border-bottom: 1px solid var(--hairline);
}
.hero-inner {
  position: relative;
  padding: 72px 24px 64px 56px;
}
.hero-inner::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 28px;
  border-left: 3px double var(--green);
  opacity: 0.55;
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
h1 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.15;
  max-width: 15ch;
  margin-bottom: 18px;
}
.lede {
  font-size: 19px; line-height: 36px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 30px;
}
.button {
  display: inline-block;
  background: var(--green); color: var(--paper);
  font-size: 16px; font-weight: 600;
  padding: 12px 26px;
  text-decoration: none;
  border-radius: 6px;
}
.button:hover { filter: brightness(1.08); }
.meta {
  display: inline-block;
  margin-left: 16px;
  font-size: 13px; color: var(--ink-faint);
}

/* ---- The app window, presented as the ledger's exhibit ---- */
.exhibit { padding: 56px 24px 8px; }
.window {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(38, 33, 25, 0.35);
  overflow: hidden;
  font-size: 11px;
}
.titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--hairline);
}
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.85; }
.winbody {
  display: grid;
  grid-template-columns: 110px 170px 1fr;
  min-height: 300px;
}
.sidebar {
  background: var(--green-tint);
  padding: 10px 0;
  color: var(--ink-soft);
}
.sidebar .head {
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); padding: 4px 12px;
}
.sidebar .item { padding: 4px 12px 4px 18px; }
.sidebar .item.sel {
  background: var(--green); color: var(--paper);
  border-radius: 5px; margin: 0 6px; padding-left: 12px;
}
.doclist { border-right: 1px solid var(--hairline); padding: 6px 0; }
.doc { padding: 7px 12px; border-bottom: 1px solid var(--hairline); }
.doc .t { font-weight: 600; }
.doc .d { color: var(--ink-faint); font-size: 10px; }
.doc.sel { background: var(--green-tint); }
.preview {
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: var(--paper);
}
.page {
  width: 130px; height: 168px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 16px 14px;
  box-shadow: 0 4px 14px -6px rgba(38, 33, 25, 0.25);
}
.line { height: 5px; border-radius: 2px; background: var(--hairline); margin-bottom: 7px; }
.line.title { width: 60%; background: var(--ink-faint); height: 7px; margin-bottom: 12px; }
.line.short { width: 45%; }
.line.green { width: 30%; background: var(--green); opacity: 0.6; }
.exhibit figcaption {
  margin-top: 14px;
  font-size: 13px; color: var(--ink-faint);
  text-align: center;
}

/* ---- Features as ledger entries (home) ---- */
.entries { padding: 48px 0 8px; }
.entries-title {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.entry h2 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 22px; font-weight: 600;
  margin-bottom: 6px;
}
.entry p { color: var(--ink-soft); max-width: 54ch; }
.posting {
  align-self: start;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
  padding-top: 8px;
  white-space: nowrap;
}

/* ---- Paperless section (home) ---- */
.paperless {
  margin: 56px 0;
  padding: 26px 30px;
  background: var(--green-tint);
  border-radius: 6px;
  color: var(--ink-soft);
}
.paperless h2 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 22px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.paperless p { font-size: 15px; max-width: 60ch; }
.paperless .more { margin-top: 12px; }
.paperless .more a { font-weight: 600; text-decoration: none; }
.paperless .more a:hover { text-decoration: underline; }

/* ---- Pricing / download band (home) ---- */
.band {
  text-align: center;
  padding: 56px 24px 72px;
}
.band h2 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 32px; font-weight: 600;
  margin-bottom: 6px;
}
.band .quip {
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.band .meta { display: block; margin: 14px 0 0; }

/* ---- Interior pages (Download, Guide, FAQ, Migrate, Terms, Contact) ---- */
.article { padding: 56px 24px 72px; }
.article h1 {
  font-size: clamp(30px, 5vw, 40px);
  margin-bottom: 24px;
}
.article h2 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 24px; font-weight: 600;
  margin: 40px 0 12px;
}
.article p { margin-bottom: 16px; max-width: 62ch; }
.article p.soft { color: var(--ink-soft); }
.article ol, .article ul { margin: 0 0 16px 24px; max-width: 60ch; }
.article li { margin-bottom: 10px; }
.article code {
  font: 14px ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--green-tint);
  padding: 1px 5px;
  border-radius: 4px;
}
.article pre {
  background: var(--green-tint);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 0 0 16px;
  overflow-x: auto;
}
.article pre code { background: none; padding: 0; }
.article .download-line { margin: 26px 0 6px; }
.article .download-line .meta { display: block; margin: 12px 0 0; }

/* ---- Guide screenshots ---- */
.article .shot { margin: 26px 0 34px; }
.shot img { display: block; width: 100%; height: auto; margin: 0 auto; cursor: zoom-in; }
.shot-toggle {
  display: flex; align-items: center; gap: 6px;
  justify-content: flex-end;
  margin: 20px 0 4px;
  font-size: 12px; color: var(--ink-faint);
}
.shot-toggle button {
  font: 12px -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 3px 10px;
  cursor: pointer;
}
.shot-toggle button[aria-pressed="true"] {
  background: var(--green); color: var(--paper); border-color: var(--green);
}
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 18, 14, 0.82);
  display: flex; align-items: center; justify-content: center;
  padding: 3vh 3vw;
  cursor: zoom-out;
  z-index: 10;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; }

/* ---- Guide navigation ---- */
.crumb { margin-bottom: 18px; font-size: 14px; }
.crumb a { text-decoration: none; font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.pager {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}
.pager a { text-decoration: none; font-weight: 600; }
.pager a:hover { text-decoration: underline; }
.shot.framed img {
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.shot figcaption {
  margin-top: 12px;
  font-size: 13px; color: var(--ink-faint);
  text-align: center;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 24px 40px;
  font-size: 13px; color: var(--ink-faint);
}
.foot-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--green); }

@media (max-width: 560px) {
  .entry { grid-template-columns: 1fr; }
  .posting { padding-top: 0; }
  .hero-inner { padding-left: 44px; }
  .hero-inner::before { left: 20px; }
  .meta { display: block; margin: 14px 0 0; }
  .winbody { grid-template-columns: 84px 130px 1fr; min-height: 240px; }
}
