:root {
  --ink: #102d28;
  --muted: #65766f;
  --paper: #fbf8f0;
  --soft: #f2eee4;
  --line: rgba(16, 45, 40, 0.13);
  --accent: #0f8f79;
  --gold: #d8a441;
  --white: #fffdf8;
  --shadow: 0 18px 55px rgba(16, 45, 40, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(251, 248, 240, 0.98)),
    radial-gradient(circle at 12% 5%, rgba(15, 143, 121, 0.12), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(216, 164, 65, 0.12), transparent 28%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 18px max(22px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(16, 45, 40, 0.08);
  background: rgba(251, 248, 240, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer,
.site-footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 950;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  justify-self: end;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--white);
  background: var(--ink);
  font-weight: 950;
}

main {
  display: grid;
  gap: 88px;
  padding-bottom: 58px;
}

.hero,
.featured-section,
.content-section,
.topic-section,
.planner-section,
.app-section,
.about-preview-section,
.daily-section,
.contact-section,
.article-page,
.site-footer {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  padding-top: 90px;
  text-align: center;
}

.hero-kicker,
.article-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 930px;
  margin: 18px auto 18px;
  font-size: clamp(3.5rem, 8.8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.postcode-form button {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 950;
}

.button.primary,
.postcode-form button {
  border: 0;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(16, 45, 40, 0.16);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.featured-section {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 18px;
}

.featured-card,
.postcode-panel,
.article-card,
.planner-card,
.app-section,
.about-preview-section,
.daily-main,
.daily-list a,
.contact-grid a,
.topic-list a {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.featured-card {
  display: grid;
  gap: 28px;
  min-height: 360px;
  padding: 34px;
}

.featured-card h2,
.section-heading h2,
.planner-copy h2,
.app-section h2,
.contact-section h2,
.article-page h1 {
  margin: 12px 0 12px;
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.featured-card p,
.section-heading p,
.planner-copy p,
.app-section p,
.contact-section p,
.article-card p,
.topic-list span,
.postcode-panel p,
.article-page p,
.article-page li {
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  align-self: end;
  width: fit-content;
  color: var(--accent);
  font-weight: 950;
}

.postcode-panel {
  padding: 28px;
}

.postcode-panel h2 {
  margin: 12px 0;
  font-size: 2rem;
  line-height: 1;
}

.postcode-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.postcode-form input,
.planner-card input[type="date"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  min-height: 246px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover,
.topic-list a:hover,
.contact-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 121, 0.32);
  box-shadow: var(--shadow);
}

.article-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.article-card.feature-article {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(242, 238, 228, 0.78));
  border-color: rgba(15, 143, 121, 0.22);
}

.daily-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.daily-main {
  min-height: 330px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 30px;
  background:
    linear-gradient(160deg, rgba(16, 45, 40, 0.92), rgba(15, 143, 121, 0.82)),
    var(--ink);
  color: var(--white);
}

.daily-main span,
.daily-list span {
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-main h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.daily-main p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.55;
}

.daily-list {
  display: grid;
  gap: 12px;
}

.daily-list a {
  display: grid;
  gap: 12px;
  min-height: 102px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.daily-list a:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 121, 0.32);
  box-shadow: var(--shadow);
}

.daily-list span {
  color: var(--accent);
}

.daily-list strong {
  font-size: 1.2rem;
  line-height: 1.18;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.topic-list a {
  display: grid;
  gap: 8px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.topic-list strong {
  font-size: 1.2rem;
}

.planner-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: var(--soft);
}

.planner-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.84);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.75);
  font-weight: 950;
}

.segmented button.active {
  color: var(--white);
  background: var(--ink);
}

.planner-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.planner-card input[type="range"] {
  accent-color: var(--accent);
}

.planner-result {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.planner-result span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.planner-result strong {
  display: block;
  margin: 8px 0;
  font-size: 1.65rem;
}

.app-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: var(--ink);
  color: var(--white);
}

.app-section p,
.app-section .article-label {
  color: rgba(255, 253, 248, 0.72);
}

.app-section .button.primary {
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.about-preview-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
}

.about-preview-section div {
  max-width: 760px;
}

.about-preview-section h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.about-preview-section p {
  color: var(--muted);
  line-height: 1.6;
}

.email-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 45, 40, 0.26);
  backdrop-filter: blur(18px);
}

.email-gate.hidden {
  display: none;
}

.email-gate-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(16, 45, 40, 0.28);
}

.email-gate-card h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 0.95;
}

.email-gate-card p {
  color: var(--muted);
  line-height: 1.55;
}

.email-gate-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
}

.email-gate-form {
  display: grid;
  gap: 10px;
  margin: 22px 0 12px;
}

.email-gate-form input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(251, 248, 240, 0.64);
}

.email-gate-form button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-weight: 950;
}

.email-gate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.email-gate-actions button,
.email-gate-actions a {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 950;
}

.email-gate-note {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-grid a {
  display: grid;
  gap: 10px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-grid strong {
  font-size: clamp(1.12rem, 2.6vw, 1.7rem);
  overflow-wrap: anywhere;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer div {
  gap: 18px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 900;
}

.article-page {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 42px;
  padding-top: 72px;
}

.article-body {
  min-width: 0;
}

.article-body h1 {
  margin-top: 14px;
}

.article-body .lead {
  font-size: 1.22rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.article-body h2 {
  margin-top: 40px;
  font-size: 1.8rem;
}

.article-body h3 {
  margin-top: 26px;
  font-size: 1.22rem;
}

.article-body p,
.article-body li {
  font-size: 1.03rem;
}

.article-body a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-box,
.source-list {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.78);
}

.note-box strong,
.source-list strong {
  display: block;
  margin-bottom: 10px;
}

.source-list ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.article-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.72);
}

.article-sidebar strong {
  font-size: 1.15rem;
}

.article-sidebar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .featured-section,
  .planner-section,
  .daily-grid,
  .article-page {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero,
  .featured-section,
  .content-section,
  .topic-section,
  .planner-section,
  .daily-section,
  .app-section,
  .about-preview-section,
  .contact-section,
  .article-page,
  .site-footer {
    width: calc(100vw - 28px);
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand span {
    font-size: 0.94rem;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 13px;
  }

  main {
    gap: 62px;
  }

  .hero {
    padding-top: 56px;
    text-align: left;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero p {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .article-grid,
  .topic-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .featured-card,
  .postcode-panel,
  .planner-section,
  .daily-main,
  .about-preview-section,
  .app-section {
    padding: 24px;
  }

  .app-section,
  .about-preview-section,
  .site-footer,
  .site-footer div {
    display: grid;
  }
}
