/* The Olive Tree, York - preview site.
   One page, everything a guest needs before they call: what is cooked, what it costs,
   when service runs and where the door is. */

:root {
  --ink: #1a2420;
  --ink-soft: #4a5751;
  --olive: #23392f;
  --olive-deep: #16241d;
  --brass: #a9832b;
  /* Small text needs a darker brass: #a9832b is 3.38:1 on the cream, under AA. */
  --brass-text: #7d6019;
  --brass-bright: #c9a227;
  --sand: #f5efe2;
  --sand-deep: #eadfc9;
  --paper: #fdfaf4;
  --line: #ddd2ba;
  --tomato: #9c3b28;
  --wrap: 1140px;
  --radius: 3px;
  --shadow: 0 18px 44px -28px rgba(22, 36, 29, .55);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 "Karla", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

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

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1rem; }

a { color: var(--olive); }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--olive); color: #fff; padding: .75rem 1.25rem; z-index: 99;
}
.skip:focus { left: .5rem; top: .5rem; }

.eyebrow {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-text); margin: 0 0 .85rem;
}

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

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 250, 244, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}

.mark { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--olive); }
.mark svg { width: 34px; height: 34px; flex: none; }
.mark__word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem; font-weight: 600; line-height: 1; display: block;
}
.mark__sub {
  display: block; font-size: .62rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: .25rem;
}

.nav { margin-left: auto; display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: .82rem;
  letter-spacing: .13em; text-transform: uppercase; font-weight: 600;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--brass); }

.head-call {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--olive); color: #fff; text-decoration: none;
  padding: .7rem 1.15rem; border-radius: var(--radius);
  font-weight: 700; font-size: .9rem; letter-spacing: .02em;
  white-space: nowrap;
}
.head-call:hover { background: var(--olive-deep); }

@media (max-width: 980px) {
  .nav { display: none; }
  .head-call { margin-left: auto; }
}

/* Narrow phones: the number must stay on one line next to the wordmark. */
@media (max-width: 420px) {
  .head-call { font-size: .82rem; padding: .65rem .85rem; }
  .mark__word { font-size: 1.4rem; }
}

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

.hero { position: relative; background: var(--olive-deep); color: #fff; isolation: isolate; }

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14, 24, 19, .93) 0%, rgba(14, 24, 19, .78) 42%, rgba(14, 24, 19, .28) 100%);
}

.hero__in { padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3rem, 6vw, 5rem); max-width: 40rem; }
.hero .eyebrow { color: var(--brass-bright); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; display: block; color: var(--brass-bright); }
.hero__lede { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: #e6e9e2; max-width: 34rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brass); color: #16241d; text-decoration: none;
  padding: .95rem 1.7rem; border-radius: var(--radius);
  font-weight: 700; letter-spacing: .04em; font-size: .95rem;
  border: 2px solid var(--brass);
}
.btn:hover { background: var(--brass-bright); border-color: var(--brass-bright); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--dark { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn--dark:hover { background: var(--olive-deep); border-color: var(--olive-deep); }

.hero__service {
  margin: 2.2rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem;
}
.hero__service div { min-width: 8rem; }
.hero__service b { display: block; color: #fff; font-size: 1.05rem; }
.hero__service span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #b9c6ba; }

/* ---------- generic section ---------- */

.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec--sand { background: var(--sand); }
.sec--deep { background: var(--olive); color: #f2efe6; }
.sec--deep h2, .sec--deep h3 { color: #fff; }
.sec--deep .eyebrow { color: var(--brass-bright); }

.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head p { color: var(--ink-soft); margin-top: 1rem; }
.sec--deep .sec-head p { color: #c9d2c7; }

/* ---------- the honest hours panel ---------- */

.service {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.service__card {
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.service__rows { list-style: none; margin: 0; padding: 0; }
.service__rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px dashed var(--line);
}
.service__rows li:last-child { border-bottom: 0; }
.service__rows b { font-size: 1.05rem; }
.service__rows span { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; color: var(--olive); }
.service__note {
  margin: 1.4rem 0 0; font-size: .92rem; color: var(--ink-soft);
  background: var(--sand); padding: .9rem 1.1rem; border-left: 3px solid var(--brass);
}
.service__media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

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

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

.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.8rem, 3.5vw, 3rem);
}

.course { break-inside: avoid; }
.course h3 {
  padding-bottom: .6rem; margin-bottom: .4rem;
  border-bottom: 2px solid var(--brass);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.course h3 small {
  font-family: "Karla", sans-serif; font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 700;
}

.dish { padding: .8rem 0; border-bottom: 1px dotted var(--line); }
.dish:last-child { border-bottom: 0; }
.dish__top { display: flex; justify-content: space-between; align-items: baseline; gap: .9rem; }
.dish__name { font-weight: 700; }
.dish__price { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.28rem; color: var(--olive); white-space: nowrap; }
.dish__desc { margin: .2rem 0 0; font-size: .92rem; color: var(--ink-soft); }

.menu-note {
  margin-top: clamp(2rem, 4vw, 3rem); padding: 1.2rem 1.4rem;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .93rem; color: var(--ink-soft);
}
.menu-note b { color: var(--ink); }

/* ---------- offers ---------- */

.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.offer {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2);
  padding: 1.8rem 1.6rem;
}
.offer__price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.9rem; line-height: 1; color: var(--brass-bright); display: block;
}
.offer h3 { margin: .7rem 0 .5rem; font-size: 1.35rem; }
.offer p { font-size: .93rem; color: #c9d2c7; margin: 0; }
.offer p + p { margin-top: .6rem; }

/* ---------- story ---------- */

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.story__media { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.story__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.story__media img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.pull {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.35;
  color: var(--olive); border-left: 3px solid var(--brass);
  padding-left: 1.2rem; margin: 1.6rem 0 0;
}
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ---------- gallery strip ---------- */

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- reviews ---------- */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.review {
  background: var(--paper); border: 1px solid var(--line);
  padding: 1.7rem 1.6rem; display: flex; flex-direction: column;
}
.review__stars { color: var(--brass-text); letter-spacing: .16em; font-size: .95rem; margin-bottom: .7rem; }
.review blockquote {
  margin: 0 0 1.1rem; font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem; line-height: 1.45; color: var(--ink);
}
.review figcaption { margin-top: auto; font-size: .82rem; color: var(--ink-soft); }
.review figcaption b { color: var(--ink); display: block; font-size: .92rem; }

/* ---------- wine ---------- */

.wine-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.wine-list { list-style: none; margin: 0; padding: 0; }
.wine-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dotted var(--line); font-size: .96rem; }
.wine-list li span { white-space: nowrap; color: var(--olive); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; }
.wine-list li:last-child { border-bottom: 0; }

/* ---------- visit ---------- */

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 4rem); }
.visit__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list dt, .contact-list b {
  display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: .25rem; font-weight: 700;
}
.contact-list a { font-size: 1.12rem; font-weight: 700; color: var(--olive); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

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

.site-foot { background: var(--olive-deep); color: #b9c6ba; padding: 3.5rem 0 6.5rem; font-size: .9rem; }
.site-foot__in { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-foot a { color: #e8dfc8; }
.site-foot__mark { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; color: #fff; line-height: 1; }
.site-foot small { display: block; margin-top: 1.4rem; color: #7f8f82; font-size: .78rem; }

/* ---------- sticky call bar, phones only ---------- */

.callbar { display: none; }

@media (max-width: 700px) {
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--olive-deep); border-top: 1px solid rgba(255, 255, 255, .18);
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); gap: .6rem;
  }
  .callbar a {
    flex: 1; text-align: center; text-decoration: none; padding: .8rem .5rem;
    font-weight: 700; font-size: .93rem; border-radius: var(--radius);
  }
  .callbar .callbar__call { background: var(--brass); color: #16241d; }
  .callbar .callbar__menu { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
  .site-foot { padding-bottom: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
