/* The Fountain Inn – Plumpton Green
   Colours read off the building itself: flint and red brick walls, dark signage picked out
   in brass, terracotta pantiles, and the chalk of the Downs behind it. */

:root {
  --ink: #171512;
  --ink-2: #221f1a;
  --ink-3: #2f2b24;
  --flint: #3c3f3d;
  --brass: #b8934e;
  --brass-lift: #dcbb79;
  --terracotta: #a8543a;
  --chalk: #f7f4ee;
  --chalk-2: #ece4d6;
  --chalk-3: #ddd2be;
  --text: #262019;
  --muted: #6d6355;
  --muted-dark: #b6ac9c;
  --rule: rgba(38, 32, 25, 0.14);
  --rule-dark: rgba(236, 228, 214, 0.16);
  --shadow: 0 24px 60px -30px rgba(23, 21, 18, 0.55);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --section: clamp(3.25rem, 7vw, 6rem);
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 4vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--chalk);
  padding: 0.85rem 1.25rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- eyebrow ---------- */

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
}
.on-dark .eyebrow { color: var(--brass-lift); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: #1b1508;
}
.btn-primary:hover { background: var(--brass-lift); border-color: var(--brass-lift); }

.btn-ghost {
  background: transparent;
  border-color: rgba(236, 228, 214, 0.45);
  color: var(--chalk);
}
.btn-ghost:hover { border-color: var(--brass-lift); color: var(--brass-lift); }

.btn-outline {
  background: transparent;
  border-color: rgba(38, 32, 25, 0.32);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(38, 32, 25, 0.05); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--chalk);
  border-bottom: 1px solid var(--rule-dark);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  padding: 0.4rem 0;
  margin-right: auto;
}
.brand img { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-place {
  display: block;
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.site-nav { display: none; }
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { border-bottom-color: var(--brass); color: var(--brass-lift); }

.header-actions { display: flex; align-items: center; gap: 0.55rem; }

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--chalk);
  white-space: nowrap;
}
.header-tel:hover { color: var(--brass-lift); }
.header-tel svg { width: 17px; height: 17px; flex: none; }
.header-tel .tel-text { display: none; }

.header-actions .btn {
  padding: 0.6rem 1.05rem;
  min-height: 44px;
  font-size: 0.87rem;
  white-space: nowrap;
}

/* Narrow phones: the wordmark and the booking button were both wrapping onto two lines and
   pushing the header to twice its height. Tighten both rather than drop either - the whole
   point of this build is that a phone visitor can see how to book without hunting. */
@media (max-width: 560px) {
  .brand img { width: 34px; height: 34px; }
  .brand { gap: 0.55rem; }
  .brand-name { font-size: 0.95rem; }
  .brand-place { font-size: 0.56rem; letter-spacing: 0.16em; }
  .header-tel { padding: 0.4rem 0.35rem; }
  .header-actions { gap: 0.3rem; }
  .header-actions .btn { padding: 0.55rem 0.8rem; font-size: 0.8rem; letter-spacing: 0.02em; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 0.88rem; }
  .brand-place { display: none; }
}

@media (min-width: 900px) {
  :root { --header-h: 78px; }
  .site-nav { display: block; margin-right: 1.6rem; }
  .header-tel .tel-text { display: inline; }
}

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

.hero {
  position: relative;
  background: var(--ink);
  color: var(--chalk);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(20, 18, 15, 0.92) 0%, rgba(20, 18, 15, 0.78) 45%, rgba(20, 18, 15, 0.45) 100%),
    linear-gradient(to top, rgba(20, 18, 15, 0.9) 0%, rgba(20, 18, 15, 0.2) 55%);
}

.hero-inner {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4rem);
  max-width: 41rem;
}
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .line-2 { display: block; color: var(--brass-lift); }
.hero-lede {
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.28rem);
  color: rgba(247, 244, 238, 0.9);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  margin: 2.4rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--rule-dark);
  list-style: none;
  font-size: 0.9rem;
}
.hero-facts li { display: flex; align-items: baseline; gap: 0.45rem; }
.hero-facts b {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brass-lift);
}
.hero-facts span { color: rgba(247, 244, 238, 0.72); }

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

.section { padding-block: var(--section); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.on-dark {
  background: var(--ink);
  color: var(--chalk);
}
.on-dark .section-head p { color: var(--muted-dark); }
.on-dark h2 { color: var(--chalk); }

.tint { background: var(--chalk-2); }

/* ---------- welcome ---------- */

.welcome-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
@media (min-width: 860px) {
  .welcome-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.welcome-copy p { font-size: 1.06rem; }
.welcome-sign {
  margin-top: 1.6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--terracotta);
}
.welcome-media img { border-radius: 3px; box-shadow: var(--shadow); }
.welcome-media figcaption {
  margin-top: 0.7rem;
  font-size: 0.83rem;
  color: var(--muted);
}
.welcome-media { margin: 0; }

/* ---------- what's on ---------- */

.week {
  display: grid;
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
@media (min-width: 640px) { .week { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .week { grid-template-columns: repeat(4, 1fr); } }

.week-card {
  background: var(--ink);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.week-day {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.week-card h3 { margin: 0; color: var(--chalk); }
.week-card p { color: var(--muted-dark); font-size: 0.94rem; }
.week-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted-dark);
  font-size: 0.92rem;
}
.week-card li { margin-bottom: 0.2rem; }
.week-note {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.week-note.is-brass { color: var(--brass-lift); }

.week-foot {
  margin-top: 1.6rem;
  font-size: 0.94rem;
  color: var(--muted-dark);
}
.week-foot a { color: var(--brass-lift); }

/* ---------- menu ---------- */

.menu-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}
@media (min-width: 780px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }

.course { break-inside: avoid; }
.course h3 {
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--brass);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.dish:last-child { border-bottom: 0; }
.dish-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.dish-price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  white-space: nowrap;
}
.dish-desc {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.36rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 0.12em;
}

.menu-key {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
}
.menu-key strong { color: var(--text); }

.dish-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.dish-strip img { border-radius: 3px; width: 100%; }

/* ---------- sunday ---------- */

.sunday-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .sunday-grid { grid-template-columns: 0.95fr 1.05fr; }
}
.sunday-list { list-style: none; margin: 0; padding: 0; }
.sunday-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--rule-dark);
}
.sunday-list li:last-child { border-bottom: 0; }
.sunday-list .name { font-weight: 700; font-size: 1rem; }
.sunday-list .price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--brass-lift);
}
.sunday-note {
  margin-top: 1.3rem;
  font-size: 0.92rem;
  color: var(--muted-dark);
}
.sunday-media img { border-radius: 3px; box-shadow: var(--shadow); }

/* ---------- events ---------- */

.tiers {
  display: grid;
  gap: 1.15rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
@media (min-width: 800px) { .tiers { grid-template-columns: repeat(3, 1fr); } }

.tier {
  background: var(--chalk);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  padding: 1.6rem 1.45rem;
}
.tint .tier { background: #fff; }
.tier-price {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}
.tier-price small {
  display: block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}
.tier ul {
  margin: 1.15rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 0.93rem;
}
.tier li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}
.tier .plus {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-left: 0;
}
.tier .plus::before { display: none; }

.events-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 880px) { .events-grid { grid-template-columns: 1fr 1fr; } }
.events-grid img { border-radius: 3px; box-shadow: var(--shadow); }

.terms {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
@media (min-width: 780px) { .terms { grid-template-columns: 1fr 1fr; } }
.terms h4 {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.6rem;
}

/* ---------- booking ---------- */

.book-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) { .book-grid { grid-template-columns: 0.85fr 1.15fr; } }

.book-aside p { color: var(--muted-dark); }
.book-call {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 600;
  color: var(--brass-lift);
  text-decoration: none;
}
.book-call:hover { color: var(--chalk); }
.book-call svg { width: 24px; height: 24px; flex: none; }

.form-card {
  background: var(--ink-2);
  border: 1px solid var(--rule-dark);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: rgba(247, 244, 238, 0.06);
  border: 1px solid rgba(236, 228, 214, 0.24);
  border-radius: 2px;
  color: var(--chalk);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(236, 228, 214, 0.42); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(236, 228, 214, 0.4); }
.field select option { background: var(--ink-2); color: var(--chalk); }

.form-card .btn-primary { width: 100%; margin-top: 0.35rem; }
.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted-dark);
  line-height: 1.5;
}

/* ---------- find us ---------- */

.find-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 860px) { .find-grid { grid-template-columns: 1fr 1fr; } }

.address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
}
.address a { color: var(--text); }
.find-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.getting-here {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.94rem;
  color: var(--muted);
}

.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours caption {
  text-align: left;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: 0.75rem;
}
.hours th, .hours td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.hours th { font-weight: 700; width: 30%; }
.hours td { color: var(--muted); }
.hours td.closed { color: var(--terracotta); font-weight: 700; }
.hours + .hours { margin-top: 2rem; }
.hours-pair { display: grid; gap: 2rem; }

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

.site-footer {
  background: var(--ink);
  color: var(--chalk);
  padding-block: clamp(2.75rem, 6vw, 4rem) 2rem;
  border-top: 3px solid var(--brass);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-dark);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: 0.94rem; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: rgba(247, 244, 238, 0.82); text-decoration: none; }
.footer-grid a:hover { color: var(--brass-lift); text-decoration: underline; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted-dark); font-size: 0.94rem; max-width: 24rem; }

.socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
}
.socials a:hover { border-color: var(--brass); }
.socials svg { width: 19px; height: 19px; }

.colophon {
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

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

.oops {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  color: var(--chalk);
  text-align: center;
  padding-block: 3rem;
}
.oops img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.75rem; }
.oops h1 { margin-bottom: 0.4em; }
.oops p { color: var(--muted-dark); max-width: 32rem; margin-inline: auto; }
.oops .hero-cta { justify-content: center; }
