:root { --bg:#f7f5ee; --surface:#fffdf8; --ink:#151515; --muted:#66635c; --line:rgba(21,21,21,.12); --accent:#0e6f5c; --accent-ink:#fff; --gold:#b8862a; --danger:#b4412f; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg:#111312; --surface:#181b1a; --ink:#ecebe6; --muted:#9b9f99; --line:rgba(255,255,255,.1); --accent:#35b394; --accent-ink:#07130f; --gold:#e0b252; --danger:#e1705e; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font: 400 clamp(32px, 5vw, 48px)/1.08 "Instrument Serif", Georgia, serif; }
h2 { font: 400 26px/1.2 "Instrument Serif", Georgia, serif; margin-bottom: 10px; }
.sf-wrap { max-width: 1040px; margin: 0 auto; padding: 32px 16px 64px; }
.sf-narrow { max-width: 620px; }
.sf-test { background: var(--gold); color: #1b1407; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.sf-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; margin: 0 0 6px; }
.sf-hero { max-width: 1040px; margin: 0 auto; padding: 48px 16px 8px; display: flex; gap: 20px; align-items: center; }
.sf-avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 400 38px "Instrument Serif", serif; flex-shrink: 0; }
.sf-bio { color: var(--muted); max-width: 60ch; margin: 8px 0 0; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.sf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.sf-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.sf-card-cover { background: color-mix(in srgb, var(--ink) 5%, transparent); padding: 22px; display: grid; place-items: center; }
.sf-card-cover .sf-cover { width: 120px; height: 156px; padding: 12px; }
.sf-card-cover .c-title { font-size: 15px; }
.sf-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sf-card-body h3 { font-size: 16px; }
.sf-card-body p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-price { font-weight: 700; margin-top: auto; }
.sf-price.big { font-size: 30px; letter-spacing: -.01em; display: block; margin-bottom: 12px; }
.sf-empty { color: var(--muted); }
.sf-cover { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; border-radius: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.sf-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(255,255,255,.16), transparent 45%); }
.sf-cover .c-format { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; opacity: .85; }
.sf-cover .c-title { font-family: "Instrument Serif", Georgia, serif; line-height: 1.1; }
.sf-cover .c-foot { height: 3px; width: 34px; background: rgba(255,255,255,.7); }
.sf-cover.guide { background: #0e6f5c; } .sf-cover.workbook { background: #9b4b34; } .sf-cover.planner { background: #2d4a7a; } .sf-cover.checklist { background: #6b5a1e; }
.sf-cover.large { width: 100%; max-width: 320px; aspect-ratio: 8.5/11; padding: 26px; }
.sf-cover.large .c-title { font-size: clamp(24px, 3vw, 34px); }
.sf-cover.large .c-format { font-size: 11px; }
.sf-back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 14px; }
.sf-product-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; align-items: start; }
.sf-lede { font-size: 18px; color: var(--muted); margin: 12px 0 20px; max-width: 58ch; }
.sf-buy { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; max-width: 480px; }
.sf-form label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.sf-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sf-row input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.sf-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sf-row button, .sf-button { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 11px 20px; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-block; }
.sf-row button:hover, .sf-button:hover { filter: brightness(1.08); }
.sf-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.sf-error { color: var(--danger); font-size: 14px; margin: 8px 0 0; }
.sf-section { margin-top: 44px; max-width: 700px; }
.sf-section p { color: var(--muted); }
.sf-toc { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.sf-toc li::marker { color: var(--accent); font-weight: 700; }
.sf-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; margin-top: 40px; }
.sf-panel h1 { font-size: 34px; }
.sf-footer { text-align: center; padding: 24px 16px 40px; font-size: 13px; color: var(--muted); }
.sf-footer a { text-decoration: none; }
@media (max-width: 720px) {
  .sf-product-grid { grid-template-columns: 1fr; gap: 24px; }
  .sf-cover.large { max-width: 220px; }
  .sf-hero { padding-top: 32px; }
}

.sf-discount { margin-top: 10px; font-size: 14px; }
.sf-discount summary { cursor: pointer; color: var(--muted); }
.sf-discount input { margin-top: 8px; font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-transform: uppercase; width: 180px; }
.sf-by { font-size: 13px; color: var(--muted); }
.sf-hero-market { padding-bottom: 0; }
.sf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sf-filters input, .sf-filters select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.sf-filters input { flex: 1 1 240px; min-width: 0; }
.sf-filters button { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.sf-footer a { margin: 0 4px; }
.site-logo { width: 150px; height: 42px; object-fit: contain; object-position: left center; vertical-align: middle; }

.cur-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; }
.cur-bar label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cur-bar select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.cur-hint { color: var(--muted); }
.cur-note { color: var(--muted); font-weight: 400; font-size: .78em; white-space: nowrap; }

.blog-content h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 24px; margin: 26px 0 8px; }
.blog-content p { margin: 0 0 14px; }
.blog-content ul { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.blog-content li::marker { color: var(--accent); }

/* Content pages rendered from the admin console (about, privacy, terms, …) */
.sf-narrow { max-width: 760px; }
.sf-panel ul { margin: 0 0 14px; padding-left: 20px; }
.sf-panel li { margin-bottom: 8px; line-height: 1.6; }
.sf-panel p { line-height: 1.7; }
.sf-panel p:last-child { margin-bottom: 0; }
.sf-back .site-logo { height: 26px; width: auto; vertical-align: middle; margin-right: 6px; }
.sf-foot-note { margin: 36px 0 8px; color: var(--muted); font-size: 13px; }

.announce { padding: 9px 20px; text-align: center; font-size: 14px; }
.announce p { margin: 0; }
.announce a { text-decoration: underline; font-weight: 600; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; font-size: 14px; }
