/* =============================================================================
   Sobremesa — design system
   One ground (whitewash), one ink, olive for the action and the closing
   field. Fraunces for display, Instrument Sans for text. Square corners,
   no rules, no shadows, no gradients: surfaces are told apart by tone.
   ============================================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --cal: #F4F0E6;          /* ground: whitewashed wall */
  --cal-2: #E9E3D4;        /* one step down, for a second surface */
  --ink: #1D1B16;          /* text */
  --ink-2: #4B473E;        /* secondary notes only */
  --olive: #555836;        /* accent and field: the action, the contact section */
  --olive-2: #44462A;
  --on-dark: #F4F0E6;
  --on-dark-2: #D9D3C2;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(4.6rem, 11.2vw, 11.75rem);
  --t-h2: clamp(2.5rem, 5.6vw, 5.75rem);
  --t-h3: clamp(1.5rem, 2.3vw, 2.15rem);
  --t-body: 1.125rem;
  --t-small: 0.9375rem;

  /* space */
  --margin: clamp(1.25rem, 3.2vw, 3rem);
  --gap: clamp(1.25rem, 2.4vw, 2.5rem);
  --section: clamp(6rem, 12vw, 12.5rem);
  --header: 4.5rem;

  /* motion */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --fast: 180ms;
  --slow: 900ms;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cal);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--on-dark); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.on-dark :focus-visible, .field :focus-visible { outline-color: var(--on-dark); }
.menu-lock { overflow: hidden; }

@view-transition { navigation: auto; }

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

.display, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.display { font-size: var(--t-display); line-height: .9; letter-spacing: -.035em; }
.h2 { font-size: var(--t-h2); line-height: .98; letter-spacing: -.028em; }
.h3 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -.012em; }
.statement {
  font-family: var(--serif);
  font-size: var(--t-h3);
  line-height: 1.25;
  font-weight: 380;
  letter-spacing: -.01em;
  max-width: 30ch;
  text-wrap: pretty;
}
.prose p { max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.note { font-size: var(--t-small); color: var(--ink-2); }
.on-dark .note, .field .note { color: var(--on-dark-2); }

/* ----------------------------------------------------------------- layout */

.wrap { padding-inline: var(--margin); max-width: 1680px; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--section); }
.field { background: var(--olive); color: var(--on-dark); }
.surface { background: var(--cal-2); }

.skip {
  position: absolute; left: var(--margin); top: -4rem; z-index: 50;
  background: var(--ink); color: var(--on-dark); padding: .75rem 1rem;
}
.skip:focus { top: 1rem; }

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

.header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header);
  background: var(--cal);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-inline: var(--margin);
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; }
.brand img { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); font-size: var(--t-small); }
.nav-link { position: relative; padding-block: .5rem; }
.nav-link::after, .link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--fast) var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .link:hover::after { transform: scaleX(1); }
.lang { display: flex; align-items: center; gap: .15rem; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem .35rem; color: var(--ink-2); text-decoration: none;
  min-width: 2.25rem; min-height: 2.75rem;
}
.lang a.is-active { color: var(--ink); font-weight: 600; }
.lang .sep { color: var(--ink-2); }
.menu-toggle { display: none; }

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

.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 3.25rem; padding: .9rem 1.5rem;
  background: var(--olive); color: var(--on-dark);
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: .005em;
  border: 0; border-radius: 0; cursor: pointer;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--olive-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arrow { transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--small { min-height: 2.75rem; padding: .6rem 1.1rem; font-size: var(--t-small); }
.btn--light { background: var(--on-dark); color: var(--olive); }
.btn--light:hover { background: #FFFFFF; }

.link { position: relative; display: inline-flex; gap: .6rem; align-items: center; font-weight: 600; padding-block: .4rem; }
.link .arrow { transition: transform var(--fast) var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* -------------------------------------------------------------- pictures */

.pic { position: relative; overflow: hidden; background: var(--cal-2); }
.pic picture { width: 100%; height: 100%; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic--zoom img { transition: transform 1200ms var(--ease); }
a:hover .pic--zoom img { transform: scale(1.035); }

/* =================================================================== HOME */

/* hero: the name of the table, then the table */
.hero { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.hero__title { padding-inline: var(--margin); max-width: 1680px; margin-inline: auto; }
.hero__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end; padding: clamp(1.25rem, 2.2vw, 2rem) var(--margin) clamp(1.75rem, 2.6vw, 2.5rem);
  max-width: 1680px; margin-inline: auto;
}
.hero__row .statement { grid-column: 1 / span 7; }
.hero__row .hero__act { grid-column: 9 / -1; justify-self: end; }
.hero__media { height: min(78vh, 56vw); min-height: 22rem; }
.hero__media img { transform-origin: 50% 70%; }

/* the word, and the story */
.word { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 4rem; }
.word__head { grid-column: 1 / span 6; }
.word__gloss { margin-top: 2rem; max-width: 30ch; font-family: var(--serif); font-size: var(--t-h3); line-height: 1.25; font-style: italic; font-weight: 340; }
.word__gloss cite { display: block; margin-top: 1rem; font-family: var(--sans); font-style: normal; font-size: var(--t-small); color: var(--ink-2); }
.word__body { grid-column: 8 / -1; align-self: end; }

.after { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; align-items: center; background: var(--cal-2); padding: clamp(2.25rem, 5vw, 5rem); }
.after__lead .statement { max-width: 24ch; }
.after__lead { grid-column: 1 / span 6; }
.after__story { max-width: 27ch; }
.after__lead .prose { margin-top: 1.5rem; }
.after__lead .prose p { max-width: 46ch; }

/* the to-do list as a menu card resting on the tablecloth */
.still { grid-column: 7 / -1; position: relative; display: grid; place-items: center; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem); overflow: hidden; }
.still__cloth { position: absolute; inset: 0; }
.still__cloth picture, .still__cloth img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.note {
  position: relative; width: min(100%, 22rem); background: #FDFBF6; color: var(--ink);
  padding: clamp(2.25rem, 3.4vw, 3rem) clamp(1.75rem, 2.8vw, 2.5rem) clamp(2rem, 3vw, 2.75rem);
  text-align: center;
}
.note__mark { width: 2.6rem; height: 2.6rem; margin: 0 auto 1.25rem; object-fit: contain; }
.note__title { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; letter-spacing: -.01em; }
.note__sub { margin-top: .35rem; font-size: var(--t-small); color: var(--ink-2); }
.note__list { margin-top: 1.75rem; display: grid; gap: .8rem; }
.note__list span {
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.3; color: var(--ink-2);
  text-decoration: line-through 1.5px; text-decoration-color: var(--olive);
  transition: text-decoration-color 420ms var(--ease), color 420ms var(--ease);
}
/* main.js ties the strikes to scrolling: an item is crossed out as the card
   rises and uncrossed again on the way back up. Without the script, or with
   reduced motion, the card simply shows everything done. */
.note--live li:not(.is-done) span { text-decoration-color: transparent; color: var(--ink); }
.note__sign {
  margin-top: 2rem; font-family: var(--serif); font-style: italic; font-weight: 360;
  font-size: 1.9rem; line-height: 1; color: var(--olive);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.note--live:not(.is-set) .note__sign { opacity: 0; transform: translateY(8px); }

/* services: two rows, picture and words trading sides */
.service { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.service + .service { margin-top: var(--section); }
.service__pic { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.service__body { grid-column: 9 / -1; }
.service--flip .service__pic { grid-column: 6 / -1; grid-row: 1; }
.service--flip .service__body { grid-column: 1 / span 4; grid-row: 1; }
.service__body .h2 { margin-bottom: 1.5rem; }
.service__body .prose { margin-bottom: 1.75rem; }
.service__kinds { margin: 0 0 2rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }

/* what we look after: a list on the olive field */
.care__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.care__head .h2 { grid-column: 1 / span 7; }
.care__head .prose { grid-column: 9 / -1; }
.care__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(2rem, 3.4vw, 3.25rem); }
.care__list div { display: grid; grid-template-columns: minmax(9rem, 2fr) 3fr; column-gap: 1.5rem; align-items: baseline; }
.care__list dt { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.012em; }
.care__list dd { color: var(--ink-2); max-width: 36ch; }
.field .care__list dd { color: var(--on-dark-2); }

/* questions and answers: one line each, opened on request */
.faq { padding-block: calc(var(--section) * .55); }
.faq .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.faq__title { grid-column: 1 / span 5; padding-top: .45rem; }
.faq__list { grid-column: 6 / -1; }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: .7rem 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-2); flex: none; width: 1ch; text-align: center; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--olive); }
.faq details p { color: var(--ink-2); max-width: 56ch; padding: 0 2.5rem 1rem 0; text-wrap: pretty; }

/* houses */
.houses { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; }
.houses__pic { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.houses__head { grid-column: 1 / span 5; }
.houses__head .prose { margin-top: 1.5rem; }
.houses__list { grid-column: 7 / -1; }
.houses__list li { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: baseline; padding-block: 1rem; }
.houses__list li + li { margin-top: .25rem; }
.houses__list .region { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.012em; }
.houses__list .kind { color: var(--ink-2); }

/* contact: the email writes itself */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; }
.contact__head { grid-column: 1 / span 5; }
.contact__head .prose { margin-top: 1.75rem; }
.contact__head .prose p { color: var(--on-dark-2); }
.contact__mail { display: inline-block; margin-top: 2.25rem; font-family: var(--serif); font-size: var(--t-h3); position: relative; }
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.2rem; height: 2px; background: currentColor; transform: scaleX(.18); transform-origin: left; transition: transform 400ms var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }
.composer { grid-column: 7 / -1; display: grid; gap: 1.75rem; align-content: start; }
.composer fieldset { border: 0; margin: 0; padding: 0; }
.composer legend, .composer__row label > span { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--on-dark); margin-bottom: .75rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 2.9rem; padding: .55rem 1.1rem;
  background: rgba(244, 240, 230, .1); color: var(--on-dark); font-size: 1rem;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.chips label:hover span { background: rgba(244, 240, 230, .2); }
.chips input:checked + span { background: var(--on-dark); color: var(--olive); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid var(--on-dark); outline-offset: 2px; }
.composer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.composer__row--one { grid-template-columns: 1fr; }
.composer__row label > span { margin-bottom: .6rem; }
.composer select, .composer input[type="number"], .composer input[type="text"], .composer input[type="email"], .composer textarea {
  width: 100%; min-height: 3.25rem; padding: .7rem .9rem;
  background: rgba(244, 240, 230, .1); color: var(--on-dark); border: 0; border-radius: 0; appearance: none;
}
.composer select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23F4F0E6' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; cursor: pointer;
}
.composer select option { color: var(--ink); background: var(--cal); }
.composer textarea { resize: vertical; min-height: 6.5rem; font: inherit; line-height: 1.5; }
.composer input::placeholder, .composer textarea::placeholder { color: var(--on-dark-2); opacity: .7; }
.composer button[disabled] { opacity: .6; cursor: progress; }
.composer__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.composer__out { font-size: var(--t-small); color: var(--on-dark-2); min-height: 1.5em; }
.composer__out a { color: var(--on-dark); text-decoration: underline; text-underline-offset: .2em; }
.composer__out.is-sent { color: var(--on-dark); font-family: var(--serif); font-size: 1.25rem; }

/* cookie choice: a quiet card in the corner, both answers equal */
.consent {
  position: fixed; z-index: 60; left: var(--margin); bottom: var(--margin);
  width: min(26rem, calc(100vw - 2 * var(--margin)));
  padding: 1.35rem 1.4rem 1.4rem; background: var(--ink); color: var(--on-dark);
  display: grid; gap: 1.1rem;
}
.consent[hidden] { display: none; }
.consent__text { font-size: var(--t-small); line-height: 1.55; color: var(--on-dark-2); }
.consent__text a { color: var(--on-dark); text-decoration: underline; text-underline-offset: .2em; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.consent__btn {
  min-height: 2.75rem; padding: .55rem 1rem; font-size: var(--t-small); font-weight: 600;
  background: rgba(244, 240, 230, .12); color: var(--on-dark); border: 0; border-radius: 0; cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.consent__btn:hover { background: var(--on-dark); color: var(--ink); }
.footer__consent { justify-self: start; padding: .2rem 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.footer__consent:hover { color: #FFFFFF; }
.footer__consent[hidden] { display: none; }

/* ================================================================== PAGES */

/* page hero: words beside a tall picture */
.page-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; align-items: end; padding-top: clamp(2rem, 5vw, 4rem); }
.page-hero__words { grid-column: 1 / span 7; padding-bottom: clamp(0rem, 2vw, 2rem); }
.page-hero__words .statement { margin-top: 2rem; }
.page-hero__words .btn { margin-top: 2.5rem; }
.page-hero__pic { grid-column: 8 / -1; aspect-ratio: 4 / 5; }

/* two seasons: two whole fields side by side */
.seasons { display: grid; grid-template-columns: 1fr 1fr; }
.season { display: grid; grid-template-rows: auto 1fr; }
.season__pic { aspect-ratio: 5 / 4; }
.season__body { padding: clamp(2.25rem, 5vw, 5rem) var(--margin) clamp(3rem, 6vw, 6rem); }
.season__body .h2 { margin-bottom: 1.5rem; }
.season__body .prose p { max-width: 40ch; }
.season--winter { background: var(--olive); color: var(--on-dark); }
.season--winter .prose p { color: var(--on-dark-2); }
.season--summer { background: var(--cal-2); }

/* occasions: a list beside a picture */
.occasions { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; align-items: start; }
.occasions__head { grid-column: 1 / span 6; }
.occasions__pic { grid-column: 8 / -1; grid-row: 1 / span 2; aspect-ratio: 3 / 4; }
.occasions__list { grid-column: 1 / span 6; display: grid; gap: 2rem; }
.occasions__list h3 { margin-bottom: .4rem; }

/* a day, by the hour */
.day { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; }
.day__head { grid-column: 1 / span 4; }
.day__head .prose { margin-top: 1.5rem; }
.day__list { grid-column: 6 / -1; display: grid; gap: .35rem; }
.day__list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; align-items: baseline; padding: .85rem 1rem; }
.day__list li:nth-child(odd) { background: var(--cal-2); }
.day__list time { font-family: var(--serif); font-size: var(--t-h3); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.day__list strong { display: block; font-weight: 600; }

/* gallery strip: three pictures of the houses' world */
.strip { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: var(--gap); align-items: end; }
.strip .pic:nth-child(1) { aspect-ratio: 4 / 3; }
.strip .pic:nth-child(2) { aspect-ratio: 2 / 3; }
.strip .pic:nth-child(3) { aspect-ratio: 3 / 4; }

/* ================================================================= FOOTER */

.footer { background: var(--ink); color: var(--on-dark); padding: clamp(4rem, 8vw, 7rem) 0 2.5rem; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; }
.footer__lead { grid-column: 1 / span 5; }
.footer__lema { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.2; }
.footer__nav { grid-column: 7 / span 3; display: grid; gap: .55rem; align-content: start; }
.footer__legal { grid-column: 10 / -1; display: grid; gap: .55rem; align-content: start; }
.footer__nav a, .footer__legal a { position: relative; justify-self: start; padding-block: .2rem; }
.footer__nav a:hover, .footer__legal a:hover { color: #FFFFFF; }
.footer__name {
  margin-top: clamp(3rem, 7vw, 6rem);
  font-family: var(--serif); font-weight: 360; letter-spacing: -.05em; line-height: .78;
  font-size: clamp(5rem, 24.5vw, 27rem); white-space: nowrap;
  margin-left: -.04em;
}
.footer__seo { margin-top: 2.5rem; max-width: 92ch; font-size: var(--t-small); color: var(--on-dark-2); }
.footer__meta { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--t-small); color: var(--on-dark-2); }

/* ================================================================== LEGAL */

.legal-head { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.legal-head h1 { font-family: var(--serif); font-weight: 380; font-size: var(--t-h2); line-height: .98; letter-spacing: -.028em; max-width: 14ch; text-wrap: balance; }
.legal-head .lead { margin-top: 2rem; max-width: 52ch; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.35; }
.legal-updated { margin-top: 2rem; color: var(--ink-2); font-size: var(--t-small); }
.legal-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-bottom: var(--section); }
.legal-index { grid-column: 1 / span 3; }
.legal-index ol { position: sticky; top: calc(var(--header) + 2rem); display: grid; gap: .5rem; }
.legal-index a { color: var(--ink-2); font-size: var(--t-small); transition: color var(--fast) var(--ease); }
.legal-index a:hover { color: var(--ink); }
.legal-body { grid-column: 5 / span 7; }
.legal-body section + section { margin-top: 4.5rem; }
.legal-body h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); margin-bottom: 1.25rem; }
.legal-body h3 { font-weight: 600; font-size: var(--t-body); margin: 2rem 0 .5rem; }
.legal-body p { max-width: 66ch; }
.legal-body p + p { margin-top: 1em; }

/* =================================================================== 404 */

.notfound { min-height: calc(100vh - var(--header)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.notfound__words { grid-column: 1 / span 6; }
.notfound__words .statement { margin: 2rem 0 2.5rem; }
.notfound__pic { grid-column: 8 / -1; aspect-ratio: 3 / 4; }

/* ================================================================= MOTION */

.js [data-anim] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease) var(--delay, 0ms), transform 800ms var(--ease) var(--delay, 0ms); }
.js [data-anim="pic"] { transform: translateY(0) scale(1.06); transition-duration: 1200ms; }
.js [data-anim].is-in { opacity: 1; transform: none; }
/* safety net: if the script never runs, nothing stays hidden */
.js [data-anim]:not(.is-in) { animation: reveal-anyway 1ms linear 3s forwards; }
@keyframes reveal-anyway { to { opacity: 1; transform: none; } }
.js-live [data-anim]:not(.is-in) { animation: none; }
.hero__media img { animation: settle 2.2s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  .note__list span, .note__sign { transition: none; }
  .hero__media img { animation: none; }
  .pic--zoom img, .btn, .btn .arrow, .link .arrow { transition: none; }
}

/* ============================================================ SMALL SCREENS */

@media (max-width: 960px) {
  :root { --header: 4rem; }
  .nav-link, .nav .btn { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .25rem;
    background: none; border: 0; font-size: 1rem; font-weight: 600; cursor: pointer;
  }
  .menu-toggle__close { display: none; }
  .menu-open .menu-toggle__open { display: none; }
  .menu-open .menu-toggle__close { display: inline; }

  .hero__row .statement, .hero__row .hero__act { grid-column: 1 / -1; justify-self: start; }
  .hero__row { row-gap: 1.75rem; }
  .hero__media { height: auto; aspect-ratio: 4 / 5; min-height: 0; }

  .word__head, .word__body, .after__lead, .still,
  .care__head .h2, .care__head .prose,
  .houses__head, .houses__list,
  .contact__head, .composer,
  .page-hero__words, .page-hero__pic,
  .occasions__head, .occasions__pic, .occasions__list,
  .day__head, .day__list,
  .footer__lead,
  .legal-index, .legal-body,
  .notfound__words, .notfound__pic { grid-column: 1 / -1; grid-row: auto; }
  .care__head { row-gap: 1.5rem; }
  .footer__nav { grid-column: 1 / span 6; }
  .footer__legal { grid-column: 7 / -1; }

  .service__pic, .service--flip .service__pic { grid-column: 1 / -1; grid-row: 1; }
  .service__body, .service--flip .service__body { grid-column: 1 / -1; grid-row: 2; margin-top: 2rem; }

  .care__list { grid-template-columns: 1fr; }
  .faq__title, .faq__list { grid-column: 1 / -1; }
  .faq__title { padding-top: 0; margin-bottom: 1rem; }
  .houses__pic { aspect-ratio: 4 / 3; }
  .seasons { grid-template-columns: 1fr; }
  .occasions__pic { aspect-ratio: 4 / 3; }
  .page-hero__pic { aspect-ratio: 4 / 3; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .pic:nth-child(1) { grid-column: 1 / -1; }
  .legal-index { margin-bottom: 3rem; }
  .legal-index ol { position: static; display: flex; flex-wrap: wrap; gap: 1.25rem; }
  .notfound { padding-block: 3rem; min-height: 0; row-gap: 2.5rem; }
}

@media (max-width: 600px) {
  .care__list div, .houses__list li { grid-template-columns: 1fr; row-gap: .35rem; }
  .day__list li { grid-template-columns: 5.25rem 1fr; gap: .9rem; padding: .8rem .75rem; }
  .composer__row { grid-template-columns: 1fr; }
  .after { padding: 2rem 1.25rem; }
  .still { margin-inline: -1.25rem; padding: 2.5rem 1.25rem; }
  .note { width: 100%; }
  .note__list span { font-size: 1.0625rem; }
  .note__sign { white-space: nowrap; font-size: 1.75rem; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }
}

/* the mobile menu */
.menu {
  position: fixed; inset: var(--header) 0 0 0; z-index: 25;
  background: var(--cal); padding: 2rem var(--margin) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.menu ul { display: grid; gap: .5rem; }
.menu a { font-family: var(--serif); font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1.1; letter-spacing: -.02em; }
.menu__foot a { font-family: var(--sans); font-size: 1.125rem; }
@media (min-width: 961px) { .menu { display: none; } }

/* Instagram and X: two quiet marks and the handle, on the dark sections */
.social { display: flex; align-items: center; gap: 1.1rem; color: var(--on-dark-2); }
.social a { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.6rem; color: inherit; transition: color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.social a:hover, .social a:focus-visible { color: #FFFFFF; transform: translateY(-2px); }
.social a + a { margin-left: .5rem; }
.social__handle { margin-left: .6rem; font-size: var(--t-small); letter-spacing: .01em; }
.social--footer { margin-top: 1.75rem; }
.social--contact { margin-top: 1.9rem; }

/* narrow phones: the footer links go in one column so the address never runs into its neighbour */
@media (max-width: 480px) {
  .footer__nav, .footer__legal { grid-column: 1 / -1; }
}
