@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --slate: #1a2a32;
  --slate-2: #29434e;
  --daylight: #eef3f6;
  --daylight-deep: #dfe9ed;
  --paper: #f8fbfc;
  --white: #ffffff;
  --ink: #18272e;
  --muted: #56665c;
  --lichen: #6d7a70;
  --line: #bdcbd1;
  --gold: #c4920a;
  --gold-bright: #d6a817;
  --gold-ink: #6f5200;
  --safety: #862f2b;
  --safety-bg: #f8e9e7;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--daylight) 0, var(--daylight) 35rem, #f7fafb 62rem);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}
a { color: #24556b; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; background: var(--slate); color: #fff; padding: 0.55rem 0.9rem; z-index: 10; }
.skip:focus { top: 0.5rem; }

.site-header, .site-footer, main { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 100px;
  padding: 1rem 0 1.15rem;
  border-bottom: 2px solid var(--slate);
}
.site-header::after {
  content: "";
  position: absolute;
  right: 2rem;
  bottom: -2px;
  width: 154px;
  height: 27px;
  border: 3px solid var(--gold);
  border-bottom: 0;
  border-radius: 100% 100% 0 0;
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--slate); text-decoration: none; flex: none; }
.brand:hover { color: var(--slate); }
.mark { width: 61px; height: 44px; flex: none; }
.wordmark { display: block; font-family: var(--serif); font-size: 1.72rem; font-weight: 600; line-height: 0.95; letter-spacing: -0.02em; }
.wordmark small { display: block; margin-top: 0.47rem; color: var(--muted); font-family: var(--sans); font-size: 0.64rem; font-weight: 600; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 1.35rem; padding-right: 11.5rem; }
.site-header nav a { position: relative; color: var(--slate); font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--gold-ink); }
.site-header nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.45rem; height: 3px; background: var(--gold); }

h1, h2, h3 { color: var(--slate); font-family: var(--serif); font-weight: 600; line-height: 1.12; }
h1 { margin: 0 0 0.75rem; font-size: clamp(2.45rem, 5vw, 4.7rem); letter-spacing: -0.035em; }
.eyebrow, .kicker { margin: 0 0 0.7rem; color: var(--gold-ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow a { color: inherit; text-decoration: none; }
.dek, .lede { color: #465a63; font-size: 1.16rem; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.72fr;
  align-items: stretch;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  background: var(--slate);
  border-bottom: 8px solid var(--gold);
  color: #fff;
}
.hero::before {
  content: "51.5°N / UK WINTER DAYLIGHT";
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  z-index: 2;
  color: #e2bd53;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.hero-copy { padding: clamp(2rem, 5vw, 4.7rem); align-self: center; }
.hero h1 { max-width: 13ch; color: #fff; }
.hero .eyebrow { color: #e2bd53; }
.hero .lede { max-width: 43rem; color: #dbe5e8; }
.home-hero { display: grid; align-content: end; min-width: 0; margin: 0; border-left: 1px solid #77909a; background: var(--daylight-deep); }
.home-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hero figcaption { padding: 0.45rem 0.8rem; background: var(--daylight); color: var(--slate); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.button, button.primary, button.choice {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--slate);
  border-radius: 0;
  background: var(--slate);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}
.button:hover, button.primary:hover { border-color: var(--gold); background: var(--gold); color: var(--slate); }
.button.secondary { background: transparent; color: var(--slate); }
.hero .button { border-color: var(--gold); background: var(--gold); color: var(--slate); }
.hero .button:hover { border-color: #f0cf70; background: #f0cf70; }
.hero .button.secondary { border-color: #dbe5e8; background: transparent; color: #fff; }
.hero .button.secondary:hover { border-color: #fff; background: #fff; color: var(--slate); }

.yield-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 4.5rem;
  border: 1px solid var(--slate);
  background: var(--paper);
}
.yield-strip > div { position: relative; min-width: 0; padding: 1.1rem 1.2rem 1.25rem 1.55rem; border-right: 1px dashed var(--lichen); }
.yield-strip > div:last-child { border-right: 0; }
.yield-strip > div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: repeating-linear-gradient(to bottom, var(--gold) 0 3px, transparent 3px 9px); }
.yield-strip span, .card-label, .ticket-code { color: var(--gold-ink); font-size: 0.69rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.yield-strip strong { display: block; margin: 0.18rem 0 0.25rem; color: var(--slate); font-family: var(--serif); font-size: 1.2rem; }
.yield-strip p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.directory { margin-bottom: 4.5rem; }
.section-head { position: relative; margin: 0 0 1.4rem; padding-top: 1.55rem; }
.section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 115px;
  height: 23px;
  border: 3px solid var(--gold);
  border-bottom: 0;
  border-radius: 100% 100% 0 0;
}
.section-head::after { content: ""; position: absolute; top: 20px; left: 0; width: 145px; border-top: 1px solid var(--slate); }
.section-head .kicker { margin-bottom: 0.35rem; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  position: relative;
  display: block;
  min-height: 235px;
  padding: 1rem 1.1rem 1.25rem 1.55rem;
  overflow: hidden;
  border: 1px solid #aebfc6;
  border-radius: 0;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: repeating-linear-gradient(to bottom, var(--gold) 0 3px, transparent 3px 9px); }
.card::after { content: ""; position: absolute; right: 0.8rem; bottom: 0.75rem; width: 50px; height: 12px; opacity: 0.45; background: repeating-linear-gradient(90deg, var(--slate) 0 1px, transparent 1px 5px); }
.card:hover { transform: translateY(-3px); border-color: var(--slate); background: #fbfdfe; color: inherit; }
.card .card-label { display: block; padding-right: 0; }
.card .ticket-code { position: static; display: block; margin: 0.15rem 0 0; color: var(--muted); font-size: 0.6rem; letter-spacing: 0.08em; }
.card strong { display: block; margin: 0.55rem 0 0.35rem; color: var(--slate); font-family: var(--serif); font-size: 1.27rem; font-weight: 600; line-height: 1.28; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.5; }
.card.money { border-top: 4px solid var(--gold); padding-top: calc(1rem - 3px); }

.dir-row { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.dir-row:last-of-type { border-bottom: 1px solid var(--line); }
.dir-topic { margin: 0.2rem 0 0; color: var(--gold-ink); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.dir-row ul { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.dir-row a { display: block; color: inherit; text-decoration: none; }
.dir-row a strong { display: block; color: var(--slate); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.dir-row a span { color: var(--muted); }
.dir-row a:hover strong { color: var(--gold-ink); }
.growing { padding: 1rem; border-left: 6px solid var(--gold); background: var(--daylight-deep); color: var(--muted); }

.article {
  margin: 2rem 0 4rem;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-top: 6px solid var(--slate);
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(26, 42, 50, 0.08);
}
.article > h1 { max-width: 18ch; }
.prose { max-width: 47rem; }
.article-hero, .diagram { max-width: 47rem; margin: 1.5rem 0; }
.article-hero img, .diagram img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0; }
.article-hero figcaption, .diagram figcaption { color: var(--muted); font-size: 0.83rem; }
.prose h2, .sources h2, .related h2, .article > section > h2 { position: relative; margin-top: 2.5rem; padding-top: 1.15rem; font-size: 1.75rem; }
.prose h2::before, .sources h2::before, .related h2::before, .article > section > h2::before { content: ""; position: absolute; top: 0; left: 0; width: 76px; height: 15px; border: 2px solid var(--gold); border-bottom: 0; border-radius: 100% 100% 0 0; }
.prose h3 { margin-top: 1.6rem; font-size: 1.28rem; }
.prose li { margin: 0.35rem 0; }
.prose table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { border-bottom: 2px solid var(--slate); color: var(--slate); }
.table-wrap { max-width: 100%; overflow-x: auto; }
.hub-art { margin: 1.5rem 0 2.2rem; }
.hub-art img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0; }
.alphabet { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1.25rem 0; }
.alphabet a { min-width: 2rem; padding: 0.25rem; border: 1px solid var(--slate); border-radius: 0; text-align: center; text-decoration: none; }
.glossary h2 { scroll-margin-top: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.9rem; }
blockquote { margin: 1.2rem 0; padding: 0.5rem 0 0.5rem 1rem; border-left: 5px solid var(--gold); color: var(--muted); }
code { padding: 0.05rem 0.3rem; background: var(--daylight); border-radius: 0; }
.embed-code { max-width: 100%; margin: 0.8rem 0 1.5rem; padding: 1rem; overflow-x: auto; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 0; background: var(--daylight); font-size: 0.82rem; line-height: 1.45; white-space: pre-wrap; }
.embed-code code { padding: 0; background: transparent; }

.disclosure { margin: 1rem 0 1.5rem; padding: 0.8rem 1rem; border: 1px solid #d8c47f; border-left: 6px solid var(--gold); border-radius: 0; background: #fff9e8; font-size: 0.95rem; }
.stop, .note { margin: 1.25rem 0; padding: 0.55rem 1.1rem; border-radius: 0; }
.stop { border: 1px solid #d7a9a5; border-left: 6px solid var(--safety); background: var(--safety-bg); }
.stop h2, .stop h3 { color: var(--safety); }
.note { border: 1px solid var(--line); border-left: 6px solid var(--slate-2); background: var(--daylight); }
.product { margin: 1rem 0; padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 0; background: #fbfdfe; }
.product p:first-child strong { color: var(--slate); font-family: var(--serif); font-size: 1.13rem; }
.untested { color: var(--muted); font-size: 0.92rem; font-style: italic; }
.related { margin-top: 2.8rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.sources { margin-top: 2rem; padding-top: 0.5rem; border-top: 1px solid var(--line); font-size: 0.93rem; }
.sources li { overflow-wrap: anywhere; }

.form, .check-tool { display: grid; gap: 0.85rem; margin: 1.2rem 0; padding: 1.2rem; border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: 0; background: var(--daylight); }
.check-tool fieldset { margin: 0; padding: 0; border: 0; }
.check-tool legend { margin-bottom: 0.35rem; color: var(--slate); font-family: var(--serif); font-size: 1.18rem; font-weight: 600; }
.check-tool output { display: block; padding: 0.85rem 1rem; border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 0; background: var(--white); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.95rem; font-weight: 600; }
label.check, label.radio { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: 400; }
input, textarea, select { min-height: 44px; padding: 0.55rem 0.65rem; border: 1px solid #80939c; border-radius: 0; background: #fff; color: inherit; font: inherit; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; min-height: auto; }
textarea { min-height: 150px; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.estimator .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.estimator output dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; margin: 0.5rem 0; }
.estimator output dt { font-weight: 600; }
.estimator output dd { margin: 0; }
.infographic img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0; background: #fff; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 2rem;
  padding: 3rem 0 3.5rem;
  background: var(--slate);
  box-shadow: 0 0 0 100vmax var(--slate);
  clip-path: inset(0 -100vmax);
  color: #cad7da;
  font-size: 0.94rem;
}
.site-footer a { display: block; margin: 0.25rem 0; color: #fff; }
.site-footer a:hover { color: #e2bd53; }
.site-footer strong { color: #fff; font-family: var(--serif); font-size: 1.22rem; }
.site-footer .mark { color: #fff; }
.foot-brand { display: flex; align-items: flex-start; gap: 0.8rem; }
.foot-brand p { margin: 0.35rem 0; }
.foot-head { margin: 0 0 0.5rem; color: #e2bd53; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }

.banner {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1rem, calc((100% - 1160px) / 2));
  border-top: 8px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--gold) 0 4px, var(--slate) 4px 12px) 8;
  background: #263940;
  color: #fff;
}
.banner p { max-width: 49rem; margin: 0; }
.banner a { color: #f0cf70; }
.banner .actions { margin: 0; }
.banner button.choice { min-width: 8rem; border-color: #fff; background: transparent; color: #fff; }
.banner button.choice[data-accept] { border-color: var(--gold); background: var(--gold); color: var(--slate); }
.banner button.choice:hover { border-color: #fff; background: #fff; color: var(--slate); }
.banner[hidden], [hidden] { display: none !important; }

@media (max-width: 1040px) {
  .site-header { align-items: flex-start; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; padding-right: 0; }
  .site-header::after { display: none; }
  .hero { grid-template-columns: 1fr 0.7fr; }
  .hero-copy { padding: 2.5rem; }
}

@media (max-width: 820px) {
  body { font-size: 1rem; }
  .site-header { display: block; padding-bottom: 0; }
  .brand { width: fit-content; margin-bottom: 1rem; }
  .site-header nav { justify-content: flex-start; gap: 0; overflow-x: auto; border-top: 1px solid var(--line); }
  .site-header nav a { padding: 0.75rem 1rem 0.8rem 0; margin-right: 1rem; }
  .site-header nav a[aria-current="page"]::after { bottom: 0; }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero::before { display: none; }
  .home-hero { border-top: 1px solid #77909a; border-left: 0; }
  .home-hero img { max-height: 420px; }
  .yield-strip, .cards, .site-footer, .grid, .dir-row, .estimator .grid3 { grid-template-columns: 1fr; }
  .yield-strip > div { border-right: 0; border-bottom: 1px dashed var(--lichen); }
  .yield-strip > div:last-child { border-bottom: 0; }
  .dir-row { gap: 0.5rem; }
  .card { min-height: 0; }
  .banner { flex-direction: column; align-items: stretch; }
  .banner .actions { justify-content: stretch; }
  .banner button.choice { flex: 1; }
}

@media (max-width: 520px) {
  .site-header, .site-footer, main { width: min(100% - 1.2rem, 1160px); }
  .mark { width: 52px; }
  .wordmark { font-size: 1.5rem; }
  .hero-copy { padding: 1.5rem 1.2rem 2rem; }
  .article { padding: 1.2rem 1rem; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .card .ticket-code { position: static; display: block; margin-top: 0.2rem; }
  .card .card-label { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
