/* books by Isa — site styles. Colours and type from the Isa Author Brand Guide. */
:root {
  --midnight: #1C2230;
  --gold: #D4A84B;
  --deep-gold: #8A6420;
  --parchment: #F2EADB;
  --warm-white: #FFFDF8;
  --stone: #C9BFAE;
  --slate: #4A5160;
  --line: #E4DCCB;
  --milo-red: #BC4E27;
  --milo-red-text: #A8431F;
  --dusk: #1F3A4D;
  --display: 'Cormorant Garamond', Georgia, serif;
  --label: 'Josefin Sans', Arial, sans-serif;
  --body: 'Source Serif 4', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--midnight); background: var(--warm-white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep-gold); }
a:hover { color: #5E4416; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.05; }
h1 { font-size: clamp(40px, 6vw, 56px); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 1000px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--gold); color: var(--midnight); padding: 10px 14px; z-index: 10; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.label { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.label.red { color: var(--milo-red-text); }
.label.gold { color: var(--deep-gold); }
.label.bright { color: var(--gold); }
.muted { color: var(--slate); font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Header */
.site-header { background: var(--midnight); color: var(--parchment); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--parchment); }
.brand:hover { color: var(--parchment); }
.brand-name { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1; }
.brand-tag { display: block; margin-top: 4px; font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.main-nav a { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--parchment); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* Buttons */
.btn { display: inline-block; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; padding: 15px 22px; border-radius: 3px; border: 2px solid var(--midnight); text-align: center; cursor: pointer; }
.btn-dark { background: var(--midnight); color: #fff; }
.btn-dark:hover { background: var(--deep-gold); border-color: var(--deep-gold); color: #fff; }
.btn-outline { background: transparent; color: var(--midnight); }
.btn-outline:hover { background: var(--midnight); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-col { display: flex; flex-direction: column; gap: 10px; }

/* Sections */
.band { padding: 64px 0; }
.band-parchment { background: var(--parchment); }
.band-white { background: var(--warm-white); }
.band-dark { background: var(--midnight); color: var(--parchment); }
.page-intro { padding: 44px 0 30px; border-bottom: 1px solid var(--line); background: var(--warm-white); }
.page-intro .wrap { display: flex; flex-direction: column; gap: 14px; }
.page-intro p { max-width: 700px; color: var(--slate); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 44px 64px; }
.split > .grow { flex: 999 1 420px; min-width: 0; }
.cover { box-shadow: 0 18px 40px rgba(28,34,48,0.26); }
.hero-cover { flex: 0 1 300px; width: 300px; }
.hook { font-size: 21px; font-weight: 600; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--midnight); text-decoration: none; border: 2px solid var(--midnight); border-radius: 22px; padding: 11px 18px; }
.chip:hover { background: var(--midnight); color: #fff; }

/* Sign-up band */
.signup .split { align-items: center; }
.signup-cover { flex: 0 1 180px; width: 180px; box-shadow: 0 14px 30px rgba(0,0,0,0.45); }
.signup h2 { font-size: clamp(30px, 4vw, 40px); }
.signup p { color: #E4DCCB; }
.signup-form { display: flex; flex-direction: column; gap: 6px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-row input { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 17px; padding: 14px 16px; border: 1px solid var(--stone); border-radius: 3px; background: var(--warm-white); color: var(--midnight); }
.signup-row input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.signup-row button { flex: 0 0 auto; background: var(--gold); color: var(--midnight); border: none; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; padding: 16px 24px; border-radius: 3px; cursor: pointer; }
.signup-row button:hover { background: #E3BC66; }
.kit-fallback { font-size: 14px; color: var(--stone); }
.kit-fallback a { color: var(--gold); }

/* Series cards */
.cards { display: flex; flex-wrap: wrap; gap: 28px; }
.series-card { flex: 1 1 340px; min-width: 0; text-decoration: none; color: var(--midnight); background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; gap: 20px; align-items: flex-start; }
.series-card:hover { color: var(--midnight); box-shadow: 0 6px 20px rgba(28,34,48,0.10); }
.series-card .badge { width: 72px; height: 72px; flex-shrink: 0; }
.series-card h3 { font-size: 28px; line-height: 1.1; margin-bottom: 6px; }
.rule-red { border-top: 5px solid var(--milo-red); }
.rule-dusk { border-top: 5px solid var(--dusk); }
.rule-gold { border-top: 4px solid var(--deep-gold); }
.round { border-radius: 50%; }

/* Books page */
.genre { padding: 56px 0; }
.genre h2 { font-size: 44px; }
.series-block { display: flex; flex-direction: column; gap: 22px; padding-top: 22px; margin-top: 26px; }
.series-head { display: flex; align-items: center; gap: 16px; }
.series-head img { width: 56px; height: 56px; }
.series-head h3 { font-size: 28px; }
.book-grid { display: flex; flex-wrap: wrap; gap: 32px; }
.book-tile { flex: 0 1 220px; min-width: 0; text-decoration: none; color: var(--midnight); display: flex; flex-direction: column; gap: 8px; }
.book-tile:hover { color: var(--midnight); }
.book-tile img, .cover-soon { width: 200px; height: 300px; object-fit: cover; box-shadow: 0 10px 24px rgba(28,34,48,0.22); }
.book-tile .t { font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.12; }
.cover-soon { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; background: var(--midnight); color: var(--gold); }
.cover-soon.dusk { background: var(--dusk); color: #D49A4E; }
.status { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--deep-gold); }
.status.out { color: var(--midnight); }

/* Book page */
.crumbs { font-size: 15px; color: var(--slate); padding-top: 28px; }
.book-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 44px 64px; padding: 32px 0 64px; }
.book-side { flex: 0 1 360px; display: flex; flex-direction: column; gap: 22px; }
.book-text { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* Newsletter */
.nl-top { padding: 48px 0; border-top: 1px solid #2E3648; }
.nl-top .split { align-items: flex-end; }
.nl-top h1 { color: var(--parchment); }
.nl-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.letter { flex: 999 1 560px; min-width: 0; background: var(--warm-white); box-shadow: 0 2px 14px rgba(28,34,48,0.08); }
.letter-body { padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; }
.letter-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.letter-body .section-img { margin-top: 18px; }
.letter-body .sub { font-size: 19px; font-weight: 600; }
.letter-body .aside { font-style: italic; }
.letter-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; margin-top: 16px; border-top: 1px solid var(--line); font-size: 16px; color: #8A8579; }
.signoff-name { font-family: var(--display); font-style: italic; font-size: 26px; }
.archive { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.archive h2 { font-size: 32px; }
.archive ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.archive li a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--warm-white); border-left: 4px solid var(--stone); text-decoration: none; color: var(--midnight); }
.archive li a[aria-current="page"], .archive li a:hover { border-left-color: var(--gold); }
.archive .t { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.15; }

/* Recommendations */
.rec-head { display: flex; align-items: center; gap: 18px; padding-bottom: 14px; border-bottom: 3px solid var(--deep-gold); }
.rec-head .disc { width: 72px; height: 72px; border-radius: 50%; background: var(--midnight); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rec-head h2 { font-size: 42px; line-height: 1; }
.rec { background: var(--warm-white); padding: 24px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; box-shadow: 0 2px 12px rgba(28,34,48,0.06); }
.rec > img { flex: 0 0 110px; width: 110px; box-shadow: 0 8px 18px rgba(28,34,48,0.2); }
.rec-text { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rec h3 { font-size: 28px; line-height: 1.1; }
.pill { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; background: var(--parchment); padding: 5px 9px; border-radius: 3px; align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tags span { font-size: 13px; color: var(--slate); border: 1px solid var(--stone); border-radius: 12px; padding: 3px 10px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }

/* Free stories */
.tales { display: flex; flex-wrap: wrap; gap: 28px; }
.tale { flex: 1 1 440px; min-width: 0; background: var(--warm-white); padding: 28px; display: flex; flex-wrap: wrap; gap: 22px 28px; align-items: flex-start; box-shadow: 0 2px 12px rgba(28,34,48,0.06); }
.tale > img, .tale > .cover-soon { flex: 0 0 160px; width: 160px; height: 240px; }
.tale-text { flex: 999 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tale h2 { font-size: 34px; }

/* About */
.about-photo { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.about-photo img { border-radius: 8px; box-shadow: 0 14px 32px rgba(28,34,48,0.2); }
.about-photo figcaption { font-size: 15px; font-style: italic; color: var(--slate); }
.facts { display: flex; flex-wrap: wrap; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); margin-top: 8px; }
.facts div { flex: 1 1 160px; padding: 14px 0; display: flex; flex-direction: column; gap: 2px; }
.boxes { display: flex; flex-wrap: wrap; gap: 28px; }
.box { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 26px; background: #fff; box-shadow: 0 2px 12px rgba(28,34,48,0.06); }
.box h2 { font-size: 28px; }
.home-photo { flex: 0 1 300px; width: 300px; border-radius: 8px; box-shadow: 0 10px 24px rgba(28,34,48,0.18); }

/* Footer */
.site-footer { background: var(--midnight); color: var(--stone); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.site-footer a { color: var(--gold); }
.foot-name { font-family: var(--display); font-style: italic; font-size: 26px; color: var(--parchment); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }

@media (max-width: 600px) {
  .band { padding: 44px 0; }
  .wrap { padding: 0 20px; }
  .letter-body { padding: 24px 20px 30px; }
  .hero-cover { width: 220px; }
  .book-side { flex-basis: 100%; }
}

/* Download choices on the gift page */
.dl-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.dl { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border-top: 4px solid var(--deep-gold); box-shadow: 0 2px 12px rgba(28,34,48,0.06); }
.dl h3 { font-size: 30px; }
.dl .btn { margin-top: auto; align-self: flex-start; }
.dl .btn + p { margin-top: 4px; }
