/* =========================================================
   Tilly's of Castleton — Mobile-First stylesheet v3
   Default: phone layout. Progressive enhancement at 720/1080px.
   Palette: ivory paper, deep forest green, brass gold
   ========================================================= */

:root {
  --ivory:      #f7f1e6;
  --paper:      #fbf7ee;
  --ink:        #1e2a24;
  --forest:     #22392c;
  --forest-2:   #2f4a3a;
  --moss:       #556b5a;
  --brass:      #9a7a3f;
  --brass-2:    #b8945a;
  --line:       #c9bfa8;
  --line-soft:  #e3d9c2;
  --shadow:     0 1px 2px rgba(30,42,36,.06), 0 12px 40px -18px rgba(30,42,36,.25);
  --serif-d:  "Playfair Display", "Times New Roman", serif;
  --serif-t:  "Cormorant Garamond", "Georgia", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-t);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--forest); color: var(--paper); }

/* ---------- typography (mobile defaults) ---------- */
h1, h2, .display {
  font-family: var(--serif-d);
  font-weight: 500;
  color: var(--forest);
  letter-spacing: .002em;
}
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .8rem; }
h1 em { font-style: italic; font-weight: 400; color: var(--brass); padding: 0 .1em; }
h2, .display { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem; }
h3 { font-family: var(--serif-d); font-size: 1.2rem; font-weight: 500; color: var(--forest); margin: .4rem 0 .5rem; }
p { margin: 0 0 1rem; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--serif-t);
  font-style: italic;
  color: var(--brass);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .72rem;
  margin: 0 0 .7rem;
}
.eyebrow.center { text-align: center; }

.ornament {
  display: flex; align-items: center; gap: .6rem;
  justify-content: center; margin: .8rem auto 1.2rem;
  max-width: 240px; color: var(--brass);
}
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.ornament i { font-style: normal; font-size: .95rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .85rem 1.3rem;
  font-family: var(--serif-t);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-dark  { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.btn-dark:hover  { background: var(--forest-2); border-color: var(--forest-2); }
.btn-line  { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-line:hover  { background: var(--forest); color: var(--paper); }
.btn.full  { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,247,238,.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: 1240px; margin: 0 auto;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.brand-monogram {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  font-family: var(--serif-d);
  font-style: italic; font-size: 1.2rem;
  background: var(--paper);
}
.brand-monogram.sm { width: 34px; height: 34px; font-size: 1.05rem; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--serif-d); font-style: italic; font-size: 1.35rem; color: var(--forest); }
.brand-sub {
  display: none;
  font-family: var(--serif-t);
  font-size: .7rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--moss); margin-top: 3px;
}
.nav { display: none; }
.header-call {
  font-family: var(--serif-d); font-style: italic;
  color: var(--forest); font-size: .95rem;
  border-bottom: 1px solid var(--brass); padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- 1 · HERO (mobile) ---------- */
.hero {
  position: relative;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
}
.hero-image {
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,42,36,.05), rgba(30,42,36,.35));
}
.hero-image img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  filter: saturate(.95) contrast(1.02);
}
.hero-panel {
  background: var(--paper);
  padding: 1.6rem 1.2rem 1.8rem;
  margin: -2.5rem 0 0;
  position: relative; z-index: 2;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-panel h1 { font-size: 1.9rem; }
.hero-lede { color: var(--moss); font-size: 1rem; font-style: italic; margin: 0 0 1.2rem; }
.hero-rule {
  display: flex; align-items: center; gap: .6rem;
  justify-content: center; margin: .3rem auto 1rem;
  max-width: 200px; color: var(--brass);
}
.hero-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); }
.hero-rule i { font-style: normal; font-size: .95rem; }
.hero-actions {
  display: flex; flex-direction: column;
  gap: .6rem;
}
.hero-actions .btn { width: 100%; }

.hero-meta {
  margin: 1.6rem 0 0;
  padding: 1rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .8rem;
  text-align: center;
}
.hero-meta div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.meta-num  { font-family: var(--serif-d); font-style: italic; font-size: 1.2rem; color: var(--forest); line-height: 1; }
.meta-label{ font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); line-height: 1.35; }

/* ---------- 2 · OPENING ---------- */
.opening {
  max-width: 720px; margin: 3rem auto; padding: 0 1rem;
  text-align: center;
}
.opening h2 { font-size: 1.5rem; font-weight: 500; line-height: 1.25; }
.opening-lede { font-size: 1.05rem; color: var(--moss); font-style: italic; }

/* ---------- section heading ---------- */
.section-heading {
  max-width: 700px; margin: 0 auto 1.6rem;
  text-align: center;
}

/* ---------- 3 · THE ROOMS (mobile: stack) ---------- */
.story {
  margin: 3rem auto; padding: 0 1rem;
  display: flex; flex-direction: column;
  gap: 1.2rem;
}
.story-copy {
  background: var(--forest);
  color: var(--ivory);
  padding: 1.8rem 1.4rem;
}
.story-copy .eyebrow { color: var(--brass-2); }
.story-copy h2 { color: var(--ivory); }
.story-copy p { color: rgba(247,241,230,.85); }
.signature { font-family: var(--serif-d); font-style: italic; color: var(--brass-2); margin-top: .8rem; }
.story-photo {
  margin: 0; overflow: hidden; position: relative;
  box-shadow: var(--shadow);
}
.story-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-photo figcaption {
  position: absolute; bottom: .8rem; left: .8rem;
  background: rgba(251,247,238,.92);
  padding: .3rem .7rem;
  font-family: var(--serif-d); font-style: italic; font-size: .85rem; color: var(--forest);
}

/* ---------- 4 · COUNTER (mobile: stack) ---------- */
.counter-wide {
  margin: 3rem auto; padding: 0 1rem;
  display: flex; flex-direction: column;
  gap: 0;
}
.counter-hero { margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.counter-hero img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.counter-hero-copy {
  background: var(--ivory);
  padding: 1.4rem 1.2rem;
  margin: -1rem 0.5rem 0;
  position: relative; z-index: 2;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  text-align: center;
}
.counter-hero-copy p { color: var(--moss); font-style: italic; font-size: 1rem; }

/* ---------- 5 · SIGNATURE PLATE (mobile: stack) ---------- */
.signature-plate,
.signature-plate.reverse {
  margin: 3rem auto; padding: 0 1rem;
  display: flex; flex-direction: column;
  gap: 1.4rem;
}
.signature-plate.reverse .plate-photo { order: 1; }
.signature-plate.reverse .plate-copy  { order: 2; }
.plate-photo { margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.plate-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.plate-copy h2 { max-width: 480px; }
.plate-meta {
  margin: 1.2rem 0 0; padding: 1rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1fr; gap: .8rem;
}
.plate-meta div { display: flex; flex-direction: column; gap: .15rem; }
.plate-meta dt { font-family: var(--serif-d); font-style: italic; color: var(--brass); font-size: .95rem; }
.plate-meta dd { margin: 0; color: var(--moss); font-size: .9rem; }

/* ---------- 6 · LUNCHEON (mobile: stack) ---------- */
.table-favourites {
  background: var(--ivory);
  padding: 3rem 1rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.favourite-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.favourite {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 0 0 1.4rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.favourite:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.favourite figure { margin: 0 0 1rem; overflow: hidden; aspect-ratio: 4/3; }
.favourite img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.favourite:hover img { transform: scale(1.04); }
.favourite .eyebrow, .favourite h3, .favourite p { padding: 0 1.2rem; }
.favourite p { color: var(--moss); font-size: .95rem; margin-bottom: 0; }

/* ---------- 8 · CAKES TRIO (mobile: stack) ---------- */
.cakes-trio {
  margin: 3rem auto; padding: 0 1rem;
}
.cakes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.cake-card {
  margin: 0; overflow: hidden; position: relative;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.cake-card:hover { transform: translateY(-4px); }
.cake-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s ease; }
.cake-card:hover img { transform: scale(1.03); }
.cake-card figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(30,42,36,.85) 60%);
  color: var(--ivory);
  display: flex; flex-direction: column; gap: .2rem;
}
.cake-label { font-family: var(--serif-d); font-style: italic; font-size: 1.2rem; color: var(--brass-2); }
.cake-note  { font-size: .88rem; font-style: italic; color: rgba(247,241,230,.85); }

/* ---------- 9 · DRINK SINGLE (mobile: stack + centered) ---------- */
.drink-single {
  background: var(--forest); color: var(--ivory);
  padding: 2.6rem 1rem;
  display: flex; flex-direction: column;
  gap: 1.4rem;
  align-items: center;
  text-align: center;
}
.drink-single-photo { margin: 0; width: 100%; max-width: 480px; box-shadow: var(--shadow); }
.drink-single-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.drink-single-copy { max-width: 560px; }
.drink-single-copy .eyebrow { color: var(--brass-2); }
.drink-single-copy h2 { color: var(--ivory); }
.drink-single-copy p { color: rgba(247,241,230,.85); font-style: italic; font-size: 1rem; }

/* ---------- 10 · REVIEWS ---------- */
.reviews {
  max-width: 900px; margin: 3rem auto; padding: 0 1rem;
  text-align: center;
}
.pull-quote {
  font-family: var(--serif-d); font-style: italic;
  font-size: 1.2rem; color: var(--forest); line-height: 1.4;
  margin: 1rem 0 1.4rem; padding: 0;
}
.quote-mark { font-family: var(--serif-d); font-size: 2.2rem; color: var(--brass); line-height: 0; vertical-align: -.35em; margin-right: .1em; }
.quote-mark.closing { margin-left: .1em; margin-right: 0; }
.review-tags {
  display: flex; gap: .5rem;
  justify-content: center; flex-wrap: wrap;
  margin-top: 1rem;
}
.review-tags span {
  border: 1px solid var(--line);
  padding: .4rem .9rem; font-size: .82rem;
  color: var(--moss); letter-spacing: .05em;
  border-radius: 999px; background: var(--paper);
}

/* ---------- 11 · VISIT (mobile: stack) ---------- */
.visit {
  margin: 3rem auto; padding: 0 1rem;
  display: flex; flex-direction: column;
  gap: 1.2rem;
}
.visit-image { margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.visit-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.visit-card {
  background: var(--ivory);
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--line-soft);
}
.visit-card p { color: var(--moss); font-style: italic; font-size: 1rem; }
.visit-card dl { margin: 1rem 0 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
.visit-card dt { font-family: var(--serif-t); font-style: italic; color: var(--brass); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; margin-bottom: .2rem; }
.visit-card dd { margin: 0; color: var(--forest); font-family: var(--serif-d); font-size: 1rem; font-style: italic; }
.visit-card dd em { display: block; color: var(--moss); font-family: var(--serif-t); font-size: .82rem; margin-top: .2rem; }
.visit-card a { color: var(--forest); border-bottom: 1px solid var(--brass); }
.visit-card .btn { border-bottom: none; }
.visit-card .btn-dark {
  color: var(--paper);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .15em;
  padding: .95rem 1.2rem;
  margin-top: .6rem;
}
.visit-card .btn-dark:hover { color: var(--paper); }

/* ---------- footer ---------- */
.footer {
  background: var(--forest); color: var(--ivory);
  padding: 2.2rem 1rem;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand .brand-monogram { border-color: var(--brass-2); color: var(--brass-2); background: transparent; }
.footer-brand .brand-name { color: var(--ivory); font-size: 1.2rem; }
.footer-brand .brand-sub { display: block; color: rgba(247,241,230,.6); }
.footer-meta {
  display: flex; flex-direction: column;
  gap: .3rem; text-align: center; align-items: center;
  color: rgba(247,241,230,.7);
  font-style: italic; font-size: .85rem;
}

/* =========================================================
   TABLET (≥ 720px) — start bringing back multi-column
   ========================================================= */
@media (min-width: 720px) {
  body { font-size: 18px; }

  .header-inner { padding: .9rem 1.6rem; gap: 1.4rem; }
  .brand-monogram { width: 42px; height: 42px; font-size: 1.35rem; }
  .brand-name { font-size: 1.5rem; }
  .brand-sub { display: block; }
  .header-call { font-size: 1.05rem; }

  h1 { font-size: 3rem; line-height: 1.1; }
  h2, .display { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
  .opening h2 { font-size: 2.2rem; }
  .hero-panel h1 { font-size: 3rem; }

  .hero { max-width: 900px; margin: 2rem auto 3rem; padding: 0 1.5rem; }
  .hero-image img { aspect-ratio: 16/10; }
  .hero-panel {
    margin: -4rem auto 0;
    padding: 2.4rem 2rem;
    max-width: 640px;
  }
  .hero-panel h1 { font-size: 2.6rem; }
  .hero-lede { font-size: 1.1rem; }
  .hero-actions { flex-direction: row; justify-content: center; gap: 1rem; }
  .hero-actions .btn { width: auto; }

  .hero-meta { grid-template-columns: repeat(3, 1fr); padding: 1.4rem 1.5rem; }
  .meta-num { font-size: 1.6rem; }
  .meta-label { font-size: .78rem; letter-spacing: .16em; }

  .opening { margin: 4rem auto; }
  .story { margin: 4rem auto; padding: 0 1.5rem; }
  .story-copy { padding: 2rem 1.8rem; }

  .counter-wide { margin: 4rem auto; padding: 0 1.5rem; }
  .counter-hero img { aspect-ratio: 16/9; }
  .counter-hero-copy { padding: 1.8rem 1.6rem; margin-top: -1.5rem; }

  .signature-plate,
  .signature-plate.reverse {
    margin: 4rem auto; padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  .signature-plate.reverse .plate-photo { order: 2; }
  .signature-plate.reverse .plate-copy  { order: 1; }
  .plate-photo img { aspect-ratio: 4/5; }
  .plate-meta { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .table-favourites { padding: 4rem 1.5rem; }
  .favourite-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }

  .cakes-trio { margin: 4rem auto; padding: 0 1.5rem; }
  .cakes-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.4rem; }
  .cake-card img { aspect-ratio: 3/4; }

  .drink-single {
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
    text-align: left;
    align-items: center;
    justify-items: start;
  }
  .drink-single-photo { justify-self: end; max-width: 420px; }
  .drink-single-photo img { aspect-ratio: 1/1; }
  .drink-single-copy { max-width: 460px; text-align: left; }

  .reviews { margin: 4rem auto; padding: 0 1.5rem; }
  .pull-quote { font-size: 1.5rem; line-height: 1.4; padding: 0 1rem; }
  .quote-mark { font-size: 2.8rem; }

  .visit {
    margin: 4rem auto; padding: 0 1.5rem;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; align-items: stretch;
  }
  .visit-card { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
  .visit-image img { aspect-ratio: 4/3; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-meta { text-align: right; align-items: flex-end; }
}

/* =========================================================
   DESKTOP (≥ 1080px) — full multi-column layouts
   ========================================================= */
@media (min-width: 1080px) {
  body { font-size: 19px; line-height: 1.65; }

  .nav {
    display: flex; gap: 1.8rem;
  }
  .nav a {
    font-family: var(--serif-t);
    font-size: .92rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--forest);
    position: relative; padding: .4rem 0;
  }
  .nav a::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    width: 0; height: 1px; background: var(--brass);
    transition: all .25s ease; transform: translateX(-50%);
  }
  .nav a:hover::after { width: 100%; }

  h1 { font-size: 3.8rem; }
  h2, .display { font-size: 2.3rem; }
  .opening h2 { font-size: 2.6rem; }
  .hero-panel h1 { font-size: 3.4rem; }

  .hero { max-width: 1240px; padding: 0 2rem; }
  .hero-image img { aspect-ratio: 16/9; }
  .hero-panel { max-width: 720px; padding: 3rem 2.4rem; margin-top: -6rem; }
  .hero-meta { max-width: 1000px; padding: 1.5rem 2rem; }
  .meta-num { font-size: 2rem; }

  .story {
    max-width: 1240px; padding: 0 2rem;
    display: grid; grid-template-columns: 1fr 1.3fr;
    gap: 3rem; align-items: stretch;
  }
  .story-copy { padding: 3rem 2.4rem; }
  .story-photo img { aspect-ratio: 3/4; height: 100%; }

  .counter-wide { max-width: 1360px; padding: 0 2rem; }
  .counter-hero { margin-bottom: -3rem; }
  .counter-hero img { aspect-ratio: 21/9; }
  .counter-hero-copy { max-width: 800px; padding: 2.2rem 2rem; margin-top: 0; }

  .signature-plate,
  .signature-plate.reverse {
    max-width: 1240px; padding: 0 2rem;
    grid-template-columns: 1.1fr 1fr; gap: 3rem;
  }
  .signature-plate.reverse { grid-template-columns: 1fr 1.1fr; }

  .table-favourites { padding: 5rem 2rem; }
  .favourite-grid {
    max-width: 1240px; margin: 0 auto;
    grid-template-columns: repeat(3, 1fr); gap: 2rem;
  }

  .cakes-trio { max-width: 1240px; padding: 0 2rem; }
  .cakes-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

  .drink-single { padding: 5rem 2rem; gap: 4rem; }
  .drink-single-photo { max-width: 480px; }
  .drink-single-copy { max-width: 480px; }
  .drink-single-copy p { font-size: 1.1rem; }

  .reviews { max-width: 900px; }
  .pull-quote { font-size: 1.7rem; }

  .visit {
    max-width: 1240px; padding: 0 2rem;
    grid-template-columns: 1.3fr 1fr; gap: 3rem;
  }
  .visit-card { padding: 2.4rem; }
  .visit-card p { font-size: 1.05rem; }
  .visit-card dt { font-size: .75rem; }
  .visit-card dd { font-size: 1.05rem; }

  .footer { padding: 3rem 2rem; }
}
