/* Tall Oaks Press. Colors and type match the worksheets. */
@font-face { font-family: "Schola"; src: url("/fonts/texgyreschola-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schola"; src: url("/fonts/texgyreschola-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Schola"; src: url("/fonts/texgyreschola-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("/fonts/texgyrepagella-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("/fonts/texgyrepagella-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("/fonts/texgyrepagella-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #1c2a48;
  --navy-2: #2b3c61;
  --red: #9a2b2b;
  --paper: #faf6ee;
  --paper-2: #f2ebdc;
  --ink: #23262d;
  --muted: #5d6270;
  --rule: #ddd3bf;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schola", "Century Schoolbook", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: "Pagella", "Palatino Linotype", Palatino, serif; color: var(--navy); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.eyebrow { font-family: "Pagella", serif; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--red); font-weight: 700; margin-bottom: .6em; display: block; }

/* Header */
.site-head { background: var(--navy); color: #fff; border-bottom: 4px solid var(--red); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: "Pagella", serif; font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-motto { font-family: "Pagella", serif; font-style: italic; font-size: .92rem; color: #e9e3d4; letter-spacing: .01em; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: #e9e3d4; text-decoration: none; font-family: "Pagella", serif; font-size: 1.02rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

/* Hero */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--rule); background:
  radial-gradient(circle at 85% 20%, rgba(154,43,43,.07), transparent 45%), var(--paper); }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.btn { display: inline-block; font-family: "Pagella", serif; font-weight: 700; font-size: 1.05rem; padding: 12px 22px; border-radius: 4px; text-decoration: none; border: 2px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: #7f2222; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--paper-2); color: var(--navy); }
.btn.disabled { background: #b9b3a6; border-color: #b9b3a6; cursor: default; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 26px; display: flex; flex-direction: column; border-top: 5px solid var(--accent, var(--navy)); }
.card h3 { margin-bottom: .25em; font-size: 1.45rem; }
.card .sub { color: var(--muted); font-style: italic; margin-bottom: 1em; }
.card .meta { font-size: .9rem; color: var(--muted); margin-bottom: 1em; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-family: "Pagella", serif; font-size: 1.5rem; color: var(--navy); font-weight: 700; }
.tag { display: inline-block; font-family: "Pagella", serif; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; background: var(--paper-2); color: var(--navy); padding: 3px 9px; border-radius: 3px; margin-bottom: 10px; align-self: flex-start; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.features li { padding-left: 18px; border-left: 3px solid var(--red); }
.features strong { font-family: "Pagella", serif; color: var(--navy); display: block; font-size: 1.1rem; }

/* Product page */
.product-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .product-head { grid-template-columns: 1fr; } }
.buybox { background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--accent, var(--navy)); border-radius: 6px; padding: 26px; }
.buybox .price { font-size: 2rem; }
.buybox .btn { width: 100%; text-align: center; margin-top: 10px; }
.buybox dl { margin: 18px 0 0; font-size: .95rem; }
.buybox dt { font-family: "Pagella", serif; color: var(--navy); font-weight: 700; }
.buybox dd { margin: 0 0 10px; color: var(--muted); }
.weeks { list-style: none; padding: 0; margin: 0; counter-reset: wk; }
.weeks li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.weeks li:last-child { border-bottom: 0; }
.weeks .wk { font-family: "Pagella", serif; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding-top: 4px; }
.weeks h3 { margin: 0 0 .2em; font-size: 1.2rem; }
.weeks p { margin: 0; color: var(--muted); }
.checks { padding-left: 1.2em; }
.checks li { margin-bottom: .4em; }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.note { background: var(--paper-2); border-left: 4px solid var(--red); padding: 14px 18px; margin: 1.5em 0; font-size: .95rem; }

/* Footer */
.site-foot { background: var(--navy); color: #cfd4df; padding: 40px 0 28px; margin-top: 0; font-size: .92rem; }
.site-foot a { color: #e9e3d4; }
.site-foot .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot .fine { margin-top: 24px; color: #9aa3b8; font-size: .82rem; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
  .weeks li { grid-template-columns: 1fr; gap: 4px; }
  .nav { gap: 16px; }
}

/* Editions */
.price small { font-size: .8rem; color: var(--muted); font-weight: 400; margin-right: 2px; }
.options { list-style: none; padding: 0; margin: 14px 0 0; }
.options li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.options li.best { background: var(--paper); margin: 0 -14px; padding: 14px; border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 4px; }
.options .opt strong { font-family: "Pagella", serif; color: var(--navy); font-size: 1.1rem; display: block; }
.options .opt span { display: block; font-size: .88rem; color: var(--muted); }
.options .opt .flag { display: inline-block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); padding: 1px 7px; border-radius: 3px; margin: 2px 0 4px; }
.options .opt-buy { display: flex; align-items: center; gap: 12px; }
.options .price { font-size: 1.25rem; }
.options .save { font-size: .78rem; color: var(--red); font-weight: 700; }
.buybox .options .btn { width: auto; margin-top: 0; padding: 8px 16px; font-size: .95rem; }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.fine-print { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.levels { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.levels li { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 18px; }
.levels strong { font-family: "Pagella", serif; color: var(--navy); font-size: 1.25rem; display: block; }
.levels .ages { display: block; color: var(--red); font-family: "Pagella", serif; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.product-head { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 820px) { .product-head { grid-template-columns: minmax(0, 1fr); } }

/* Feedback form */
.form fieldset { border: 1px solid var(--rule); border-radius: 6px; background: #fff; padding: 18px 20px 8px; margin: 0 0 22px; }
.form legend { font-family: "Pagella", serif; font-weight: 700; color: var(--navy); font-size: 1.15rem; padding: 0 6px; }
.form label.field { display: block; font-family: "Pagella", serif; color: var(--navy); font-weight: 700; margin: 6px 0 6px; }
.form .hint { display: block; font-family: "Schola", serif; font-weight: 400; color: var(--muted); font-size: .88rem; }
.form textarea, .form input[type=text], .form input[type=email] { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; margin-bottom: 14px; }
.form textarea { min-height: 110px; resize: vertical; }
.form textarea:focus, .form input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.form .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 18px; margin: 0 0 14px; }
.form .choices label, .form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; cursor: pointer; }
.form .check { margin: 0 0 10px; }
.form input[type=checkbox] { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--red); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { font: inherit; cursor: pointer; border: 0; }
.note.alert { display: none; }
.note.alert.show { display: block; }
