/* --- FONTS (SELF-HOSTED, LATIN SUBSET, VARIABLE WEIGHT) --- */
@font-face { font-family:'Cormorant Garamond'; font-style:normal; font-weight:300 700; font-display:swap; src:url(fonts/cormorant-garamond.woff2) format('woff2'); }
@font-face { font-family:'Cormorant Garamond'; font-style:italic; font-weight:300 700; font-display:swap; src:url(fonts/cormorant-garamond-italic.woff2) format('woff2'); }
@font-face { font-family:'Source Sans 3'; font-style:normal; font-weight:200 900; font-display:swap; src:url(fonts/source-sans-3.woff2) format('woff2'); }
@font-face { font-family:'Source Sans 3'; font-style:italic; font-weight:200 900; font-display:swap; src:url(fonts/source-sans-3-italic.woff2) format('woff2'); }

/* --- TOKENS --- */
/* Gold fails contrast as text (2.8:1 on cream), so it is used for lines and fills. --gold-text stays above 3:1 for large display type only. */
:root { --cream:#F7F1E8; --cream-deep:#EFE6D7; --sand:#E6D9C4; --paper:#FBF8F2; --field:#FFFDF9; --gold:#B08A4E; --gold-deep:#9C7638; --gold-soft:#D9C6A2; --amber:#5B3519; --amber-dark:#43260F; --ink:#2E2925; --ink-soft:#5C534A; --hint:#776B5F; --line:#8F7A5C; --error:#9B2C1F; --gold-grad:linear-gradient(90deg, #8E6A33 0%, #C9A45F 20%, #F0DCA6 40%, #C29A55 58%, #8E6A33 78%, #C9A45F 100%); --gold-text:linear-gradient(100deg, #5B3519 0%, #8C6630 30%, #9C7638 50%, #8C6630 70%, #5B3519 100%); --gold-btn:linear-gradient(110deg, #C29A55 0%, #DDBE80 25%, #F3E2B3 50%, #DDBE80 75%, #C29A55 100%); --serif:'Cormorant Garamond', Georgia, 'Times New Roman', serif; --sans:'Source Sans 3', 'Segoe UI', system-ui, sans-serif; --gutter:1.25rem; --space:clamp(4rem, 10vw, 6.5rem); --band:6px; --ease:cubic-bezier(.2, .7, .2, 1); }

/* --- BASE --- */
*, *::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(--cream); color:var(--ink); font:400 1.125rem/1.7 var(--sans); -webkit-font-smoothing:antialiased; }
body::before { content:''; display:block; height:var(--band); background:var(--gold-grad); } /* the gold band across the top */
@media (min-width: 900px) { body { font-size:1.1875rem; } }
::selection { background:var(--gold-soft); color:var(--ink); }
img { display:block; max-width:100%; height:auto; }
h1, h2, h3 { margin:0; font-family:var(--serif); font-weight:300; color:var(--amber); line-height:1.15; text-wrap:balance; }
h2 { font-size:clamp(2.25rem, 7vw, 3.25rem); letter-spacing:.02em; text-align:center; margin-bottom:2.5rem; }
h3 { font-size:1.75rem; font-weight:400; }
p { margin:0 0 1.25em; text-wrap:pretty; }
a { color:var(--amber); text-decoration-color:var(--gold); text-decoration-thickness:1px; text-underline-offset:.2em; transition:color .2s ease, text-decoration-color .2s ease; }
a:hover { color:var(--amber-dark); text-decoration-color:currentColor; text-decoration-thickness:2px; }
:focus-visible { outline:2px solid var(--amber); outline-offset:3px; }
strong { font-weight:600; }

/* --- UTILITIES --- */
.col { width:min(100% - var(--gutter) * 2, 60rem); margin-inline:auto; }
.col-wide { width:min(100% - var(--gutter) * 2, 56rem); }
.nw { white-space:nowrap; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:1rem; top:-5rem; z-index:10; padding:.75rem 1rem; background:var(--amber); color:var(--cream); }
.skip:focus { top:1rem; }
.eyebrow { display:block; font:600 1rem/1.4 var(--sans); letter-spacing:.2em; text-transform:uppercase; color:var(--ink-soft); }
.rule { width:4.5rem; height:1px; margin:0 auto; border:0; background:var(--gold-grad); }
.band { background:var(--cream-deep); padding-block:var(--space); }

/* --- BUTTONS: GOLD GRADIENT THAT DRIFTS SLOWLY ACROSS ON HOVER. DARK TEXT STAYS ABOVE 5:1 ON EVERY STOP --- */
@property --mx { syntax:'<percentage>'; inherits:true; initial-value:50%; } /* registered so the highlight can glide rather than jump */
@property --my { syntax:'<percentage>'; inherits:true; initial-value:50%; }
.btn { position:relative; isolation:isolate; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; gap:.65rem; min-height:3.25rem; padding:.5rem 2.25rem; border:0; border-radius:2px; background:var(--gold-btn); color:var(--amber-dark); font:600 1rem/1 var(--sans); letter-spacing:.16em; text-transform:uppercase; text-decoration:none; cursor:pointer; transition:transform .25s var(--ease), --mx .45s var(--ease), --my .45s var(--ease); }
.btn::before { content:''; position:absolute; inset:0; z-index:-1; background:radial-gradient(circle 5rem at var(--mx) var(--my), rgb(255 249 230 / .7), transparent 70%); opacity:0; transition:opacity .5s ease; pointer-events:none; } /* soft light that follows the pointer */
.btn:hover::before, .btn:focus-visible::before { opacity:1; }
.btn svg { flex:none; transition:transform .35s var(--ease); }
.btn:hover { color:var(--amber-dark); }
.btn:hover svg { transform:translate(2px, -2px); }
.btn-down:hover svg { transform:translateY(3px); }
.btn-send:hover svg { transform:translateX(4px); }
.btn[disabled] { opacity:.65; cursor:progress; }

/* --- HERO --- */
.hero-media { display:block; overflow:hidden; } /* the photo or the video, depending on config hero_video */
.hero-media img, .hero-media video { display:block; width:100%; aspect-ratio:1; object-fit:cover; }
.hero { --media-h:min(100cqw * 1344 / 3168, 72vh); } /* rendered height of the photo; the seal sits on this edge */
.hero { --media-gap:0px; } /* space either side of the hero media; the seal measures from the media's right edge. */
.hero:has(video) { --media-h:min(70vh, 100cqw * 9 / 16); --video-h:min(var(--media-h) * 1.15, 100cqw * 9 / 16); --media-gap:calc((100cqw - var(--video-h) * 16 / 9) / 2); } /* band height follows the screen; on wide screens the video grows up to 130% of it, cropped from the top */
@media (min-width: 700px) {
	.hero-media img { aspect-ratio:3168 / 1344; max-height:72vh; object-position:52% 70%; }
	.hero-media:has(video) { position:relative; isolation:isolate; height:var(--media-h); background:var(--cream-deep); }
	.hero-media:has(video)::before { content:''; position:absolute; inset:-3rem; z-index:-1; background:url(../media/hero-1600.webp) center / cover; filter:blur(28px) saturate(.8); } /* blurred copy of the scene fills the band */
	.hero-media:has(video)::after { content:''; position:absolute; inset:0; z-index:-1; background:rgb(247 241 232 / .5); } /* cream wash keeps the band light */
	.hero-media video { position:absolute; left:50%; bottom:0; width:auto; height:var(--video-h); max-width:none; aspect-ratio:16 / 9; transform:translateX(-50%); } /* anchored to the bottom so any overflow is lost from the top */
}
.hero-text { width:min(100% - var(--gutter) * 2, 56rem); text-align:center; padding-block:2rem var(--space); }
@media (min-width: 1000px) { .hero-text { padding-top:3.5rem; } }
.hero h1 { margin-bottom:1.75rem; }
.hero h1 .eyebrow { font-size:clamp(1.3rem, 4.5vw, 1.5rem); letter-spacing:.22em; background:var(--gold-text); background-size:250% 100%; background-position:0% 50%; -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; } /* gold gradient text, dark enough to stay readable on cream */
@media (forced-colors: active) { .hero h1 .eyebrow { -webkit-text-fill-color:currentColor; } }
.hero { position:relative; container-type:inline-size; } /* lets the seal measure the photo's rendered width */
/* LOGO SEAL: WHITE DISC WITH THE GOLD LOGO MASKED INSIDE. STRADDLES THE PHOTO'S BOTTOM EDGE: CENTRED ON PHONES, RIGHT ON DESKTOP */
.logo-mark { --seal:clamp(9.5rem, 42vw, 13rem); position:relative; z-index:1; display:block; width:var(--seal); aspect-ratio:1; margin:calc(var(--seal) / -2) auto 0; border-radius:50%; background:#fff; box-shadow:0 14px 34px -20px rgb(67 38 15 / .5); }
.logo-mark::before { content:''; position:absolute; inset:5%; background:linear-gradient(100deg, #8A6230 0%, #B8904F 30%, #D9B676 50%, #B8904F 70%, #8A6230 100%); background-size:250% 100%; background-position:0% 50%; -webkit-mask:url(../media/logo.svg) center / contain no-repeat; mask:url(../media/logo.svg) center / contain no-repeat; }
@media (min-width: 1000px) { .logo-mark { --seal:clamp(13rem, 18vw, 18rem); position:absolute; right:max(1.5rem, calc(var(--media-gap) - var(--seal) / 2)); top:var(--media-h); margin:0; transform:translateY(-50%); } }
@media (forced-colors: active) { .logo-mark::before { forced-color-adjust:none; background:CanvasText; } }
.lede { max-width:30rem; margin:0 auto 1.25rem; font-size:1.1875rem; }
.hero p.eyebrow { margin-bottom:2.25rem; }

/* --- WHAT IT IS --- */
.what { text-align:center; padding-bottom:var(--space); }
.what p { font:400 clamp(1.6rem, 5.5vw, 2.25rem)/1.35 var(--serif); color:var(--amber); margin-bottom:1.6em; text-wrap:balance; }
.what p:last-child { margin-bottom:0; }

/* --- PROSE SECTIONS --- */
.prose, .founders, .faq { padding-block:var(--space); }
.prose .say { font:400 clamp(1.5rem, 5vw, 1.9rem)/1.4 var(--serif); color:var(--amber); text-align:center; margin-bottom:1.75em; text-wrap:balance; }
q.pull { font:italic 400 1.4em/1.3 var(--serif); color:var(--amber); }

/* --- FOUNDERS --- */
.people { display:grid; gap:3.5rem; max-width:46rem; margin-inline:auto; }
@media (min-width: 600px) { .people { grid-template-columns:1fr 1fr; gap:3rem; } }
.person { margin:0; text-align:center; }
.frame { width:100%; max-width:17.5rem; margin:0 auto 2rem; padding:6px; border:1px solid transparent; background:linear-gradient(var(--cream), var(--cream)) padding-box, var(--gold-grad) border-box; } /* gradient border trick */
.portrait { width:100%; aspect-ratio:4 / 5; object-fit:cover; object-position:50% 20%; background:var(--cream-deep); }
.portrait-ph { display:grid; place-items:center; font:300 3.5rem/1 var(--serif); letter-spacing:.12em; color:var(--amber); }
.person h3 { margin-bottom:.25rem; }
.role { font-weight:600; color:var(--ink-soft); margin-bottom:.75rem; }
.coda { max-width:34rem; margin:4rem auto 0; text-align:center; font:400 clamp(1.4rem, 4.5vw, 1.75rem)/1.4 var(--serif); color:var(--amber); text-wrap:balance; }

/* --- INGREDIENTS --- */
.ingredients { list-style:none; margin:0 0 2rem; padding:0; text-align:center; }
.ingredients li { padding:.85rem 0; border-style:solid; border-width:0 0 1px; border-image:var(--gold-grad) 1; font:400 clamp(1.5rem, 5vw, 1.85rem)/1.3 var(--serif); color:var(--amber); }
.ingredients li:first-child { border-top-width:1px; }
.ingredients strong { font:600 .75em/1 var(--sans); letter-spacing:.1em; vertical-align:.1em; }
.allergen { padding:1.25rem 1.5rem; border:1px solid var(--line); background:var(--paper); }

/* --- WHERE TO BUY --- */
.intro { text-align:center; max-width:34rem; margin:0 auto 2.75rem; text-wrap:balance; }
.stockists { display:grid; gap:1.25rem; margin:0 0 2.5rem; padding:0; list-style:none; }
@media (min-width: 700px) { .stockists { grid-template-columns:1fr 1fr; } }
.card { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; padding:2.25rem 1.5rem 2rem; background:var(--paper); border:1px solid var(--gold-soft); transition:transform .4s var(--ease), box-shadow .4s ease; }
.card::before, .enquiry::before { content:''; position:absolute; left:-1px; right:-1px; top:-1px; height:3px; background:var(--gold-grad); }
.card:hover { transform:translateY(-4px); box-shadow:0 18px 36px -24px rgb(67 38 15 / .45); }
.card-logo { height:7rem; width:auto; max-width:11rem; object-fit:contain; margin-bottom:1.5rem; mix-blend-mode:multiply; } /* multiply drops the logos' white backgrounds into the card */
.card h3 { margin-bottom:.75rem; }
.card p { margin-bottom:.25rem; }
.card .town { color:var(--ink-soft); margin-bottom:1.75rem; }
.card .btn { margin-top:auto; min-width:11rem; }
.quiet { text-align:center; font-style:italic; color:var(--ink-soft); margin:0; }

/* --- ORDER TABS: HIDDEN WITHOUT JAVASCRIPT, WHEN BOTH PANELS SHOW IN TURN --- */
.tabs { display:none; }
.js .tabs { display:flex; justify-content:center; max-width:34rem; margin:0 auto 2.75rem; border-bottom:1px solid var(--gold-soft); }
.tab { position:relative; flex:1; min-height:3.25rem; padding:.9rem 1rem; border:0; background:none; color:var(--ink-soft); font:600 1rem/1.2 var(--sans); letter-spacing:.14em; text-transform:uppercase; cursor:pointer; transition:color .3s ease; }
.tab::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--gold-grad); transform:scaleX(0); transition:transform .6s var(--ease); } /* gold underline grows under the chosen tab */
.tab:hover, .tab[aria-selected="true"] { color:var(--amber); }
.tab[aria-selected="true"]::after { transform:none; }
.panel-narrow { max-width:38rem; margin-inline:auto; }
.panel + .panel { margin-top:var(--space); }
.js .panel + .panel { margin-top:0; }
.panel-title { font-size:clamp(1.9rem, 6vw, 2.5rem); text-align:center; margin-bottom:1.5rem; }
.js .panel-title { display:none; } /* the tab names the panel when JavaScript runs */

/* --- QUESTIONS --- */
.faq details { padding-inline:.75rem; border-top:1px solid var(--gold-soft); transition:background-color .5s ease; }
.faq details:hover { background-color:var(--paper); } /* a faint lift of the row under the pointer */
.faq details:last-of-type { border-bottom:1px solid var(--gold-soft); }
.faq summary { position:relative; min-height:3rem; padding:1.15rem 2.75rem 1.15rem 0; list-style:none; cursor:pointer; font:500 1.45rem/1.3 var(--serif); color:var(--amber); transition:color .2s ease, padding-left .35s var(--ease); }
.faq summary:hover { color:var(--amber-dark); padding-left:.4rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::before, .faq summary::after { content:''; position:absolute; right:.5rem; top:50%; width:1rem; height:1.5px; background:var(--gold-deep); transition:transform .35s var(--ease); }
.faq summary::after { transform:rotate(90deg); }
.faq details[open] summary::after { transform:rotate(0); }
.faq details p { padding-right:2.75rem; margin-bottom:1.5rem; }

/* --- STOCKING FORM --- */
.enquiry { position:relative; padding:2rem 1.25rem 1.5rem; background:var(--paper); border:1px solid var(--gold-soft); }
@media (min-width: 700px) { .enquiry { padding:2.75rem 2.5rem 2rem; } }
.fields { display:grid; gap:0 1.25rem; }
@media (min-width: 700px) { .fields { grid-template-columns:1fr 1fr; } .fields .full { grid-column:1 / -1; } }
.fields p { margin-bottom:1.35rem; }
label { display:block; font-weight:600; transition:color .2s ease; font-size:small; margin-left:30px; font-weight:900; }
.fields p:focus-within label { color:var(--amber); }
.opt { font-weight:400; color:var(--ink-soft); }
input, textarea { width:100%; min-height:3rem; padding:0 1.9rem; border:1px solid #EEE; border-radius:25px; background:var(--field); color:var(--ink); font:inherit; transition:border-color .2s ease, box-shadow .3s ease; }
input::placeholder, textarea::placeholder { color:var(--hint); font-size:.85em; font-style:italic; opacity:1; }
input:hover, textarea:hover { border-color:var(--amber); }
input:focus, textarea:focus { outline:none; border-color:var(--amber); box-shadow:0 0 0 4px rgb(176 138 78 / .2); }
input:not(:focus):not(:placeholder-shown):valid, textarea:not(:focus):not(:placeholder-shown):valid { padding-right:2.5rem; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%239C7638' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right .85rem top 1.05rem / 1rem, var(--field); } /* gold tick once a field is filled in correctly */
textarea { resize:vertical; min-height:8.5rem; padding: 0.7rem 1.9rem;}
input:user-invalid, textarea:user-invalid, [aria-invalid="true"] { border-color:var(--error); }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-error { color:var(--error); }
.enquiry .btn { width:100%; margin:.5rem 0 1.25rem; }
@media (min-width: 700px) { .enquiry .btn { width:auto; } }
.privacy { font-size:1rem; color:var(--ink-soft); margin:0; }
.confirm { position:relative; padding:2rem 1.5rem; border:1px solid var(--gold-soft); background:var(--paper); text-align:center; font:400 1.5rem/1.4 var(--serif); color:var(--amber); }
.confirm::before { content:''; position:absolute; left:-1px; right:-1px; top:-1px; height:3px; background:var(--gold-grad); }
.confirm:focus { outline:none; }

/* --- FOOTER: CLOSES WITH THE SAME GOLD BAND THE PAGE OPENS WITH --- */
.site-footer { padding:4rem 0 calc(3rem + var(--band));  background:var(--gold-grad) left bottom / 100% var(--band) no-repeat, var(--sand); text-align:center; }
.site-footer a { display:inline-block; padding-block:.6rem; }
.site-footer .contact { margin-bottom:.75rem; }
.site-footer .links { margin:0; }

/* --- LEGAL PAGE --- */
.legal-head { padding-top:1.5rem; text-align:center; }
.wordmark { display:inline-block; padding:.75rem; font:400 1.5rem/1 var(--serif); letter-spacing:.2em; text-transform:uppercase; text-decoration:none; color:var(--amber); }
.legal h1 { font-size:clamp(2.6rem, 9vw, 3.75rem); text-align:center; margin-bottom:.75rem; }
.legal .updated { text-align:center; color:var(--ink-soft); font-size:1rem; margin-bottom:.5rem; }
.legal .toc { text-align:center; margin-bottom:1rem; }
.legal .toc a { display:inline-block; padding:.6rem .25rem; }
.legal section { padding-block:3rem; }
.legal h3 { font-size:1.6rem; margin:2.25rem 0 .75rem; }
.legal ul { margin:0 0 1.25em; padding-left:1.25rem; }
.legal li { margin-bottom:.75rem; }
.legal li::marker { color:var(--gold-deep); }

/* --- MOVEMENT: ONLY FOR VISITORS WHO HAVEN'T ASKED THEIR DEVICE TO REDUCE MOTION --- */
@media (prefers-reduced-motion: no-preference) {
	.hero-text > * { animation:rise 1s var(--ease) both; }
	.hero-text > :nth-child(2) { animation-delay:.15s; }
	.hero-text > :nth-child(3) { animation-delay:.3s; }
	.hero-text > :nth-child(4) { animation-delay:.45s; }
	.logo-mark::before, .hero h1 .eyebrow { animation:shimmer 3s ease-in-out 1.2s infinite alternate; }
	.btn:hover { transform:scale(1.05); }
	.btn:active, .btn[disabled] { transform:none; }
	.faq details[open] > p { animation:rise .5s var(--ease) both; }
	.js .panel:not([hidden]) { animation:rise .6s var(--ease) both; }
	.js .reveal { opacity:0; transform:translateY(1rem); transition:opacity .9s ease, transform .9s var(--ease); }
	.js .reveal.in { opacity:1; transform:none; }
	.js .rule { transform:scaleX(0); transition:transform 1.4s var(--ease); }
	.js .rule.in { transform:none; }
	.js .reveal .ingredients li { opacity:0; transform:translateY(.5rem); transition:opacity .7s ease, transform .7s var(--ease); }
	.js .reveal.in .ingredients li { opacity:1; transform:none; }
	.js .reveal.in .ingredients li:nth-child(2) { transition-delay:.12s; }
	.js .reveal.in .ingredients li:nth-child(3) { transition-delay:.24s; }
	.js .reveal.in .ingredients li:nth-child(4) { transition-delay:.36s; }
}
@keyframes rise { from { opacity:0; transform:translateY(.75rem); } to { opacity:1; transform:none; } }
@keyframes shimmer { to { background-position:100% 50%; } }
