/* The Apple Tree, Shirley
   Palette taken from the pub: dark green-charcoal walls, mustard velvet stools,
   sage cladding, cream. */

@font-face {
  font-family: "Zilla Slab";
  src: url("/assets/fonts/zilla-slab-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --forest: #1f2924;
  --forest-deep: #161d1a;
  --forest-line: #3a4842;
  --sage: #dfe6de;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #1b1f1d;
  --muted: #535b56;
  --mustard: #d9ab3a;
  --mustard-soft: #f0d58c;
  --olive: #56631f;
  --link: #2d5a44;
  --radius: 6px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-label: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --header-h: 4.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
main { flex: 1 0 auto; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

address { font-style: normal; }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.narrow { max-width: 46rem; }
.center { text-align: center; }
.small { font-size: 0.9rem; color: var(--muted); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--olive);
  margin-bottom: 0.5rem;
}
.lead { font-size: 1.2rem; max-width: 38rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1.4rem;
  border: 2px solid var(--mustard);
  border-radius: var(--radius);
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--mustard-soft); border-color: var(--mustard-soft); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(127, 127, 127, 0.15); border-color: currentColor; }
.btn-small { min-height: 2.5rem; padding: 0.3rem 1rem; font-size: 1rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest);
  color: var(--cream);
  border-bottom: 1px solid var(--forest-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  margin: 0;
}
.wordmark-the {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
  padding-left: 0.3em;
}
.wordmark-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--forest-line);
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 0.5rem 0.6rem;
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--forest-line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--mustard); }

@media (max-width: 1079px) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--forest-line);
    font-size: 1.25rem;
  }
  .site-nav a[aria-current="page"] { color: var(--mustard); border-bottom-color: var(--forest-line); }
}

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

.hero {
  display: grid;
  background: var(--forest);
  color: var(--cream);
}
.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-text { padding: 2.5rem 1.25rem 3rem; }
.hero .eyebrow { color: var(--mustard); }
.hero h1 { max-width: 16ch; }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 45fr 55fr;
    min-height: min(78vh, 44rem);
  }
  .hero-media { order: 2; }
  .hero-media img { aspect-ratio: auto; }
  .hero-text {
    align-self: center;
    padding: 3rem clamp(1.5rem, 4vw, 4rem);
    max-width: 38rem;
    justify-self: end;
  }
}

.today {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 1rem 0 0;
}
.today::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--mustard);
  vertical-align: 0.1em;
}

.page-header {
  background: var(--forest);
  color: var(--cream);
  padding: 3rem 0 3.25rem;
}
.page-header .eyebrow { color: var(--mustard); }
.page-header a:not(.btn) { color: var(--mustard-soft); }
.page-header .btn-group { margin-top: 1.25rem; }

.notice {
  background: var(--mustard);
  color: var(--ink);
  padding: 0.9rem 0;
}
.notice p { margin: 0; }
.notice a { color: var(--ink); font-weight: 600; }

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

.section { padding: clamp(3rem, 2rem + 4vw, 5rem) 0; }
.section-tint { background: var(--sage); }
.section-dark { background: var(--forest); color: var(--cream); }
.section-dark a:not(.btn) { color: var(--mustard-soft); }
.section-dark .small { color: #c9cfc9; }
.section-title { margin-bottom: 1.25rem; }

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.split-media img,
.gallery img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .gallery-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery-3 img { aspect-ratio: 3 / 4; }
}

/* ------------------------------------------------------------ components */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.1rem 1.25rem 1.4rem; }
.card-body p { margin: 0; color: var(--muted); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { text-decoration: underline; }
.card:focus-within { outline: 3px solid var(--mustard); outline-offset: 2px; }
.card h3 a:focus-visible { outline: none; }

.facts {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li { padding-top: 0.75rem; border-top: 2px solid var(--mustard); }
.facts strong,
.contact-list span,
.event-when {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.facts strong { font-size: 1.05rem; }

.ticks { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 2rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.75rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--olive);
  border-bottom: 3px solid var(--olive);
  transform: rotate(-45deg);
}
.section-dark .ticks li::before { border-color: var(--mustard); }

.plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding: 0.2rem 0; }

.hours { width: 100%; max-width: 26rem; border-collapse: collapse; margin-bottom: 1rem; }
.hours th, .hours td { padding: 0.55rem 0.75rem; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: var(--paper); box-shadow: inset 4px 0 0 var(--mustard); }
.hours tr.is-today th::after {
  content: "Today";
  margin-left: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive);
}

.address-block { font-size: 1.15rem; margin-bottom: 1rem; }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 0.6rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.contact-list span { font-size: 0.95rem; color: var(--muted); }
.contact-list a { font-size: 1.15rem; overflow-wrap: anywhere; }

.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
}
.map .small { margin-top: 0.5rem; }

.events {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.event {
  padding: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 4px solid var(--mustard);
}
.event h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.event p:last-child { margin: 0; }
.event-when { color: var(--olive); font-size: 1rem; margin-bottom: 0.3rem; }

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 2rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--olive);
}

.drinks { display: grid; gap: 2rem; }
@media (min-width: 750px) { .drinks { grid-template-columns: repeat(3, 1fr); } }
.drinks-note {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border-left: 4px solid var(--mustard);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout h3 { margin-bottom: 0.3rem; }
.callout p { margin: 0; }

.faq h3 { font-size: 1.2rem; margin: 1.75rem 0 0.35rem; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin: 0; }

.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

.link-list { padding-left: 1.2rem; }
.link-list a { color: var(--mustard-soft); font-size: 1.15rem; }

/* ------------------------------------------------------------ form */

.enquiry-form { margin-top: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.enquiry-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; }
.optional { font-weight: 400; opacity: 0.8; }
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid #8b948f;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.enquiry-form textarea { resize: vertical; }
.enquiry-form input:focus-visible,
.enquiry-form select:focus-visible,
.enquiry-form textarea:focus-visible { border-color: var(--mustard); }
.enquiry-form .btn { margin-top: 0.5rem; }
.form-alt { margin-top: 1rem; }

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

.site-footer {
  background: var(--forest-deep);
  color: #d9ddd9;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.98rem;
}
.site-footer a { color: var(--cream); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-heading {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 0.75rem;
}
.wordmark-footer { color: var(--cream); align-items: flex-start; }
.wordmark-footer .wordmark-the { padding-left: 0; }
.tagline {
  font-family: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0.4rem 0 1rem;
}
.hours-summary { margin: 0 0 0.75rem; padding: 0; list-style: none; }
.hours-summary li { padding: 0.15rem 0; }
.hours-summary span { display: inline-block; min-width: 4.5rem; font-weight: 600; color: var(--cream); }
.site-footer .small { color: #b9c0bb; }
.social { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--forest-line);
  font-size: 0.9rem;
}
.footer-base p { margin: 0; }

/* ------------------------------------------------------------ mobile action bar */

/* Fixed to the bottom of the window. Phone browsers slide their own toolbars in
   and out as you scroll, so the bar can shift a little during a fast scroll.
   That is browser behaviour: JavaScript repositioning was tried and was worse
   (see website-notes.md), so leave this as plain fixed positioning. */
.action-bar { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 3.5rem; }
  .action-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--forest);
    border-top: 1px solid var(--forest-line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    color: var(--cream);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .action-bar a + a { border-left: 1px solid var(--forest-line); }
  .action-bar a:last-child { background: var(--mustard); color: var(--ink); }
}
