/* The Kings Arms, Stratton-on-the-Fosse
   Palette sampled from the pub's own frontage: sage render, cream window surrounds,
   slate chalkboards, the blue-grey front door and the terracotta pantile roof. */

:root {
  --paper: #f6f2ea;
  --paper-warm: #efe9dd;
  --cream: #e9e2d8;
  --ink: #23282a;
  --ink-soft: #4d5450;
  --sage: #6e7c6b;
  --sage-deep: #3b473c;
  --sage-pale: #a2aca1;
  --slate: #434b52;
  --door: #5f7688;
  --brick: #8a5642;

  --measure: 34rem;
  --shell: 74rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 3px;
  --rule: 1px solid color-mix(in srgb, var(--sage-deep) 18%, transparent);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.shell {
  width: min(100% - 2 * var(--gap), var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage-deep);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- eyebrow / small caps label ---------- */

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin: 0 0 0.9rem;
  max-width: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.wordmark {
  text-decoration: none;
  display: grid;
  line-height: 1.05;
  margin-right: auto;
}
.wordmark b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.wordmark span {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { border-bottom-color: var(--brick); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid var(--sage-deep);
  background: var(--sage-deep);
  color: var(--paper);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: #2f3a30; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--sage-deep); }
.btn--ghost:hover { background: var(--cream); color: var(--sage-deep); }
.btn--light { border-color: var(--paper); background: var(--paper); color: var(--sage-deep); }
.btn--light:hover { background: var(--cream); }
.btn--outline-light { border-color: color-mix(in srgb, var(--paper) 65%, transparent); background: transparent; color: var(--paper); }
.btn--outline-light:hover { background: color-mix(in srgb, var(--paper) 14%, transparent); }

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

.hero { position: relative; background: var(--sage-deep); color: var(--paper); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: clamp(20rem, 56vh, 34rem);
  object-fit: cover;
  object-position: 50% 58%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 40, 42, 0.28) 0%, rgba(35, 40, 42, 0.05) 35%, rgba(59, 71, 60, 0.86) 100%);
}

.hero__body {
  position: relative;
  margin-top: -6.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 0.6rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage-pale);
}
.hero__lede {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  color: color-mix(in srgb, var(--paper) 88%, transparent);
  max-width: 33rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

/* ---------- facts ribbon ---------- */

.ribbon {
  background: var(--cream);
  border-block: var(--rule);
}
.ribbon ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}
.ribbon li { display: flex; align-items: baseline; gap: 0.55rem; }
.ribbon li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brick);
  flex: none;
  transform: translateY(-2px);
}
.ribbon b { font-weight: 600; }

/* ---------- sections ---------- */

.section { padding-block: var(--section-y); }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--sage-deep); color: var(--paper); }
.section--dark .eyebrow { color: var(--sage-pale); }

.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); margin-bottom: 0.75rem; }
.section__head p { color: var(--ink-soft); }
.section--dark .section__head p { color: color-mix(in srgb, var(--paper) 82%, transparent); }

/* ---------- split layout ---------- */

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--flip > :first-child { order: 2; }
}

.frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(35, 40, 42, 0.12), 0 12px 28px -18px rgba(35, 40, 42, 0.45);
}
.frame img { width: 100%; }

/* Paired photographs. The source frames are a mix of portrait and landscape, so the pair is
   given one aspect ratio and the images are cropped into it - otherwise the shorter of the
   two leaves a block of empty paper beside the taller one. */
.stack-2 { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 34rem) {
  .stack-2 { grid-template-columns: 1fr 1fr; }
}
.stack-2 .frame { aspect-ratio: 4 / 3; }
/* Beside a tall column of text, a pair of landscape frames reads as an afterthought; the
   food shots are given portrait crops so the two columns finish together. */
.stack-2--tall .frame { aspect-ratio: 4 / 5; }
.stack-2 .frame img { width: 100%; height: 100%; object-fit: cover; }
.stack-2 .frame img[src$="steak.jpg"] { object-position: 50% 62%; }
.stack-2 .frame img[src$="lounge.jpg"] { object-position: 50% 42%; }

/* ---------- lists ---------- */

.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.55rem; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.62rem; height: 0.34rem;
  border-left: 1.5px solid var(--brick);
  border-bottom: 1.5px solid var(--brick);
  transform: rotate(-45deg);
}
.section--dark .ticks li::before { border-color: var(--sage-pale); }

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}
.card {
  background: var(--paper);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section--warm .card { background: var(--paper); }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- quotes ---------- */

.quotes {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.quote {
  border-left: 2px solid var(--sage-pale);
  padding-left: 1.25rem;
}
.quote blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.45;
}
.quote figcaption {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--paper) 74%, transparent);
}
.quote figcaption b { font-weight: 600; letter-spacing: 0; }

.source-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--paper) 66%, transparent);
  max-width: 42rem;
}

/* ---------- hours table ---------- */

.hours { width: 100%; border-collapse: collapse; max-width: 26rem; font-size: 0.95rem; }
.hours th, .hours td { text-align: left; padding: 0.5rem 0; border-bottom: var(--rule); font-weight: 400; }
.hours th { font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .is-closed td { color: var(--ink-soft); }

.note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 26rem;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.detail-list { display: grid; gap: 1.1rem; margin: 0; }
.detail-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.15rem;
}
.detail-list dd { margin: 0; }
.detail-list a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.88rem;
}
.site-footer a { color: var(--paper); }
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.site-footer b { color: var(--paper); font-weight: 600; }
.footer-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  font-size: 0.8rem;
  max-width: none;
}

/* ---------- 404 ---------- */

.oops {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--gap);
  gap: 0.4rem;
}
.oops h1 { font-size: clamp(2rem, 6vw, 3rem); }
.oops p { max-width: 30rem; margin-inline: auto; color: var(--ink-soft); }
.oops .btn { margin-top: 1rem; justify-self: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}
