/* Head Tilt website. Brand scheme v4e (magazine/brand/brand-book.html):
   white paper, Charcoal ink, one section colour per page, square corners,
   plain labels on a thin rule. Tangerine is the autumn colour (issue 1).
   Jade is for health and "checked" only, Berry for Pet on the Cover only,
   Peel for paid pages only. Mobile first. */

:root {
  --charcoal: #2B2523;
  --paper: #FFFFFF;
  --mint: #E0F4EE;
  --jade: #0B6B5C;
  --berry: #962A66;
  --tangerine: #E8690C;
  --peel: #FFE3CC;
  --graphite: #5F5752;
  --hair: rgba(43, 37, 35, 0.16);
  --line: rgba(95, 87, 82, 0.35);
  --display: "Nunito", "Arial Rounded MT Bold", "Segoe UI", Arial, sans-serif;
  --read: "Alegreya", Georgia, "Times New Roman", serif;
  --util: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--read);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--charcoal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tangerine); }
:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 2px; }
p, li { max-width: 66ch; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(34px, 7vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 4.5vw, 36px); }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 12px 0 0; }
strong, b { font-weight: 800; }

.skip { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: var(--paper); padding: 8px 12px; font-family: var(--util); font-weight: 800; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* ---------- Masthead: lowercase Nunito 1000, the i tilted 12 degrees in the season's colour ---------- */
.mast {
  font-family: var(--display);
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--charcoal);
  white-space: nowrap;
  text-decoration: none;
}
.mast .i {
  display: inline-block;
  color: var(--tangerine);
  margin: 0 0.035em 0 0.05em;
  transform: rotate(-12deg);
  transform-origin: 50% 96%;
}
.on-dark .mast { color: var(--paper); }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 14px; }
.site-head .mast { font-size: 34px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-family: var(--util); font-weight: 800; font-size: 16px; }
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tangerine); text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid var(--charcoal);
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--util);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--charcoal); color: var(--paper); }
.btn-primary { background: var(--tangerine); border-color: var(--tangerine); color: var(--charcoal); }
.btn-primary:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }
.site-nav .btn { padding: 8px 14px; font-size: 15px; }
.site-nav .btn:hover { text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 22px; }

/* ---------- Labels and sections ---------- */
.label {
  display: block;
  padding-top: 6px;
  border-top: 2px solid var(--tangerine);
  font-family: var(--util);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  color: var(--charcoal);
}
.label.berry { border-color: var(--berry); color: var(--berry); }
.label.ad { border-color: var(--graphite); color: var(--graphite); }
.section { padding-block: 44px; }
.section + .section { border-top: 1px solid var(--hair); }
.section > .wrap > h2, .section h2 { margin-top: 8px; }
.lede { font-size: 21px; line-height: 1.45; margin-top: 14px; }
.meta { font-family: var(--util); font-weight: 700; font-size: 15px; color: var(--graphite); }
.small { font-size: 15px; }

/* ---------- Home hero ---------- */
.hero { padding-block: 40px 44px; border-bottom: 1px solid var(--line); }
.hero .issue { font-family: var(--util); font-weight: 800; font-size: 15px; color: var(--graphite); }
.hero .mast { display: inline-block; font-size: clamp(68px, 18vw, 150px); margin-top: 10px; }
.hero .tagline { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 3.4vw, 26px); line-height: 1.2; margin-top: 14px; }
.hero .lede { max-width: 40ch; }
.hero .credit { margin-top: 14px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: 36px 8px; }
.page-head h1 { margin-top: 10px; }

/* ---------- Grids and cards (square, flat) ---------- */
.grid { display: grid; gap: 18px 24px; margin-top: 20px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card { border-top: 2px solid var(--charcoal); padding-top: 12px; }
.card h3 { margin-bottom: 4px; }
.card p { margin-top: 6px; font-size: 17px; }

.numbers { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
@media (min-width: 720px) { .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.numbers li { border-top: 2px solid var(--tangerine); padding-top: 8px; }
.numbers b { display: block; font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; letter-spacing: -0.03em; }
.numbers span { display: block; margin-top: 6px; font-family: var(--util); font-weight: 700; font-size: 15px; line-height: 1.3; }

.list { padding-left: 22px; margin: 12px 0 0; }
.list li + li { margin-top: 6px; }
.list li::marker { font-weight: 900; }
ol.list li::marker { color: var(--tangerine); font-family: var(--display); }

.contents { list-style: none; padding: 0; margin: 18px 0 0; }
.contents li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); max-width: none; }
.contents li span { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; color: var(--tangerine); }
.contents li b { font-family: var(--display); font-weight: 900; }

.panel { margin-top: 22px; padding: 18px 20px 20px; border: 1.5px solid var(--graphite); }
.panel.mint { background: var(--mint); border-color: var(--mint); }
.panel h3 { margin-bottom: 2px; }

/* ---------- Subscribe band: the most prominent call to action, on every page ---------- */
.sub-band { background: var(--charcoal); color: var(--paper); padding-block: 40px; }
.sub-band a { color: var(--paper); }
.sub-band h2 { color: var(--paper); }
.sub-band .label { color: var(--paper); }
.sub-band p { color: #F3EEEB; }
.sub-band .form { margin-top: 18px; }
.sub-band .field label, .sub-band .check { color: var(--paper); }
.sub-band input[type="text"], .sub-band input[type="email"] { border-color: var(--paper); }
.sub-band .form-note { color: #E7E0DC; }
.sub-band .status { border-color: var(--paper); }
@media (min-width: 860px) {
  .sub-band .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0 48px; align-items: start; }
  .sub-band .form { margin-top: 0; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; margin-top: 24px; max-width: 640px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-family: var(--util); font-weight: 900; font-size: 16px; padding: 0; margin-bottom: 6px; }
.field { display: grid; gap: 6px; }
.field label, .form legend { font-family: var(--util); font-weight: 800; font-size: 16px; }
.field .hint { font-family: var(--util); font-weight: 600; font-size: 14px; color: var(--graphite); }
.req { color: var(--tangerine); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--charcoal);
  border-radius: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--util);
  font-size: 17px;
  font-weight: 600;
}
textarea { min-height: 110px; resize: vertical; }
.two { display: grid; gap: 16px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--util); font-weight: 600; font-size: 16px; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--tangerine); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.form-note { font-family: var(--util); font-weight: 600; font-size: 14px; color: var(--graphite); margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.status { display: none; padding: 14px 16px; border: 2px solid var(--charcoal); font-family: var(--util); font-weight: 700; font-size: 16px; }
.status.show { display: block; }
.status.ok { border-color: var(--tangerine); }
.status.err { border-color: var(--charcoal); }
.form.done > :not(.status) { display: none; }
button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Pet on the Cover: Berry is the competition colour ---------- */
.berry-head .label { border-color: var(--berry); color: var(--berry); }
.sticker {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--berry); color: var(--paper);
  font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1.05;
  transform: rotate(-8deg); margin-top: 18px;
}

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-family: var(--util); font-weight: 600; font-size: 15px; color: var(--graphite); }
.site-foot .mast { font-size: 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-weight: 800; }
.site-foot a { color: var(--charcoal); }
.site-foot p { margin-top: 10px; }

/* ---------- Prose pages (privacy) ---------- */
.prose h2 { font-size: 24px; margin-top: 32px; }
.prose h3 { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* "Post me the printed magazine" address block in subscribe forms. */
.post-fields { display: grid; gap: 16px; padding-left: 30px !important; }
.post-fields[hidden] { display: none; }
.post-fields .hint { font-family: var(--util); font-weight: 600; font-size: 14px; color: var(--graphite); }
.sub-band .form legend, .sub-band .post-fields .hint { color: var(--paper); }
