/* Harrogate Foodie. Designed by Kerve. */

:root {
  --charcoal: #0F0F11;
  --graphite: #2B2C30;
  --text: #202124;
  --paper: #F7F7F2;
  --stone: #EBE9E3;
  --taupe: #B4AAA3;
  --muted: #52524F;
  --rhubarb: #D61F57;
  --rhubarb-light: #F25C8A;
  --white: #FEFEFE;
  --on-dark-muted: #C9C9C3;
  --on-dark-soft: #E4E4DE;

  --sans: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --display: 'freight-big-pro', 'Source Serif 4', Georgia, serif;
  --serif: 'freight-text-pro', 'Source Serif 4', Georgia, serif;

  --wrap: 1280px;
  --gutter: 32px;
  --section: 140px;
  --radius: 4px;
  --rule: 1px solid var(--text);
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --section: 88px;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text); }
a:hover { color: var(--rhubarb); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rhubarb);
  outline-offset: 3px;
}

.dark a:focus-visible,
.dark button:focus-visible,
.dark input:focus-visible { outline-color: var(--rhubarb-light); }

h1, h2, h3, h4 { font-weight: 400; margin: 0; text-wrap: balance; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--white);
  color: var(--charcoal);
  padding: 12px 20px;
  border-radius: 999px;
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The serif half of a split headline */
.serif-half {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.arrow { flex: 0 0 22px; width: 22px; height: 22px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-light { background: var(--white); color: var(--charcoal); }
.btn-light:hover { background: var(--rhubarb-light); color: var(--charcoal); }
.btn-ghost-light { color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--charcoal); }
.btn-dark { background: var(--graphite); color: var(--white); }
.btn-dark:hover { background: var(--rhubarb); color: var(--white); }
.btn-ghost { color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--white); }
.btn-black { background: var(--charcoal); color: var(--white); }
.btn-black:hover { background: var(--graphite); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Dark header ---------- */

.dark { background: var(--charcoal); color: var(--white); }
.dark a:not(.btn) { color: var(--white); }
.dark a:not(.btn):hover { color: var(--rhubarb-light); }

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--rhubarb-light) !important;
  text-decoration: none;
}
.wordmark:hover { color: var(--white) !important; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  background: #000;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  font-size: 16px;
}
.nav a { text-decoration: none; padding: 6px 0; }
.dark .nav a[aria-current="page"] { color: var(--rhubarb-light); }
.dark .nav .nav-cta {
  background: var(--white);
  color: var(--charcoal);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.dark .nav .nav-cta:hover { background: var(--rhubarb-light); color: var(--charcoal); }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--white);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-size: 16px;
    cursor: pointer;
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border-radius: 24px;
  }
  .topbar .wordmark { font-size: 28px; }
  .nav a { padding: 14px 16px; font-size: 18px; }
  .nav .nav-cta { margin-top: 6px; text-align: center; padding: 14px 16px; }
}

/* ---------- Home hero ---------- */

.hero { padding-bottom: 96px; }

.hero-body {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: flex-end;
  margin-top: 120px;
}

.hero h1 {
  flex: 1 1 640px;
  min-width: 0;
  font-size: clamp(48px, 7.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-aside { flex: 1 1 300px; max-width: 380px; }
.hero-aside p {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.hero-photo {
  margin-top: -48px;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .hero-body { margin-top: 72px; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* ---------- Section headings ---------- */

.section { padding-top: var(--section); }
.section-last { padding-bottom: var(--section); }

.section-title {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  margin-bottom: 40px;
}

.more-link { margin-top: 28px; }

/* ---------- Ruled story grid ---------- */

.ruled {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: var(--rule);
  border-left: var(--rule);
}

.ruled-latest { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (min-width: 1100px) {
  .ruled-latest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ruled > * {
  border-right: var(--rule);
  border-bottom: var(--rule);
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 260px;
  padding: 24px 28px;
  text-decoration: none;
  background: var(--paper);
  transition: background-color .15s ease;
}
.card:hover { background: var(--stone); color: var(--text); }
.card:hover .card-title { color: var(--rhubarb); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.card-date { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
.card-type { font-size: 14px; color: var(--muted); }
.card-title {
  margin-top: 6px;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.card-photo {
  margin: -24px -28px 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

.latest-feature {
  grid-row: span 2;
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: var(--taupe);
  color: var(--charcoal);
  text-decoration: none;
  overflow: hidden;
}
.latest-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latest-feature.has-photo::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(15, 15, 17, .72), rgba(15, 15, 17, 0));
}
.latest-feature .feature-text { position: relative; z-index: 1; }
.latest-feature.has-photo { color: var(--white); }
.latest-feature:hover { color: var(--white); }
.latest-feature:not(.has-photo):hover { color: var(--rhubarb); }
.latest-feature h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 5.4vw, 64px);
  line-height: 1;
  letter-spacing: -1px;
}
.latest-feature .feature-kicker { font-size: 15px; margin-bottom: 10px; }

@media (max-width: 700px) {
  .latest-feature { grid-row: auto; min-height: 420px; }
  .card { min-height: 200px; }
}

/* ---------- Story types list ---------- */

.types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: 64px;
}
.type-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0 26px;
  border-top: var(--rule);
  text-decoration: none;
}
.type-row .arrow { margin-top: 8px; transition: transform .15s ease; }
.type-row:hover .arrow { transform: translate(3px, -3px); }
.type-name { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; }
.type-blurb {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 400px) {
  .types { grid-template-columns: 1fr; }
}

/* ---------- Photo tiles (Out of the oven) ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tile { display: block; text-decoration: none; }
.tile-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
}
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-photo img { transform: scale(1.03); }
.tile-title { margin-top: 12px; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }

@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile-title { font-size: 17px; }
}

/* ---------- Newsletter ---------- */

.band { background: var(--rhubarb); color: #FFFFFF; }
.band-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-start;
  padding-top: 96px;
  padding-bottom: 96px;
}
.band h2 {
  flex: 1 1 520px;
  min-width: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -1px;
}
.band .signup { flex: 1 1 360px; max-width: 460px; }
.band .signup-intro { margin: 0 0 22px; font-size: 18px; line-height: 1.5; }

.signup-form { display: flex; flex-direction: column; gap: 14px; }
.signup-form label { font-size: 15px; }
.signup-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-size: 18px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--text);
}
.signup-fields { display: flex; flex-direction: column; gap: 14px; }
.signup-form .field { display: flex; flex-direction: column; gap: 8px; }
.signup-form .btn { align-self: flex-start; }
.signup-form .hp { position: absolute; left: -9999px; }
.signup-form .signup-status { margin: 0; font-size: 17px; line-height: 1.5; }
.signup-form .signup-status:empty { display: none; }
.signup-form.is-done .signup-fields { display: none; }

.signup-box {
  background: var(--rhubarb);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 36px;
  margin: 64px 0;
  font-family: var(--sans);
}
.prose .signup-box h2,
.signup-box h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}
.signup-box > p { margin: 14px 0 22px; font-size: 18px; line-height: 1.5; }
.signup-box .signup-inline .signup-fields {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.signup-box .signup-inline .field { flex: 1 1 240px; min-width: 0; }
.signup-box .signup-inline .btn { align-self: flex-end; min-height: 52px; }
.signup-box .signup-status { margin-top: 12px; }

@media (max-width: 520px) {
  .signup-box { padding: 28px 22px; }
}

/* ---------- Kerve section ---------- */

.kerve {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
  align-items: center;
}
.kerve-copy { flex: 1 1 480px; min-width: 0; }
.kerve-copy p {
  margin: 28px 0 32px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  max-width: 32em;
}
.kerve-photo {
  flex: 1 1 380px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.kerve-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kerve-photo .placeholder-mark {
  font-family: var(--display);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 32px;
  padding-top: 64px;
  padding-bottom: 56px;
  font-size: 16px;
}
.footer .wordmark { font-size: 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { padding: 6px 0; }
.footer-credit { color: var(--on-dark-muted); }

/* ---------- Page and story headers ---------- */

.page-head { padding-bottom: 120px; }
.page-head-body { max-width: 920px; margin-top: 110px; }
.page-head h1 {
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.page-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--on-dark-muted);
}
.standfirst {
  margin: 32px 0 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--on-dark-soft);
  max-width: 30em;
}
.byline { margin-top: 32px; font-size: 16px; color: var(--on-dark-muted); }

.page-head.no-photo { padding-bottom: 96px; }

@media (max-width: 760px) {
  .page-head-body { margin-top: 64px; }
  .page-head { padding-bottom: 88px; }
}

/* ---------- Story body ---------- */

.lead {
  max-width: var(--wrap);
  margin: -64px auto 0;
  padding: 0 var(--gutter);
}
.lead-photo { border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.lead-photo img { width: 100%; }
.lead.is-portrait .lead-photo { max-width: 640px; margin: 0 auto; }
.lead figcaption {
  max-width: 720px;
  margin: 14px auto 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--muted);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.7;
}
.prose + .prose { padding-top: 0; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--sans);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1.8em 0 0.6em;
}
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 27px; }
.prose h4 { font-size: 22px; }
.prose a { color: var(--text); text-decoration-color: var(--rhubarb); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--rhubarb); }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose blockquote p { margin: 0 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 0 auto; }
.prose p > img:only-child { margin: 1.6em auto; }
.prose hr { border: 0; border-top: var(--rule); margin: 2.4em 0; }

/* Two photos side by side: put both images on the same line in Markdown,
   or wrap them in <div class="photo-pair" markdown="1"> */
.prose p:has(> img + img),
.prose .photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 1.6em calc(min(120px, (100vw - 720px) / 2) * -1);
}
.prose p:has(> img + img) img,
.prose .photo-pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0;
}
.prose .photo-pair p { margin: 0; display: contents; }

@media (max-width: 760px) {
  .prose { font-size: 19px; padding-top: 40px; }
  .prose blockquote { font-size: 25px; }
  .prose p:has(> img + img),
  .prose .photo-pair { margin-left: 0; margin-right: 0; gap: 12px; }
}

.ig-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
}

.author {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.author-photo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--stone);
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-body { flex: 1 1 400px; min-width: 0; }
.author h2 { font-size: 30px; letter-spacing: -0.03em; }
.author p {
  margin: 8px 0 18px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
}

/* ---------- Stories listing ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--on-dark-muted);
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
}
.dark .filters a:hover { border-color: var(--white); color: var(--white); background: var(--graphite); }
.dark .filters a[aria-current="page"] { background: var(--white); color: var(--charcoal); border-color: var(--white); }

.stories-list { padding-top: 96px; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
}

.empty {
  font-family: var(--serif);
  font-size: 21px;
  padding: 40px 0;
}

/* ---------- Plain pages ---------- */

.page-cta { max-width: 720px; margin: 8px auto 0; padding: 0 var(--gutter); }

/* ---------- Links page (Instagram bio) ---------- */

.links-page { background: var(--charcoal); color: var(--white); min-height: 100vh; }
.links-page a { color: var(--white); }
.links-page a:hover { color: var(--rhubarb-light); }
.links-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.links-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--taupe);
}
.links-avatar img { width: 100%; height: 100%; object-fit: cover; }
.links-head { display: flex; flex-direction: column; gap: 14px; }
.links-head .wordmark { font-size: 34px; }
.links-tagline { font-size: 30px; line-height: 1.02; letter-spacing: -0.03em; }
.links-list { display: flex; flex-direction: column; font-size: 19px; }
.links-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px 0;
  border-top: 1px solid var(--muted);
  text-decoration: none;
  line-height: 1.25;
}
.links-list a:last-child { border-bottom: 1px solid var(--muted); }
.links-list .kicker { display: block; font-size: 13px; color: var(--on-dark-muted); }
.links-freebie {
  display: block;
  background: var(--rhubarb);
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 18px 22px;
  border-radius: 999px;
  text-align: center;
  font-size: 17px;
}
.links-freebie:hover { background: var(--rhubarb-light); color: var(--charcoal) !important; }
.links-grid-title { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 4px; }
.links-grid-intro { margin: 0 0 14px; font-family: var(--serif); font-size: 16px; color: var(--on-dark-muted); }
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.links-grid a { display: block; aspect-ratio: 4 / 5; background: var(--graphite); overflow: hidden; }
.links-grid img { width: 100%; height: 100%; object-fit: cover; }
.links-foot { margin-top: 12px; font-size: 13px; color: var(--on-dark-muted); }

/* ---------- Error page ---------- */

.error-code { font-size: 16px; color: var(--on-dark-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
