/* ==========================================================================
   Stanhope Hall
   Palette from the house: oak panelling, Weardale limestone, the deep green
   of the house mark, candle gold.
   ========================================================================== */

/* The poster is lit by a fire: warm brown-black ground, gold, cream, with the
   deep green only as the house mark. The page follows it rather than sitting
   in cold green-black. */
:root {
  --night:  #171009;   /* warm near-black — firelit room, not a cold hall */
  --oak:    #221A10;   /* raised surfaces */
  --oak-up: #352817;   /* borders and rules */
  --holly:  #14301F;   /* the house green, kept for marks and panels */
  --stone:  #F0EADC;
  --ink:    #23201A;
  --ink-dim:#5E584C;
  --gilt:   #DFB96F;
  --gilt-deep: #A88043;
  --soft:   #CFC5B2;
  --faint:  #B0A693;

  --measure: 60ch;
  --gut: clamp(1.25rem, 4vw, 2.5rem);

  --fd: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --fb: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--stone);
  font-family: var(--fb);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gilt); text-underline-offset: .2em; }

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

.wrap { width: min(100% - (var(--gut) * 2), 68rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gut) * 2), 44rem); }

.skip { position: absolute; left: -9999px; background: var(--stone); color: var(--ink);
        padding: .75rem 1.25rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.centre { text-align: center; }

/* --- type ----------------------------------------------------------------- */

h1, h2, h3 { font-family: var(--fd); font-weight: 400; line-height: 1.1; margin: 0;
             letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--stone); }
h3 { font-size: 1.5rem; color: var(--gilt); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.centre p { margin-inline: auto; }

.lede { font-family: var(--fd); font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.38;
        font-weight: 300; color: #DCD6C6; max-width: 26ch; }
.centre .lede { max-width: 30ch; }

.hint { font-size: .85rem; color: var(--ink-dim); font-weight: 400; letter-spacing: 0; }
.hint--centre { display: block; margin-top: 1rem; text-align: center; }

/* --- masthead + nav -------------------------------------------------------- */

.masthead { position: sticky; top: 0; z-index: 50; background: rgba(23, 16, 9, .94);
            backdrop-filter: blur(10px); border-bottom: 1px solid var(--oak-up); }

.masthead__inner { display: flex; align-items: center; justify-content: space-between;
                   gap: 1rem; padding: .7rem 0; flex-wrap: wrap; }

.mark { font-family: var(--fd); font-size: 1.05rem; letter-spacing: .22em;
        text-transform: uppercase; color: var(--stone); text-decoration: none; white-space: nowrap; }
.mark span { color: var(--gilt-deep); }

.nav { display: flex; gap: clamp(.75rem, 2.5vw, 1.6rem); flex-wrap: wrap; align-items: center; }
.nav a { font-size: .92rem; color: var(--soft); text-decoration: none; white-space: nowrap;
         padding: .2rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--stone); border-bottom-color: var(--gilt-deep); }
.nav a[aria-current="page"] { color: var(--gilt); border-bottom-color: var(--gilt); }

@media (max-width: 46rem) {
  .masthead__inner { justify-content: center; text-align: center; }
  .nav { justify-content: center; width: 100%; }
}

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

.btn { font-family: var(--fb); font-size: .95rem; font-weight: 600; letter-spacing: .04em;
       padding: .72rem 1.5rem; border: 1px solid var(--gilt); background: transparent;
       color: var(--gilt); text-decoration: none; cursor: pointer; display: inline-block;
       white-space: nowrap; transition: background .18s ease, color .18s ease; }
.btn:hover { background: var(--gilt); color: var(--night); }
.btn--solid { background: var(--gilt); color: var(--night); }
.btn--solid:hover { background: #E3C488; border-color: #E3C488; }
.btn--block { display: block; width: 100%; text-align: center; padding: 1rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; color: var(--gilt); }
@media (max-width: 26rem) { .btn { font-size: .85rem; padding: .62rem 1rem; } }

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

.hero { position: relative; background: var(--night); }
.hero img { width: 100%; height: auto; }

/* a photo hero with words over it */
.hero--text { display: grid; }
.hero--text > * { grid-area: 1 / 1; }
.hero--text img { height: clamp(22rem, 62vh, 36rem); object-fit: cover; }
/* Only darken where the words actually sit, so the picture keeps its light. */
.hero__veil { background: linear-gradient(to bottom,
              rgba(23,16,9,.30) 0%,
              rgba(23,16,9,0)   30%,
              rgba(23,16,9,0)   48%,
              rgba(23,16,9,.62) 78%,
              rgba(23,16,9,.95) 100%); }
.hero__say { align-self: end; padding: 0 0 clamp(2rem, 6vw, 4rem); }
.hero__say h1 { color: var(--stone); text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.hero__say p { color: #D6D0C0; margin-top: .8rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); }

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

.band { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.band--tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.band--oak { background: linear-gradient(180deg, var(--oak) 0%, #1C1A12 50%, var(--oak) 100%); }

.rule { height: 1px; border: 0; margin: 0;
        background: linear-gradient(90deg, transparent, var(--gilt-deep), transparent); }

/* --- intro + facts --------------------------------------------------------- */

.intro { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 52rem) { .intro { grid-template-columns: 1.2fr .8fr; align-items: start; } }

.facts { margin: 0; font-size: 1rem; }
.facts div { padding: .9rem 0; border-top: 1px solid var(--oak-up);
             display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; }
.facts div:last-child { border-bottom: 1px solid var(--oak-up); }
.facts dt { color: var(--gilt-deep); font-weight: 600; font-size: .82rem;
            letter-spacing: .06em; padding-top: .18rem; }
.facts dd { margin: 0; color: #C8C2B2; }

/* --- the bill of fare (home page doorways) ---------------------------------
   A menu board rather than a row of cards: name, a line about it, price, and
   the gilt rule a menu would have.
   -------------------------------------------------------------------------- */

.fare { list-style: none; margin: 0; padding: 0; }

.fare > li { border-top: 1px solid var(--oak-up); }
.fare > li:last-child { border-bottom: 1px solid var(--oak-up); }

.fare a {
  display: grid; gap: .2rem 1.5rem; align-items: baseline;
  grid-template-columns: 1fr auto;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  text-decoration: none; color: inherit;
}
.fare a:hover .fare__name { color: var(--gilt); }

.fare__name { font-family: var(--fd); font-size: clamp(1.6rem, 3.6vw, 2.3rem);
              color: var(--stone); line-height: 1.15; transition: color .18s ease; }
.fare__price { font-family: var(--fd); font-size: clamp(1.1rem, 2.2vw, 1.4rem);
               color: var(--gilt); white-space: nowrap; }
.fare__say { grid-column: 1 / -1; color: var(--faint); font-size: .98rem; max-width: 46ch; margin: 0; }

/* --- the stand (afternoon tea) ---------------------------------------------- */

.stand { margin: 2.5rem 0 0; padding: 0; list-style: none; text-align: center; }
.stand li { padding: 2.6rem 0 0; }
.stand li:first-child { padding-top: 0; }
.stand h3 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: .45rem; }
.stand p { margin: 0 auto; max-width: 36ch; color: var(--soft); font-size: 1rem; }

.plate { height: 2px; margin: 2.1rem auto 0; opacity: .85;
         background: linear-gradient(90deg, transparent, var(--gilt-deep) 14%,
                     var(--gilt) 50%, var(--gilt-deep) 86%, transparent); }
.plate--1 { width: 38%; } .plate--2 { width: 62%; } .plate--3 { width: 86%; }

.stand__foot { text-align: center; margin: 3.4rem auto 0; color: var(--faint);
               max-width: 46ch; font-size: .96rem; line-height: 1.7; }

/* --- a written menu --------------------------------------------------------- */

.menu { max-width: 36rem; margin-inline: auto; }

.menu__course { margin-top: clamp(2.2rem, 5vw, 3.2rem); text-align: center; }
.menu__course:first-child { margin-top: 0; }

.menu__label { font-family: var(--fb); font-size: .74rem; letter-spacing: .18em;
               color: var(--gilt-deep); font-weight: 700; }

.menu__dishes { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.menu__dishes li { padding: .85rem 0; }
.menu__dishes li + li { border-top: 1px solid rgba(154,119,53,.22); }

.menu__dish { font-family: var(--fd); font-size: 1.45rem; color: var(--stone); line-height: 1.25; }
.menu__note { display: block; font-size: .92rem; color: var(--faint); margin-top: .2rem; }

.menu__foot { margin-top: 3rem; text-align: center; color: var(--faint);
              font-size: .95rem; line-height: 1.7; max-width: 44ch; margin-inline: auto; }

/* --- a numbered sequence (chef's table courses) ------------------------------ */

.courses { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: c;
           max-width: 34rem; margin-inline: auto; }
.courses li { counter-increment: c; position: relative; padding: 1.5rem 0 1.5rem 3.4rem;
              border-top: 1px solid var(--oak-up); }
.courses li:last-child { border-bottom: 1px solid var(--oak-up); }
.courses li::before { content: counter(c); position: absolute; left: 0; top: 1.4rem;
                      font-family: var(--fd); font-size: 1.7rem; color: var(--gilt-deep);
                      line-height: 1; }
.courses h3 { font-size: 1.35rem; color: var(--stone); margin-bottom: .25rem; }
.courses p { color: var(--faint); font-size: .96rem; margin: 0; }

/* --- picture pair ------------------------------------------------------------ */

.pair { display: grid; gap: 1px; background: var(--oak-up); grid-template-columns: 1fr; }
@media (min-width: 46rem) { .pair { grid-template-columns: 1fr 1fr; } }
.pair img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* --- rooms -------------------------------------------------------------------- */

.room { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
        padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--oak-up); }
.room:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 48rem) {
  .room { grid-template-columns: 1.1fr .9fr; }
  .room:nth-child(even) .room__pic { order: 2; }
}
.room__pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room h3 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); color: var(--stone); margin-bottom: .5rem; }
.room__meta { font-size: .8rem; letter-spacing: .08em; color: var(--gilt-deep);
              font-weight: 700; margin-bottom: .8rem; }
.room p { color: var(--soft); }

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

.card { background: var(--stone); color: var(--ink);
        padding: clamp(1.6rem, 4vw, 3rem);
        box-shadow: 0 2px 0 rgba(0,0,0,.35), 0 30px 60px -28px rgba(0,0,0,.8); }
.card h2 { color: var(--ink); }
.card p { color: var(--ink-dim); }
.card__head { text-align: center; margin-bottom: 2.2rem; }
.card__head p { margin: .7rem auto 0; max-width: 42ch; }

.field { margin-bottom: 1.6rem; }
.field > label, .field__legend {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  color: var(--ink); margin-bottom: .55rem; padding: 0;
}
.field > label input, .field > label textarea { margin-top: .55rem; font-weight: 400; letter-spacing: 0; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="number"], textarea {
  width: 100%; font-family: var(--fb); font-size: 1rem; padding: .8rem .9rem;
  border: 1px solid #BCB4A1; background: #F4F0E6; color: var(--ink); border-radius: 0;
}
input:focus, textarea:focus { border-color: var(--gilt-deep); }
textarea { resize: vertical; min-height: 5.5rem; }
fieldset { border: 0; margin: 0; padding: 0; }
fieldset[hidden] { display: none; }

.two-up { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 34rem) { .two-up { grid-template-columns: 1fr 1fr; } }

/* --- calendar ------------------------------------------------------------------ */

.cal__bar { display: flex; align-items: center; justify-content: space-between;
            gap: .5rem; margin-bottom: .7rem; }
.cal__month { font-family: var(--fd); font-size: 1.4rem; font-weight: 500; color: var(--ink); }
.cal__nav { border: 1px solid #BCB4A1; background: #F4F0E6; color: var(--ink);
            width: 2.1rem; height: 2.1rem; font-size: 1rem; line-height: 1; cursor: pointer; }
.cal__nav:hover:not([disabled]) { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.cal__nav[disabled] { opacity: .3; cursor: not-allowed; }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__dow { text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
            color: var(--ink-dim); padding-bottom: .35rem; }
.cal__day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
            font-family: var(--fb); font-size: .95rem; border: 1px solid transparent;
            background: transparent; color: #ACA595; cursor: default; padding: 0; }
.cal__day--open { background: #F4F0E6; border-color: #C8C0AD; color: var(--ink);
                  font-weight: 600; cursor: pointer; }
.cal__day--open:hover { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.cal__day--on, .cal__day--on:hover {
  background: var(--night); border-color: var(--gilt); color: var(--gilt);
  box-shadow: inset 0 0 0 2px var(--night);
}
.cal__key { margin-top: .8rem; font-size: .85rem; color: var(--ink-dim); }

/* --- stepper ---------------------------------------------------------------------- */

.step { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.step__btn { width: 2.6rem; height: 2.6rem; border: 1px solid #BCB4A1; background: #F4F0E6;
             color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.step__btn:hover:not([disabled]) { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.step__btn[disabled] { opacity: .3; cursor: not-allowed; }
.step__n { font-family: var(--fd); font-size: 1.9rem; font-weight: 500; min-width: 2.2rem;
           text-align: center; color: var(--ink); }
.step__note { font-size: .88rem; color: var(--ink-dim); }

/* --- sitting pills ------------------------------------------------------------------ */

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: .6rem 1.1rem; border: 1px solid #BCB4A1;
             background: #F4F0E6; font-size: .95rem; cursor: pointer; }
.pill span:hover { border-color: var(--ink); }
.pill input:checked + span { background: var(--night); color: var(--gilt); border-color: var(--night); }
.pill input:focus-visible + span { outline: 2px solid var(--gilt-deep); outline-offset: 2px; }
.pill--full span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pill--full span:hover { border-color: #BCB4A1; }

/* --- total ---------------------------------------------------------------------------- */

.total { border-top: 1px solid #C2BAA7; border-bottom: 1px solid #C2BAA7; padding: 1.1rem 0;
         margin: 2rem 0 1.5rem; display: flex; justify-content: space-between;
         align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.total__label { font-size: .85rem; letter-spacing: .06em; font-weight: 700; color: var(--ink); }
.total__sum { font-family: var(--fd); font-size: 2.1rem; font-weight: 500; color: var(--ink); line-height: 1; }
.total__sub { font-size: .88rem; color: var(--ink-dim); width: 100%; }

.notice { padding: .85rem 1rem; font-size: .92rem; margin-bottom: 1.2rem;
          border-left: 3px solid var(--gilt-deep); background: #E0D9C8; color: var(--ink); }
.notice[hidden] { display: none; }

/* --- thank you ---------------------------------------------------------------------------- */

.done { text-align: center; padding: clamp(3rem, 9vw, 6rem) 0; }
.done h1 { margin-bottom: 1rem; }
.done p { margin-inline: auto; }

.ref { display: inline-block; font-family: var(--fd); font-size: 1.6rem; letter-spacing: .14em;
       color: var(--gilt); border: 1px solid var(--oak-up); padding: .6rem 1.4rem; margin: .4rem 0 2rem; }

.pay { background: var(--oak); border: 1px solid var(--oak-up); padding: clamp(1.5rem, 4vw, 2.5rem);
       text-align: left; margin-top: 2.5rem; }
.pay h2 { font-size: 1.9rem; margin-bottom: .6rem; }
.pay p { color: var(--soft); font-size: .98rem; }
.pay .btn { margin-top: 1rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: .9rem 0 .9rem 2.4rem; position: relative;
            border-top: 1px solid var(--oak-up); color: var(--soft); font-size: .98rem; text-align: left; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .95rem;
                    font-family: var(--fd); font-size: 1.1rem; color: var(--gilt); }

/* --- diary ------------------------------------------------------------------------------- */

.diary__bar { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end;
              padding-bottom: 1.5rem; border-bottom: 1px solid var(--oak-up); }
.diary__bar input { max-width: 16rem; }
.diary__bar label { font-size: .8rem; letter-spacing: .08em; font-weight: 700; color: var(--gilt-deep); }

.tally { display: flex; gap: clamp(1.5rem, 5vw, 3.5rem); flex-wrap: wrap; margin: 2rem 0; }
.tally div { min-width: 7rem; }
.tally dt { font-size: .74rem; letter-spacing: .12em; color: var(--gilt-deep); font-weight: 700; }
.tally dd { margin: .2rem 0 0; font-family: var(--fd); font-size: 2.2rem; color: var(--stone); line-height: 1; }

.bk { border-top: 1px solid var(--oak-up); padding: 1.2rem 0; display: grid;
      gap: .3rem 1.5rem; grid-template-columns: 1fr auto; align-items: baseline; }
.bk:last-child { border-bottom: 1px solid var(--oak-up); }
.bk--off { opacity: .45; }
.bk__when { font-family: var(--fd); font-size: 1.3rem; color: var(--gilt); }
.bk__who { color: var(--stone); }
.bk__meta { grid-column: 1 / -1; font-size: .9rem; color: var(--faint); }
.bk__acts { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.bk__acts button { font-family: var(--fb); font-size: .78rem; letter-spacing: .04em;
                   padding: .35rem .8rem; border: 1px solid var(--oak-up); background: transparent;
                   color: var(--soft); cursor: pointer; }
.bk__acts button:hover { border-color: var(--gilt); color: var(--gilt); }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .08em; font-weight: 700;
       padding: .15rem .5rem; border: 1px solid var(--gilt-deep); color: var(--gilt); margin-left: .5rem; }

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

.foot { border-top: 1px solid var(--oak-up); padding: 3rem 0; font-size: .95rem; color: #9A9484; }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot a { color: var(--gilt); }
.foot address { font-style: normal; max-width: 28ch; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: .15rem 0; }
.foot li a { text-decoration: none; }
.foot li a:hover { text-decoration: underline; }

/* --- promo poster, shown small beside the details ------------------------- */
.side { display: grid; gap: 2rem; align-content: start; }
.poster { margin: 0; border: 1px solid var(--gilt-deep); padding: .5rem; background: var(--night); }
.poster img { width: 100%; height: auto; display: block; }
.poster--book { margin: 0 0 2.5rem; }
#book { scroll-margin-top: 5.5rem; }

/* Tablets and phones: show the whole photo, edge to edge, and put the page
   name and Book button on the oak just underneath it. Big screens unchanged. */
@media (max-width: 52rem) {
  .hero--text { display: block; }
  .hero--text img { height: auto; object-fit: initial; }
  .hero--text .hero__veil { display: none; }
  .hero--text .hero__say { padding: 1.6rem 1.25rem 2.4rem; background: var(--night); }
  .hero--text .hero__say h1 { text-shadow: none; }
}

/* A photo between sections: full width, but no taller than a screenful.
   Only affects images given this class. */
.hero--band img { height: clamp(16rem, 58vh, 34rem); object-fit: cover; }
