/* Folio 1611 site — shared by index.html, privacy.html, support.html */
:root {
  --paper: #f6efe0;
  --paper-raised: #fbf6ea;
  --page: #f3e7cc;
  --line: rgba(60, 40, 24, .16);
  --ink: #2a1d14;
  --muted: #6b5a4b;
  --oxblood: #6b2a3a;
  --oxblood-deep: #4c1b28;
  --gilt: #b98a2e;
  --marker: rgba(255, 216, 77, .62);
  --radius: 14px;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.62 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--oxblood); text-decoration: underline; text-decoration-color: rgba(107, 42, 58, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--oxblood); }
a:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 1px 4px rgba(42, 29, 20, .3); }
.site-nav { display: flex; gap: 1.5rem; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; padding: 3.5rem 0 5rem; }
.eyebrow { color: var(--oxblood); font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 1.25rem; }
h1 em { font-style: italic; color: var(--oxblood); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 33rem; margin: 0 0 2rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; background: var(--oxblood); color: #fbf3e4; text-decoration: none; }
a.pill:hover { background: var(--oxblood-deep); }
.pill small { font-weight: 500; opacity: .75; font-size: .85em; }
.cta-note { color: var(--muted); font-size: .95rem; }

/* Hero art: an open folio with a marked verse and a note in the margin */
.folio { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--oxblood-deep); padding: .55rem; border-radius: 10px; box-shadow: 0 24px 50px -18px rgba(42, 29, 20, .55), 0 2px 0 rgba(255, 255, 255, .25) inset; }
.leaf { background: var(--page); padding: 1.6rem 1.35rem 1.9rem; font-family: var(--serif); font-size: .98rem; line-height: 1.62; color: var(--ink); min-height: 21rem; }
.leaf.left { padding-right: 1.8rem; border-radius: 5px 0 0 5px; background: linear-gradient(90deg, var(--page) 72%, #e2d3b2); }
.leaf.right { padding-left: 1.8rem; border-radius: 0 5px 5px 0; background: linear-gradient(270deg, var(--page) 72%, #e2d3b2); }
.leaf .running { display: block; text-align: center; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.leaf .numeral { display: block; text-align: center; font-size: 2.3rem; line-height: 1.1; margin-bottom: .7rem; }
.leaf p { margin: 0 0 .6rem; }
.leaf sup { color: var(--oxblood); font-size: .62em; margin-right: .15em; }
.leaf mark { background: var(--marker); color: inherit; border-radius: 3px; padding: .05em .12em; margin: 0 -.12em; }
.leaf .under { border-bottom: 3px solid rgba(86, 150, 255, .75); }
.leaf .label { font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.note { border-left: 3px solid var(--line); padding-left: .8rem; margin: 0 0 1rem; font-size: .9rem; color: #4a3a2c; }
.note.y { border-color: #e9c23a; }
.note.b { border-color: #5696ff; }
.note cite { display: block; font-style: normal; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: .15rem; }
.hand { font-family: "Bradley Hand", "Segoe Script", "Snell Roundhand", cursive; font-size: 1.12rem; color: #2f55b5; transform: rotate(-2deg); display: inline-block; }
.ribbon { position: absolute; left: 50%; top: -.4rem; bottom: -1.6rem; width: 1rem; margin-left: -.5rem; background: linear-gradient(90deg, #8d2f3f, #b3404f 45%, #7d2636); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - .55rem), 0 100%); box-shadow: 0 0 8px rgba(0, 0, 0, .3); }

/* Sections */
section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.14; letter-spacing: -.01em; margin: 0 0 1rem; }
.section-lede { color: var(--muted); max-width: 40rem; margin: 0 0 2.5rem; font-size: 1.1rem; }
h3 { font-size: 1.18rem; margin: 0 0 .4rem; }

.spelling { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.spelling figure { margin: 0; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.spelling figcaption { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); margin-bottom: .75rem; }
.spelling blockquote { margin: 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--muted); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before { content: "¶"; position: absolute; left: 0; top: 0; font-family: var(--serif); color: var(--oxblood); }

.privacy-band { background: var(--oxblood-deep); color: #f6ead6; border-radius: calc(var(--radius) + 4px); padding: 3rem; box-shadow: 0 0 0 1px rgba(185, 138, 46, .55) inset, 0 0 0 5px var(--oxblood-deep) inset, 0 0 0 6px rgba(185, 138, 46, .35) inset; }
.privacy-band h2 { color: #f6ead6; }
.privacy-band p { color: #e3d2bd; max-width: 44rem; margin: 0 0 1rem; font-size: 1.1rem; }
.privacy-band p:last-child { margin-bottom: 0; }
.privacy-band a { color: #f0cf85; text-decoration-color: rgba(240, 207, 133, .5); }

.buy { text-align: center; }
.buy .section-lede { margin-left: auto; margin-right: auto; }
.price { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; line-height: 1; margin: 0 0 .5rem; color: var(--oxblood); }
.buy .cta { justify-content: center; margin-top: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Document pages (privacy, support) */
.doc { max-width: 44rem; padding: 2.5rem 0 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .5rem; }
.doc .meta { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; }
.doc h3 { font-size: 1.1rem; margin: 1.75rem 0 .35rem; }
.doc p, .doc li { color: #43342a; }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .6rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 2rem 0 3.5rem; gap: 2.5rem; }
  .spelling, .cards, .split { grid-template-columns: 1fr; }
  .split { gap: 2rem; }
  section { padding: 3.25rem 0; }
  .privacy-band { padding: 2rem 1.5rem; }
  .site-nav { gap: 1.1rem; }
  .site-nav .wide { display: none; }
}
@media (max-width: 520px) {
  .leaf { padding: 1.1rem .85rem 1.5rem; font-size: .84rem; min-height: 0; }
  .leaf .numeral { font-size: 1.8rem; }
  .note { font-size: .78rem; }
  .hand { font-size: .95rem; }
}
