/* ==========================================================================
   THE FARM MARBELLA — core
   Plaza Altamirano, 3 · Marbella old town · courtyard standing since 1502

   This file holds ONLY the things that genuinely repeat: type, colour,
   navigation, footer, the booking drawer. Every major visual moment on the
   site is composed individually in its own page stylesheet.

   Art direction
   -------------
   The Farm is a limewashed wall with things put on it — green lettering
   painted straight onto plaster, chalkboards, a stamp burned into wood,
   bougainvillea growing over the top. Accumulated, not designed.

   So: no cards, no border-radius, no drop shadows, no caption-under-image.
   Photographs are FEATHERED into the wall with gradient masks and allowed
   to bleed off the edges of the screen. Everything the venue does is
   vertical — every photograph and all three films are portrait — so the
   site is built on tall formats and never crops them into wide banners.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------- */

:root{
  /* daylight — limewash, plaster, sun on a wall */
  --lime:      #F7F2E7;   /* whitewashed wall           */
  --plaster:   #EDE4D3;   /* aged plaster               */
  --sand:      #E1D4BC;
  --shadow-w:  #CDBDA1;   /* shadow on plaster          */

  /* ink */
  --ink:       #241F19;
  --ink-2:     #5C5449;
  --ink-3:     #8C8373;

  /* the mark: green painted on whitewash, warm tan lettering */
  --paint:     #6E9450;   /* the logo green, as paint   */
  --paint-dk:  #466034;
  --tan:       #A8794C;
  --tan-dk:    #7E5730;

  /* the building */
  --terra:     #AE563A;   /* terracotta floor           */
  --clay:      #833D28;
  --ember:     #E0A04A;   /* string lights              */
  --grana:     #982B2B;   /* flamenco                   */

  /* after dark */
  --dusk:      #1B2419;
  --dark:      #101609;
  --black:     #0A0D07;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1.15rem, 4vw, 4rem);
  --ease: cubic-bezier(.22,.61,.36,1);
  --out:  cubic-bezier(.16,1,.3,1);
  --nav-h: 72px;
  --util-h: 34px;
}

/* ---------- Reset -------------------------------------------------------- */

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0; background:var(--lime); color:var(--ink);
  font-family:var(--sans);
  font-size:clamp(.98rem,.95rem + .16vw,1.05rem); line-height:1.65;
  -webkit-font-smoothing:antialiased; font-synthesis-weight:none;
  overflow-x:hidden;
}
body.is-locked{ overflow:hidden; }
img,video,svg{ display:block; max-width:100%; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
a{ color:inherit; }
h1,h2,h3,h4,p,figure,blockquote,ul,ol,dl,dd{ margin:0; }
ul,ol{ padding:0; list-style:none; }
:focus-visible{ outline:2px solid var(--tan); outline-offset:3px; }

.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
     white-space:nowrap; }
.skip{ position:absolute; left:-999px; top:0; z-index:300; background:var(--ink);
       color:var(--lime); padding:.8rem 1.2rem; }
.skip:focus{ left:.5rem; top:.5rem; }

/* ---------- The wall: plaster grain on light ground ---------------------- */
/* Flat digital cream reads as a template. Real limewash has tooth. */

.wall{ position:relative; background:var(--lime); }
.wall::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  opacity:.5; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.22'/%3E%3C/svg%3E");
}
.wall > *{ position:relative; z-index:1; }
.wall--plaster{ background:var(--plaster); }
.wall--sand{ background:var(--sand); }
.wall--dusk{ background:var(--dusk); color:#E9E0CE; }
.wall--dark{ background:var(--dark); color:#E9E0CE; }
.wall--dusk::before,.wall--dark::before{ opacity:.38; mix-blend-mode:screen; }

/* ---------- Type --------------------------------------------------------- */

.t-xl,.t-lg,.t-md,.t-sm{
  font-family:var(--display); font-weight:400;
  font-variation-settings:"SOFT" 26,"WONK" 1,"opsz" 110;
  line-height:1.06; letter-spacing:-.016em; text-wrap:balance;
}
.t-xl{ font-size:clamp(2.6rem,1.6rem + 3.9vw,4.9rem); }
.t-lg{ font-size:clamp(2rem,1.4rem + 2.5vw,3.5rem); line-height:1.08; }
.t-md{ font-size:clamp(1.55rem,1.2rem + 1.5vw,2.4rem); line-height:1.14; }
.t-sm{ font-size:clamp(1.18rem,1.05rem + .6vw,1.55rem); line-height:1.22;
       font-variation-settings:"SOFT" 30,"WONK" 0,"opsz" 36; }
.t-xl em,.t-lg em,.t-md em,.t-sm em{
  font-style:italic; font-variation-settings:"SOFT" 44,"WONK" 1,"opsz" 96;
}

/* Lettering painted onto the wall — this is how The Farm actually labels
   things: green, by hand, straight onto the plaster. */
.painted{
  font-family:var(--display); font-weight:500;
  font-variation-settings:"SOFT" 20,"WONK" 0,"opsz" 20;
  font-size:.72rem; letter-spacing:.34em; text-transform:uppercase;
  color:var(--paint-dk);
}
.painted--tan{ color:var(--tan-dk); }
.painted--ember{ color:var(--ember); }
.painted--lime{ color:#BFD3A9; }

/* a vertical painted label, like the sign down the side of the doorway */
.painted-edge{
  writing-mode:vertical-rl; text-orientation:mixed;
  font-family:var(--display); font-size:.68rem; letter-spacing:.42em;
  text-transform:uppercase; color:var(--paint); opacity:.8;
}

p.lede{ font-size:clamp(1.05rem,1rem + .4vw,1.28rem); line-height:1.58;
        color:var(--ink-2); max-width:44ch; text-wrap:pretty; }
p.prose{ color:var(--ink-2); max-width:58ch; text-wrap:pretty; }
p.prose + p.prose{ margin-top:1.05em; }
p.prose strong,p.lede strong{ color:var(--ink); font-weight:600; }
.small{ font-size:.82rem; line-height:1.6; color:var(--ink-3); }

.wall--dusk p.prose,.wall--dark p.prose,
.wall--dusk p.lede,.wall--dark p.lede{ color:#B6AD9B; }
.wall--dusk p.prose strong,.wall--dark p.prose strong,
.wall--dusk p.lede strong,.wall--dark p.lede strong{ color:#F1E9D9; }
.wall--dusk .small,.wall--dark .small{ color:#8A8272; }
.wall--dusk .painted,.wall--dark .painted{ color:#A8C089; }

/* ---------- Links & actions --------------------------------------------- */
/* Text links, not a row of pills. Buttons are reserved for booking. */

.act{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:var(--sans); font-size:.72rem; font-weight:600;
  letter-spacing:.18em; text-transform:uppercase; text-decoration:none;
  color:var(--ink); padding-bottom:.35rem; position:relative;
}
.act::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background:currentColor; opacity:.35;
  transform:scaleX(1); transform-origin:left;
  transition:opacity .4s var(--ease);
}
.act:hover::after{ opacity:1; }
.act .arw{ transition:transform .45s var(--out); }
.act:hover .arw{ transform:translateX(5px); }
.act--paint{ color:var(--paint-dk); }
.act--light{ color:#EBE2D0; }
.act--ember{ color:var(--ember); }

.btn{
  --bg:var(--terra); --fg:#FFF5EA; --bd:var(--terra);
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.85rem 1.5rem; background:var(--bg); color:var(--fg);
  border:1px solid var(--bd); border-radius:0;
  font-size:.71rem; font-weight:600; letter-spacing:.19em; text-transform:uppercase;
  text-decoration:none;
  transition:background .35s var(--ease), color .35s var(--ease),
             border-color .35s var(--ease);
}
.btn:hover{ --bg:var(--clay); --bd:var(--clay); }
.btn--ember{ --bg:var(--ember); --fg:#20180A; --bd:var(--ember); }
.btn--ember:hover{ --bg:#EFB466; --bd:#EFB466; }
.btn--line{ --bg:transparent; --fg:var(--ink); --bd:rgba(36,31,25,.28); }
.btn--line:hover{ --bg:var(--ink); --fg:var(--lime); --bd:var(--ink); }
.btn--lineLight{ --bg:transparent; --fg:#EBE2D0; --bd:rgba(235,226,208,.3); }
.btn--lineLight:hover{ --bg:#EBE2D0; --fg:var(--dark); --bd:#EBE2D0; }

/* ---------- Measure ------------------------------------------------------ */

.hold{ width:min(1400px,100% - var(--pad)*2); margin-inline:auto; }
.hold--mid{ width:min(1080px,100% - var(--pad)*2); margin-inline:auto; }
.hold--nar{ width:min(720px,100% - var(--pad)*2); margin-inline:auto; }

/* ---------- Feathering --------------------------------------------------- */
/* The one shared photographic treatment: images dissolve into the wall
   instead of stopping at a hard edge or a rounded corner. Direction is
   chosen per composition. */

.feather-l  { -webkit-mask-image:linear-gradient(90deg,transparent,#000 22%);
                      mask-image:linear-gradient(90deg,transparent,#000 22%); }
.feather-r  { -webkit-mask-image:linear-gradient(270deg,transparent,#000 22%);
                      mask-image:linear-gradient(270deg,transparent,#000 22%); }
.feather-b  { -webkit-mask-image:linear-gradient(0deg,transparent,#000 26%);
                      mask-image:linear-gradient(0deg,transparent,#000 26%); }
.feather-t  { -webkit-mask-image:linear-gradient(180deg,transparent,#000 26%);
                      mask-image:linear-gradient(180deg,transparent,#000 26%); }
.feather-tb { -webkit-mask-image:linear-gradient(180deg,transparent,#000 14%,#000 86%,transparent);
                      mask-image:linear-gradient(180deg,transparent,#000 14%,#000 86%,transparent); }
.feather-lr { -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
                      mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }

/* ---------- Header ------------------------------------------------------- */

.util{ background:var(--dusk); color:#A69D8C; font-size:.68rem; letter-spacing:.09em; }
.util .hold{ display:flex; justify-content:space-between; align-items:center;
             min-height:var(--util-h); gap:1rem; }
.util a{ text-decoration:none; }
.util a:hover{ color:var(--ember); }
@media (max-width:900px){ .util{ display:none; } :root{ --util-h:0px; } }

.head{
  position:sticky; top:0; z-index:90;
  background:color-mix(in srgb,var(--lime) 90%,transparent);
  backdrop-filter:saturate(1.25) blur(12px);
  border-bottom:1px solid rgba(36,31,25,.09);
  transition:background .4s var(--ease), border-color .4s var(--ease),
             color .4s var(--ease);
}
.head .hold{ display:flex; align-items:center; gap:clamp(.9rem,2.2vw,2.2rem);
             min-height:var(--nav-h); }
.head.is-stuck{ background:color-mix(in srgb,var(--lime) 97%,transparent);
                border-bottom-color:rgba(36,31,25,.14); }

/* Over a dark full-bleed opening the header floats, unlit — and the
   utility strip steps aside entirely so nothing sits on the film. */
.util:has(+ .head--over){ display:none; }
.head--over{ top:0;
  position:fixed; left:0; right:0; background:transparent; border-bottom-color:transparent;
  backdrop-filter:none; color:#F2EADA;
}
.head--over .mark-w .n{ color:#F5EEE0; }
.head--over .nav a{ color:#E6DCC8; }
.head--over .burger{ border-color:rgba(242,234,218,.32); }
.head--over .burger span,.head--over .burger span::before,.head--over .burger span::after{
  background:#F2EADA; }
.head--over.is-stuck{
  position:fixed; background:color-mix(in srgb,var(--lime) 97%,transparent);
  backdrop-filter:saturate(1.25) blur(12px);
  border-bottom-color:rgba(36,31,25,.14); color:var(--ink);
}
.head--over.is-stuck .mark-w .n{ color:var(--ink); }
.head--over.is-stuck .nav a{ color:var(--ink); }
.head--over.is-stuck .burger{ border-color:rgba(36,31,25,.22); }
.head--over.is-stuck .burger span,
.head--over.is-stuck .burger span::before,
.head--over.is-stuck .burger span::after{ background:var(--ink); }

.mark-w{ display:flex; align-items:center; gap:.65rem; text-decoration:none;
         margin-right:auto; flex:none; }
.mark-w img{ width:40px; height:40px; }
.mark-w .n{ font-family:var(--display); font-size:1.08rem; line-height:1;
            font-variation-settings:"SOFT" 28,"WONK" 1,"opsz" 36; display:block; }
.mark-w .s{ font-family:var(--sans); font-size:.53rem; letter-spacing:.32em;
            text-transform:uppercase; color:var(--tan); display:block; margin-top:.3rem; }
.head--over .mark-w .s{ color:var(--ember); }

.nav{ display:flex; align-items:center; gap:clamp(.85rem,1.6vw,1.75rem); }
.nav a{ text-decoration:none; font-size:.7rem; font-weight:500; letter-spacing:.16em;
        text-transform:uppercase; white-space:nowrap; padding:.4rem 0; position:relative; }
.nav a::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
               background:currentColor; transform:scaleX(0); transform-origin:left;
               transition:transform .4s var(--out); }
.nav a:hover::after,.nav a[aria-current="page"]::after{ transform:scaleX(1); }
@media (max-width:1179px){ .nav{ display:none; } }

.head-act{ display:flex; align-items:center; gap:.6rem; flex:none; }
.head-act .btn{ padding:.68rem 1.15rem; font-size:.67rem; }
.burger{ width:42px; height:42px; display:none; place-items:center; flex:none;
         border:1px solid rgba(36,31,25,.22); }
.burger span{ display:block; width:16px; height:1.4px; background:var(--ink); position:relative; }
.burger span::before,.burger span::after{ content:""; position:absolute; left:0; width:16px;
         height:1.4px; background:var(--ink); }
.burger span::before{ top:-5px; } .burger span::after{ top:5px; }
@media (max-width:1179px){ .burger{ display:grid; } }

/* ---------- Navigation overlay ------------------------------------------ */

.ov{ position:fixed; inset:0; z-index:120; background:var(--dark); color:#E9E0CE;
     display:grid; grid-template-rows:auto 1fr auto; overflow-y:auto;
     opacity:0; visibility:hidden; transition:opacity .45s var(--ease), visibility .45s; }
.ov.is-open{ opacity:1; visibility:visible; }
.ov-top{ display:flex; align-items:center; justify-content:space-between; min-height:var(--nav-h); }
.ov-x{ width:42px; height:42px; display:grid; place-items:center;
       border:1px solid rgba(233,224,206,.28); font-size:1.05rem; }
.ov-nav{ display:flex; flex-direction:column; justify-content:center; gap:.05rem;
         padding-block:clamp(1.4rem,5vw,3rem); }
.ov-nav a{ font-family:var(--display); font-size:clamp(1.75rem,1.1rem + 3.4vw,3rem);
           font-variation-settings:"SOFT" 28,"WONK" 1,"opsz" 80;
           text-decoration:none; line-height:1.28; color:#E9E0CE;
           display:flex; align-items:baseline; gap:1rem;
           opacity:0; transform:translateY(12px);
           transition:color .3s var(--ease), opacity .5s var(--out), transform .5s var(--out); }
.ov.is-open .ov-nav a{ opacity:1; transform:none; }
.ov-nav a:hover{ color:var(--ember); }
.ov-nav a i{ font-style:normal; font-family:var(--sans); font-size:.6rem;
             letter-spacing:.2em; color:var(--paint); }
.ov-foot{ padding-block:1.8rem; border-top:1px solid rgba(233,224,206,.16);
          display:flex; flex-wrap:wrap; gap:.5rem 2rem; font-size:.8rem; color:#A69D8C; }
.ov-foot a{ text-decoration:none; }
.ov-foot a:hover{ color:var(--ember); }

/* ---------- Booking drawer (real CoverManager engine) -------------------- */

.veil{ position:fixed; inset:0; z-index:130; background:rgba(10,13,7,.66);
       backdrop-filter:blur(3px); opacity:0; visibility:hidden;
       transition:opacity .4s var(--ease), visibility .4s; }
.veil.is-open{ opacity:1; visibility:visible; }
.drawer{ position:fixed; top:0; right:0; bottom:0; z-index:140; width:min(520px,100%);
         background:var(--lime); display:flex; flex-direction:column;
         transform:translateX(102%); transition:transform .5s var(--out); }
.drawer.is-open{ transform:none; }
.drawer-h{ display:flex; align-items:flex-start; justify-content:space-between; gap:1rem;
           padding:1.25rem var(--pad) 1rem; border-bottom:1px solid rgba(36,31,25,.14); }
.drawer-h h2{ font-family:var(--display); font-size:1.4rem; line-height:1.1;
              font-variation-settings:"SOFT" 28,"WONK" 1,"opsz" 36; }
.drawer-x{ width:38px; height:38px; display:grid; place-items:center; flex:none;
           border:1px solid rgba(36,31,25,.2); }
.drawer-x:hover{ background:var(--ink); color:var(--lime); border-color:var(--ink); }
.drawer iframe{ flex:1; width:100%; border:0; min-height:500px; background:var(--lime); }
.drawer-n{ padding:.95rem var(--pad) 1.3rem; border-top:1px solid rgba(36,31,25,.14); }

.bar{ position:fixed; left:0; right:0; bottom:0; z-index:80; display:none;
      gap:1px; background:rgba(36,31,25,.16); border-top:1px solid rgba(36,31,25,.16);
      padding-bottom:env(safe-area-inset-bottom); }
.bar > *{ flex:1; display:flex; align-items:center; justify-content:center;
          background:var(--lime); color:var(--ink); text-decoration:none;
          padding:.9rem .4rem; font-size:.68rem; font-weight:600; letter-spacing:.14em;
          text-transform:uppercase; }
.bar .bar-1{ background:var(--terra); color:#FFF5EA; flex:1.6; }
@media (max-width:760px){ .bar{ display:flex; } body{ padding-bottom:54px; } }

/* ---------- Films -------------------------------------------------------- */
/* Vertical, always. Never cropped into a landscape banner. */

.film{ position:relative; background:var(--black); overflow:hidden;
       aspect-ratio:9/16; }
.film video{ width:100%; height:100%; object-fit:cover; display:block; }
.film-go{ position:absolute; inset:0; z-index:3; display:grid; place-items:center;
          transition:opacity .5s var(--ease); }
.film.is-playing .film-go{ opacity:0; pointer-events:none; }
.film-go .ring{ width:72px; height:72px; border-radius:50%; display:grid; place-items:center;
                border:1px solid rgba(247,242,231,.55); color:#F7F2E7;
                background:rgba(10,13,7,.25); backdrop-filter:blur(2px);
                transition:transform .5s var(--out), background .35s var(--ease); }
.film-go:hover .ring{ transform:scale(1.08); background:rgba(10,13,7,.5); }
.film-go .lab{ position:absolute; bottom:1.3rem; left:0; right:0; text-align:center;
               font-family:var(--display); font-size:.64rem; letter-spacing:.3em;
               text-transform:uppercase; color:#DDD2BC; }
.film-snd{ position:absolute; right:.8rem; top:.8rem; z-index:4; width:36px; height:36px;
           border-radius:50%; display:grid; place-items:center; font-size:.8rem;
           background:rgba(10,13,7,.5); color:#EFE6D4;
           border:1px solid rgba(247,242,231,.28); opacity:0;
           transition:opacity .4s var(--ease); }
.film.is-playing .film-snd{ opacity:1; }

/* ---------- Footer ------------------------------------------------------- */

.foot{ background:var(--black); color:#B8AF9D; }
.foot-top{ text-align:center; padding-block:clamp(3.4rem,7vw,6rem);
           border-bottom:1px solid rgba(233,224,206,.13); }
.foot-top h2{ color:#F7F1E4; max-width:15ch; margin-inline:auto; }
.foot-top p{ margin:1.1rem auto 0; max-width:42ch; color:#9C9382; }
.foot-top .acts{ margin-top:2.1rem; display:flex; flex-wrap:wrap; gap:.7rem;
                 justify-content:center; }
.foot-grid{ display:grid; gap:clamp(1.8rem,4vw,3rem); padding-block:clamp(2.6rem,5vw,4rem); }
@media (min-width:820px){ .foot-grid{ grid-template-columns:1.4fr 1fr 1fr 1.05fr; } }
.foot-grid h4{ font-family:var(--display); font-size:.64rem; letter-spacing:.3em;
               text-transform:uppercase; color:var(--paint); margin-bottom:1rem; }
.foot-grid a{ text-decoration:none; }
.foot-grid a:hover{ color:var(--ember); }
.foot-grid li + li{ margin-top:.55rem; }
.foot-grid .fl{ font-size:.89rem; }
.foot-b img{ width:52px; height:52px; margin-bottom:1rem; }
.foot-b p{ font-size:.88rem; max-width:30ch; color:#8F8776; }
.foot-addr{ font-style:normal; font-size:.89rem; line-height:1.85; }
.soc{ display:flex; gap:.55rem; margin-top:1.1rem; }
.soc a{ width:36px; height:36px; display:grid; place-items:center;
        border:1px solid rgba(233,224,206,.16);
        transition:background .3s var(--ease), color .3s var(--ease),
                   border-color .3s var(--ease); }
.soc a:hover{ background:var(--ember); border-color:var(--ember); color:var(--black); }
.soc svg{ width:15px; height:15px; fill:currentColor; }
.foot-end{ border-top:1px solid rgba(233,224,206,.13); padding-block:1.4rem;
           display:flex; flex-wrap:wrap; gap:.5rem 1.8rem; justify-content:space-between;
           font-size:.74rem; color:#7E7666; }
.foot-end a{ text-decoration:none; }
.foot-end a:hover{ color:var(--ember); }

/* ---------- Reveal ------------------------------------------------------- */

[data-in]{ opacity:0; transform:translateY(18px); }
[data-in].on{ opacity:1; transform:none;
  transition:opacity .9s var(--out), transform .9s var(--out); }
[data-in][data-t="1"].on{ transition-delay:.1s; }
[data-in][data-t="2"].on{ transition-delay:.2s; }
[data-in][data-t="3"].on{ transition-delay:.3s; }
[data-in][data-t="4"].on{ transition-delay:.4s; }

/* photographs settle rather than fade */
[data-ph]{ opacity:0; transform:scale(1.035); }
[data-ph].on{ opacity:1; transform:none;
  transition:opacity 1.1s var(--out), transform 1.5s var(--out); }
[data-ph][data-t="1"].on{ transition-delay:.12s; }
[data-ph][data-t="2"].on{ transition-delay:.24s; }
[data-ph][data-t="3"].on{ transition-delay:.36s; }

@media (prefers-reduced-motion:reduce){
  [data-in],[data-ph]{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ---------- Small shared bits ------------------------------------------- */

.rule{ height:1px; background:rgba(36,31,25,.16); border:0; }
.wall--dusk .rule,.wall--dark .rule{ background:rgba(233,224,206,.16); }
.mt1{ margin-top:.8rem; } .mt2{ margin-top:1.6rem; } .mt3{ margin-top:2.6rem; }
.mt4{ margin-top:clamp(3rem,6vw,5rem); }
.row{ display:flex; flex-wrap:wrap; gap:1.5rem; align-items:center; }
.nowrap{ white-space:nowrap; }
@media (max-width:700px){ .only-lg{ display:none !important; } }

/* ==========================================================================
   LAYOUT
   A small, disciplined set of section layouts. The site should feel
   confident and easy to read, not deliberately unconventional — the place
   itself supplies the personality. Variety comes from what a section IS
   (a dark film moment, a programme, a set of figures, a gallery row), not
   from breaking the grid.
   ========================================================================== */

.sec{ padding-block:clamp(3.5rem,7vw,7rem); }
.sec--tight{ padding-block:clamp(2.5rem,5vw,4.5rem); }
.sec--flush-b{ padding-bottom:0; }

/* Section opener: painted label, heading, optional standfirst. */
.sec-head{ max-width:56ch; margin-bottom:clamp(2rem,4vw,3.25rem); }
.sec-head h2{ margin-top:1.1rem; }
.sec-head p{ margin-top:1.1rem; }
.sec-head--split{ max-width:none; display:grid; gap:1.2rem clamp(2rem,5vw,4rem);
                  align-items:end; }
@media (min-width:920px){
  .sec-head--split{ grid-template-columns:1.1fr .9fr; }
  .sec-head--split h2{ max-width:20ch; }
  .sec-head--split p{ margin-top:0; }
}
.sec-head--centre{ margin-inline:auto; text-align:center; }
.sec-head--centre .painted{ justify-content:center; }

/* Two columns: media and words. The workhorse, used with intent and
   alternated so it never reads as a stack of identical rows. */
.two{ display:grid; gap:clamp(2rem,4.5vw,4rem); align-items:center; }
@media (min-width:900px){
  .two{ grid-template-columns:1fr 1fr; }
  .two--media-wide{ grid-template-columns:1.15fr .85fr; }
  .two--words-wide{ grid-template-columns:.85fr 1.15fr; }
  .two--flip > *:first-child{ order:2; }
}
.two-words > * + *{ margin-top:1.1rem; }
.two-words .painted + h2,.two-words .painted + h3{ margin-top:1.2rem; }

/* A row of photographs at one consistent rhythm. */
.row-ph{ display:grid; gap:clamp(.8rem,1.6vw,1.4rem); grid-template-columns:repeat(2,1fr); }
@media (min-width:820px){ .row-ph--3{ grid-template-columns:repeat(3,1fr); }
                          .row-ph--4{ grid-template-columns:repeat(4,1fr); } }

/* Photographs: square corners, no frame, no shadow, no caption beneath. */
.ph{ position:relative; overflow:hidden; background:var(--sand); margin:0; }
.ph img{ width:100%; height:100%; object-fit:cover; display:block;
         transition:transform 1.2s var(--out); }
.ph--45{ aspect-ratio:4/5; }
.ph--34{ aspect-ratio:3/4; }
.ph--23{ aspect-ratio:2/3; }
.ph--11{ aspect-ratio:1/1; }
.ph--32{ aspect-ratio:3/2; }
.ph--169{ aspect-ratio:16/9; }
.ph--tall{ aspect-ratio:3/4; }
@media (min-width:900px){ .ph--tall{ aspect-ratio:2/3; } }
a.ph:hover img{ transform:scale(1.04); }

/* Full-bleed photograph, edge to edge. */
.ph-bleed{ width:100%; margin:0; }
.ph-bleed img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Buttons grouped under copy. */
.acts{ display:flex; flex-wrap:wrap; gap:.7rem 1.2rem; align-items:center;
       margin-top:clamp(1.5rem,3vw,2.2rem); }

/* Definition-style lists used for dishes, facts and details. */
.deflist > div{ padding:1rem 0; border-bottom:1px solid rgba(36,31,25,.15); }
.deflist > div:first-child{ border-top:1px solid rgba(36,31,25,.15); }
.deflist dt{ font-family:var(--display); font-size:1.08rem; line-height:1.3;
             font-variation-settings:"SOFT" 28,"WONK" 1,"opsz" 34; }
.deflist dd{ font-size:.88rem; color:var(--ink-3); margin-top:.15rem; max-width:46ch; }
.wall--dusk .deflist > div,.wall--dark .deflist > div{ border-color:rgba(233,224,206,.18); }
.wall--dusk .deflist dd,.wall--dark .deflist dd{ color:#9C9382; }

/* Facts: label / value rows. */
.facts{ display:grid; max-width:44ch; }
.facts > div{ display:grid; grid-template-columns:8.5rem 1fr; gap:.5rem 1rem;
              padding:.75rem 0; border-bottom:1px solid rgba(36,31,25,.14); font-size:.92rem; }
.facts dt{ font-family:var(--display); font-size:.67rem; letter-spacing:.26em;
           text-transform:uppercase; color:var(--tan-dk); padding-top:.25rem; }
.facts dd{ color:var(--ink-2); }
.facts a{ color:var(--ink); text-underline-offset:3px; }
@media (max-width:520px){ .facts > div{ grid-template-columns:1fr; gap:.1rem; } }

/* Page masthead for interior pages. */
.mast{ position:relative; background:var(--dusk); overflow:hidden; }
.mast-ph{ position:absolute; inset:0; }
.mast-ph img{ width:100%; height:100%; object-fit:cover; opacity:.62; }
.mast::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(16,22,9,.62),rgba(16,22,9,.34) 44%,rgba(16,22,9,.93)); }
.mast .hold{ position:relative; z-index:2; }
.mast-in{ min-height:clamp(320px,46svh,520px); display:flex; flex-direction:column;
          justify-content:flex-end;
          padding-block:clamp(4.5rem,9vw,6.5rem) clamp(2.2rem,4.5vw,3.5rem); }
.mast h1{ color:#F8F2E4; max-width:20ch; }
.mast p{ color:#CFC5B1; margin-top:1.1rem; max-width:52ch; }
.mast .painted{ color:var(--ember); margin-bottom:1.1rem; }
.mast .acts{ margin-top:1.8rem; }

/* Quiet statement band. */
.statement{ text-align:center; }
.statement blockquote{
  font-family:var(--display); font-style:italic;
  font-variation-settings:"SOFT" 46,"WONK" 1,"opsz" 90;
  font-size:clamp(1.5rem,1.1rem + 1.7vw,2.5rem); line-height:1.24;
  max-width:24ch; margin-inline:auto; text-wrap:balance;
}
.statement cite{ display:block; margin-top:1.4rem; font-style:normal; }

/* ==========================================================================
   FORMS · FAQ · LIGHTBOX — shared UI
   ========================================================================== */

.form{ display:grid; gap:1.1rem; }
@media (min-width:680px){ .form{ grid-template-columns:repeat(2,1fr); } }
.field{ display:grid; gap:.4rem; }
.field--full{ grid-column:1/-1; }
.field label{ font-family:var(--display); font-size:.65rem; letter-spacing:.24em;
              text-transform:uppercase; color:var(--tan-dk); }
.field input,.field select,.field textarea{
  font:inherit; font-size:.95rem; color:var(--ink); background:#FFFCF6;
  border:1px solid rgba(36,31,25,.2); border-radius:0; padding:.78rem .85rem; width:100%;
  transition:border-color .3s var(--ease);
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--tan); }
.field textarea{ min-height:128px; resize:vertical; }
.form-foot{ grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center;
            gap:1rem 1.6rem; margin-top:.3rem; }
.form-note{ grid-column:1/-1; padding:.9rem 1rem; background:rgba(110,148,80,.12);
            border-left:2px solid var(--paint); font-size:.88rem; }

details.qa{ border-bottom:1px solid rgba(36,31,25,.16); }
details.qa:first-of-type{ border-top:1px solid rgba(36,31,25,.16); }
details.qa summary{
  list-style:none; cursor:pointer; padding:1.1rem 2.5rem 1.1rem 0; position:relative;
  font-size:1rem; font-weight:500; line-height:1.45; transition:color .3s var(--ease);
}
details.qa summary::-webkit-details-marker{ display:none; }
details.qa summary:hover{ color:var(--tan-dk); }
details.qa summary::after{
  content:""; position:absolute; right:.4rem; top:1.45rem; width:10px; height:10px;
  border-right:1.5px solid var(--tan); border-bottom:1.5px solid var(--tan);
  transform:rotate(45deg); transition:transform .35s var(--ease);
}
details.qa[open] summary::after{ transform:rotate(-135deg); }
details.qa .qa-b{ padding:0 2.5rem 1.3rem 0; color:var(--ink-2); max-width:62ch; }
details.qa .qa-b > * + *{ margin-top:.75rem; }
details.qa .qa-b a{ color:var(--tan-dk); text-underline-offset:3px; }
.faq-set + .faq-set{ margin-top:clamp(2.2rem,4.5vw,3.5rem); }
.faq-set > h3{ font-family:var(--display); font-size:1.25rem; margin-bottom:.9rem;
               font-variation-settings:"SOFT" 28,"WONK" 1,"opsz" 36; }

.lightbox{ position:fixed; inset:0; z-index:150; background:rgba(8,11,6,.95);
           display:grid; place-items:center; padding:clamp(1rem,4vw,3rem);
           opacity:0; visibility:hidden; transition:opacity .35s var(--ease), visibility .35s; }
.lightbox.is-open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:100%; max-height:84svh; object-fit:contain; }
.lightbox .lb-x{ position:absolute; top:1rem; right:1rem; width:42px; height:42px;
                 display:grid; place-items:center; color:#E9E0CE;
                 border:1px solid rgba(233,224,206,.3); }
.lightbox .lb-nav{ position:absolute; top:50%; transform:translateY(-50%); width:46px;
                   height:46px; display:grid; place-items:center; color:#E9E0CE;
                   border:1px solid rgba(233,224,206,.26); background:rgba(10,13,7,.45); }
.lightbox .lb-prev{ left:clamp(.5rem,2vw,1.5rem); }
.lightbox .lb-next{ right:clamp(.5rem,2vw,1.5rem); }
.lightbox .lb-cap{ position:absolute; bottom:1rem; left:0; right:0; text-align:center;
                   font-family:var(--display); font-size:.66rem; letter-spacing:.24em;
                   text-transform:uppercase; color:#A69D8C; }

/* ==========================================================================
   THE PROGRAMME — shared by the homepage and What's On
   ========================================================================== */

/* ---------- THE PROGRAMME ------------------------------------------------ */
/* A readable week, not a calendar widget. */

.programme{ background:var(--dusk); color:#E9E0CE; }
.programme-in{ display:grid; gap:clamp(2.2rem,5vw,4rem); align-items:start; }
@media (min-width:960px){ .programme-in{ grid-template-columns:1fr minmax(0,17rem); } }
.programme ol{ border-top:1px solid rgba(233,224,206,.18); }
.programme li{
  display:grid; grid-template-columns:5rem 1fr auto; gap:.25rem 1.5rem;
  padding:1.05rem 0; border-bottom:1px solid rgba(233,224,206,.18); align-items:baseline;
}
.programme .d{ font-family:var(--display); font-size:.7rem; letter-spacing:.28em;
               text-transform:uppercase; color:#8F8674; }
.programme .e{ font-family:var(--display); font-size:1.18rem; line-height:1.2;
               font-variation-settings:"SOFT" 28,"WONK" 1,"opsz" 34; }
.programme .h{ font-size:.81rem; color:#9C9382; white-space:nowrap; }
.programme li.is-f .e{ color:#E9A08E; }
.programme li.is-d .e{ color:var(--ember); }
.programme li.is-q .e{ color:#6F6858; font-size:1rem; font-style:italic; }
@media (max-width:600px){
  .programme li{ grid-template-columns:4rem 1fr; }
  .programme .h{ grid-column:2; }
}


/* full-bleed figures must never be able to push the page sideways */
.ph-bleed{ max-width:100%; }
.wall{ overflow-x:clip; }
