/* VOICE: warm, plain, generous — written for readers who find small print hard work.
   IDEA: a large-print puzzle page: big bold digits, a clear grid, nothing fussy.
   PICTURE: the Book 1 cover beside an oversized sudoku grid, drawn as a printable sheet.
   COLOUR and TYPE: ClearView teal #0E4F4A, sage #666E54, cream #FFFCF3, cover yellow #F5C518; Arial Black heads, Albert Sans body at 19px+.
   LAYOUT: one column on phones; hero, weekly puzzle band, books, Fintan's note, contact, footer. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#fffcf3, #10201e);
  --panel: light-dark(#ffffff, #173230);
  --ink: light-dark(#181818, #f4f1e8);
  --soft: light-dark(#3a3a3a, #d6d2c6);
  --teal: light-dark(#0e4f4a, #8fd3c9);
  --tealband: #0e4f4a;
  --sage: #666e54;
  --sageh: #525943;
  --yellow: #f5c518;
  --line: light-dark(#d9d3c2, #2c4a47);
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  min-width: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    19px/1.6 "Albert Sans",
    Arial,
    sans-serif;
  overflow-x: clip;
}
h1,
h2,
h3 {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  color: var(--teal);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(38px, 6vw, 60px);
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
}
h3 {
  font-size: 24px;
}
p {
  margin: 0 0 1em;
  max-width: 62ch;
}
a {
  color: var(--teal);
  text-underline-offset: 3px;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
}
.band {
  padding: clamp(40px, 6vw, 88px) max(5vw, 18px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 28px;
  border-radius: 10px;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover {
  background: var(--sageh);
}
.btn.alt {
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 3px currentColor;
}
.btn.yellow {
  background: var(--yellow);
  color: #122;
}
.btn.yellow:hover {
  background: #ffd84a;
}
:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
}
/* header */
header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 14px max(5vw, 18px);
}
.logo {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 24px;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.logo small {
  display: block;
  font:
    600 14px/1 "Albert Sans",
    sans-serif;
  letter-spacing: 0.02em;
  color: var(--soft);
  margin-top: 4px;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul a {
  display: inline-block;
  padding: 8px 0;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav ul a:hover {
  border-color: var(--yellow);
}
/* hero */
.hero {
  background-color: var(--bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(rgba(255, 252, 243, 0.8), rgba(255, 248, 229, 0.75)),
    url("./img/cloth-low.jpg");
  margin: 0px auto;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.kicker {
  font-weight: 800;
  color: var(--sage);
  font-size: 20px;
  margin-bottom: 12px;
}
:root[data-theme="dark"] .kicker {
  color: #c9d1b3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kicker {
    color: #c9d1b3;
  }
}
.lead {
  font-size: clamp(20px, 2.2vw, 23px);
  font-weight: 600;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.stage {
  position: relative;
  aspect-ratio: 1/1.05;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
.stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage img {
  /* position: absolute; */
  right: 2%;
  bottom: 0;
  width: 80%;
  height: auto;
  border: 2px solid rgba(0, 0, 0);
  border-radius: 6px;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.08),
    0 22px 40px -12px rgba(0, 0, 0, 0.45);
  transform: rotate(2.5deg);
}
/* weekly band */
.weekly {
  /* background: var(--tealband); */
  color: #f4f1e8;

  background-color: rgba(14, 79, 74, 0.75);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(rgba(14, 79, 74, 0.85), rgba(14, 79, 74, 0.85)),
    url("./img/cloth-low.jpg");
  margin: 0px auto;
}
.weekly h2 {
  color: #fff;
}
.weekly .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.weekly ul {
  padding-left: 1.2em;
  margin: 0 0 1.4em;
}
.weekly li {
  margin-bottom: 0.4em;
}
.sheet {
  background: #fffcf3;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.6);
  transform: rotate(-1.5deg);
  max-width: 440px;
  justify-self: center;
  width: 100%;
}
.sheet .cap {
  font:
    800 16px/1.2 "Albert Sans",
    sans-serif;
  color: #0e4f4a;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sheet svg {
  display: block;
  width: 100%;
  height: auto;
}
.note-small {
  font-size: 17px;
  opacity: 0.9;
}
/* books */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px;
  margin-top: 28px;
}
.book {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.book img {
  width: 140px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.4);
}
.book h3 {
  margin-bottom: 0.3em;
}
.book p {
  font-size: 18px;
}
.book .buy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.book .buy .btn {
  min-height: 50px;
  font-size: 18px;
  padding: 10px 18px;
}
.book.soon {
  grid-template-columns: 1fr;
  border-style: dashed;
  align-content: center;
}
.tag {
  display: inline-block;
  background: var(--yellow);
  color: #122;
  font-weight: 800;
  font-size: 15px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
@media (max-width: 520px) {
  .book {
    grid-template-columns: 1fr;
  }
  .book img {
    width: 170px;
  }
}
/* about */
.about .wrap {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 900px;
}
.about img {
  width: 200px;
  height: auto;
  border-radius: 14px;
  border: 5px solid var(--yellow);
}
.sign {
  font-weight: 800;
  color: var(--teal);
}
/* contact */
.contact {
  background: var(--panel);
  border-top: 2px solid var(--line);
}
.contact .wrap {
  max-width: 720px;
}
form {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
label {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
input,
textarea {
  width: 100%;
  font: inherit;
  font-size: 19px;
  padding: 14px 16px;
  border: 2px solid #8a8577;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
textarea {
  min-height: 170px;
  resize: vertical;
}
.hp {
  position: absolute;
  left: -9999px;
}
#status {
  font-weight: 700;
  min-height: 1.6em;
  margin: 0;
}
#status.ok {
  color: var(--teal);
}
#status.err {
  color: #b3261e;
}
/* footer */
footer {
  background: var(--tealband);
  color: #e8e4d8;
  padding: 36px max(5vw, 18px);
  font-size: 17px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}
footer a {
  color: #fff;
}
footer p {
  margin: 0 0 0.4em;
}
@media (max-width: 600px) {
  header {
    position: static;
  }
  .nav ul {
    gap: 0 18px;
  }
}
@media (max-width: 820px) {
  .hero .wrap,
  .weekly .wrap {
    grid-template-columns: 1fr;
  }
  .stage {
    max-width: 420px;
  }
  .about .wrap {
    grid-template-columns: 1fr;
  }
  .about img {
    width: 160px;
  }
}
