/* HYGEÍA INSTITUTE — Fine Curated Editions
   Layout concept: a maison, not a website. Full-bleed photographs carry the Editions;
   between them, quiet ivory rooms of centred type. The palette is taken from the
   Institute's own book covers: greige, taupe, charcoal and a deep aubergine. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }

:root {
  /* colour — single, deliberate house palette */
  --ivory: #F7F4EF;      /* the rooms */
  --paper: #FCFAF7;      /* raised surfaces */
  --stone: #E6E0D6;      /* quiet bands */
  --greige: #BDB69F;     /* the house sand: buttons, the Premise band */
  --taupe: #BCB7AE;      /* cover greige: behind product photographs */
  --charcoal: #1B1B1B;   /* night rooms, footer */
  --aubergine: #1F0E10;  /* the featured Edition, from the cover */
  --ink: #1E1C1A;        /* text on light */
  --muted: #69635B;      /* secondary text on light */
  --mist: #ABA59C;       /* secondary text on dark */
  --mauve: #9A8B8A;      /* the medallion on aubergine */
  --line: rgba(30, 28, 26, 0.16);
  --line-dark: rgba(244, 240, 234, 0.18);

  /* type */
  --display: "Playfair Display", "Didot", "Bodoni 72", "Times New Roman", serif;
  --serif: "Cormorant Garamond", "Garamond", "Iowan Old Style", Georgia, serif;
  --ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --t-micro: 0.6875rem;                              /* 11px tracked capitals */
  --t-small: 0.8125rem;
  --t-body: clamp(1.18rem, 1.1rem + 0.25vw, 1.3rem); /* Cormorant reads small: set it generously */
  --t-lead: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem);
  --t-h3: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  --t-h2: clamp(2rem, 1.5rem + 2vw, 3.3rem);
  --t-h1: clamp(2.5rem, 1.6rem + 3.8vw, 5.4rem);

  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --wide: 1440px;
  --measure: 36rem;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .2, 1);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gl: max(44px, env(safe-area-inset-left, 0px)); --gr: max(44px, env(safe-area-inset-right, 0px)); --header-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--serif); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; text-wrap: balance; }
::selection { background: var(--greige); color: var(--ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 10px 16px; font: 500 var(--t-small) var(--ui); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.center { text-align: center; }

/* ——— small type ——— */
.label { font-family: var(--ui); font-size: var(--t-micro); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.6; }
.label--soft { color: var(--muted); }
.on-dark .label--soft { color: var(--mist); }
.italic { font-family: var(--serif); font-style: italic; }

/* ——— buttons: pills, as a maison would ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 30px; border-radius: 999px;
  font-family: var(--ui); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: #3A3631; }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: var(--greige); }
.btn--sand { background: var(--greige); color: var(--ink); }
.btn--sand:hover { background: var(--ivory); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.on-dark .btn--line:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { background: transparent; border-color: var(--line); color: var(--muted); cursor: default; }
.on-dark .btn[aria-disabled="true"] { border-color: var(--line-dark); color: var(--mist); }
.link { font-family: var(--ui); font-size: var(--t-small); font-weight: 500; letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: text-underline-offset .35s var(--ease); }
.link:hover { text-underline-offset: 9px; }

/* ——— header ——— */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ivory); }
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; height: var(--header-h);
  background: var(--ivory); color: var(--ink); border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.site-header.is-solid { border-bottom-color: var(--line); }
.has-hero .site-header:not(.is-solid) { background: transparent; color: var(--ivory); }
.header-inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
.nav { display: flex; gap: 32px; align-items: center; font-family: var(--ui); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.06em; white-space: nowrap; }
.nav--right { justify-content: flex-end; }
.nav a { position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.wordmark { font-family: var(--display); font-weight: 400; font-size: 1.12rem; letter-spacing: 0.24em; margin-right: -0.24em; line-height: 1; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { position: relative; width: 36px; height: 36px; flex: none; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.brand-mark .mk-light { opacity: 0; }
.has-hero .site-header:not(.is-solid) .mk-dark { opacity: 0; }
.has-hero .site-header:not(.is-solid) .mk-light { opacity: 1; }
.menu-open .site-header .mk-dark { opacity: 1 !important; }
.menu-open .site-header .mk-light { opacity: 0 !important; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: 10px 10px 10px 0; cursor: pointer; font: 400 var(--t-small) var(--ui); align-items: center; gap: 12px; }
.menu-toggle .bars { display: grid; gap: 6px; }
.menu-toggle .bars i { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
.menu-open .menu-toggle .bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle .bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ivory); color: var(--ink);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px) var(--gr) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gl);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .site-header { background: var(--ivory) !important; color: var(--ink) !important; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a { font-family: var(--display); font-size: 2rem; line-height: 1.35; }
.mobile-menu .small { display: grid; gap: 10px; font-family: var(--ui); font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1099px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; justify-self: start; }
}
@media (max-width: 599px) {
  .wordmark { font-size: 0.92rem; letter-spacing: 0.16em; margin-right: -0.16em; }
  .brand { gap: 10px; }
  .brand-mark { width: 30px; height: 30px; }
  .menu-toggle .word { display: none; }
}

main { display: block; }
.page-top { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.on-dark { color: var(--ivory); }
.bg-charcoal { background: var(--charcoal); }
.bg-aubergine { background: var(--aubergine); }
.bg-greige { background: var(--greige); }
.bg-stone { background: var(--stone); }
.bg-paper { background: var(--paper); }
.section { padding-block: clamp(80px, 11vw, 160px); }
.section--sm { padding-block: clamp(56px, 7vw, 96px); }

/* ——— home: hero ——— */
.hero { position: relative; height: min(60svh, 43.2vw); min-height: 408px; max-height: 648px; overflow: hidden; background: var(--charcoal); color: var(--ivory); }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 62% 50%; filter: brightness(1.1) saturate(1.06) contrast(1.02); animation: settle 3s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36,26,18,.46) 0%, rgba(36,26,18,.12) 30%, rgba(36,26,18,0) 50%), linear-gradient(180deg, rgba(36,26,18,.22) 0%, rgba(36,26,18,0) 16%); }
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: clamp(32px, 6vh, 64px); display: grid; justify-items: center; text-align: center; gap: 18px; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.7rem); max-width: 16ch; text-shadow: 0 1px 30px rgba(36,26,18,.25); animation: rise 1.6s .15s var(--ease) both; }
.hero h1 i { font-style: italic; }
.hero .label { animation: rise 1.6s 0s var(--ease) both; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: rise 1.6s .4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ——— home: the Editions as full-bleed panels ——— */
.collection-head { display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: clamp(64px, 8vw, 112px) clamp(36px, 4vw, 56px); }
.collection-head h2 { font-size: var(--t-h2); }
.collection-head p { max-width: 34rem; color: var(--muted); }
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-inline: 6px; }
.panel { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4.25; background: var(--taupe); color: var(--ivory); }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.panel:hover img { transform: scale(1.04); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,16,14,.62) 0%, rgba(20,16,14,.08) 40%, rgba(20,16,14,0) 100%); }
.panel .caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(22px, 2.6vw, 40px); display: grid; justify-items: center; text-align: center; gap: 10px; }
.panel h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
.panel .meta { font-family: var(--ui); font-size: var(--t-small); letter-spacing: 0.04em; color: rgba(244,240,234,.82); }
.panel .btn { margin-top: 10px; min-height: 44px; padding: 0 26px; }
/* more than three Editions: the row becomes a carousel, three at a time */
.panels--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.panels--scroll::-webkit-scrollbar { display: none; }
.panels--scroll .panel { flex: 0 0 calc((100% - 12px) / 3); scroll-snap-align: start; }
.carousel-nav { display: none; align-items: center; justify-content: center; gap: 22px; padding-top: 22px; }
.panels--scroll + .carousel-nav { display: flex; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 400 1rem var(--ui); transition: background-color .35s var(--ease), color .35s var(--ease); }
.carousel-btn:hover { background: var(--ink); color: var(--ivory); }
@media (max-width: 899px) {
  .panels, .panels--scroll { display: flex; gap: 10px; padding: 0 var(--gr) 8px var(--gl); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .panels::-webkit-scrollbar { display: none; }
  .panel, .panels--scroll .panel { flex: 0 0 82%; scroll-snap-align: center; }
  .carousel-nav { display: flex; padding-top: 18px; }
  .carousel-btn { display: none; }
}
.swipe-hint { display: flex; justify-content: center; gap: 8px; }
.swipe-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color .3s; }
.swipe-hint i.is-on { background: var(--ink); }

/* ——— manifesto (Aman-like room) ——— */
.room { display: grid; justify-items: center; text-align: center; gap: 28px; }
.room h2 { font-size: var(--t-h2); max-width: 19ch; }
.room h2 i { font-style: italic; }
.room .lead { font-size: var(--t-lead); line-height: 1.5; max-width: 40rem; }
.room p { max-width: var(--measure); }
.room .muted { color: var(--muted); }
.on-dark.room .muted, .on-dark .room .muted { color: var(--mist); }
.medallion { width: 112px; height: auto; }

/* ——— featured Edition ——— */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.feature-media { position: relative; min-height: 640px; overflow: hidden; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-text { display: flex; align-items: center; justify-content: center; padding: clamp(64px, 8vw, 128px) var(--gr) clamp(64px, 8vw, 128px) var(--gl); }
.feature-text .inner { max-width: 30rem; display: grid; gap: 24px; justify-items: start; }
.feature-text h2 { font-size: var(--t-h2); }
.feature-text .sub { font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--mist); }
.feature-text p { color: rgba(244,240,234,.86); }
.included { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-family: var(--ui); font-size: var(--t-small); letter-spacing: 0.02em; color: var(--mist); width: 100%; }
.feature .price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; }
.price { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.01em; font-variant-numeric: lining-nums tabular-nums; }
.price small { font-family: var(--ui); font-size: var(--t-micro); letter-spacing: 0.18em; margin-right: 8px; vertical-align: 0.35em; }
@media (max-width: 899px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 0; aspect-ratio: 4 / 5; }
  .feature-text { padding: 56px var(--gr) 72px var(--gl); }
}

/* ——— split (premise) ——— */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-media { position: relative; min-height: 600px; overflow: hidden; background: var(--charcoal); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.split-text { display: flex; align-items: center; padding: clamp(64px, 8vw, 128px) var(--gr) clamp(64px, 8vw, 128px) clamp(32px, 6vw, 112px); }
.split-text .inner { max-width: 32rem; display: grid; gap: 24px; }
.split-text h2 { font-size: var(--t-h2); }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 0; aspect-ratio: 4 / 3; }
  .split-text { padding: 56px var(--gr) 72px var(--gl); }
}

/* ——— country ——— */
.country .closing-unused { font-family: var(--display); font-style: italic; font-size: var(--t-h3); line-height: 1.35; max-width: 26ch; }

/* ——— correspondence ——— */
.letter { display: grid; justify-items: center; text-align: center; gap: 22px; }
.letter h2 { font-size: var(--t-h2); }
.letter p { color: var(--muted); max-width: 32rem; }
.letter form { width: 100%; max-width: 30rem; }
.field-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 5px 5px 5px 24px; }
.field-row input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1rem var(--ui); color: var(--ink); padding: 12px 0; outline: none; }
.field-row input::placeholder { color: var(--muted); }
.field-row .btn { min-height: 44px; padding: 0 22px; }
.form-note { font-family: var(--ui); font-size: var(--t-micro); letter-spacing: 0.02em; color: var(--muted); margin-top: 14px; min-height: 1.6em; line-height: 1.6; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-note[data-state="ok"] { color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ——— inner page heads ——— */
.page-head { display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: clamp(64px, 9vw, 128px) clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: var(--t-h1); max-width: 16ch; }
.page-head .lead { font-size: var(--t-lead); line-height: 1.5; max-width: 38rem; color: var(--muted); }

/* ——— Editions listing ——— */
.grid { --cols: 3; --gap: clamp(16px, 2vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(48px, 5vw, 72px) var(--gap); }
.grid > * { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (max-width: 999px) { .grid { --cols: 2; } }
@media (max-width: 599px) { .grid { --cols: 1; } }
.tile { display: grid; gap: 18px; align-content: start; text-align: center; }
.tile .frame { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--taupe); }
.tile .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.tile:hover .frame img { transform: scale(1.035); }
.tile h2, .tile h3 { font-size: var(--t-h3); }
.tile .sub { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--muted); line-height: 1.55; max-width: 26rem; margin-inline: auto; }
.tile .meta { font-family: var(--ui); font-size: var(--t-small); letter-spacing: 0.04em; color: var(--muted); }
.tile .actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* ——— product page ——— */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.product-media { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px)); min-height: 560px; overflow: hidden; background: var(--taupe); }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.buy { padding: clamp(40px, 5vw, 80px) var(--gr) clamp(40px, 5vw, 72px) clamp(28px, 4vw, 72px); display: grid; gap: 22px; }
.crumbs { font-family: var(--ui); font-size: var(--t-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.buy h1 { font-size: clamp(2.1rem, 1.5rem + 1.9vw, 3.2rem); }
.buy .sub { font-family: var(--display); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--muted); }
.buy .price { font-size: 2rem; }
.buy .actions { display: grid; gap: 10px; }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: var(--ui); font-size: var(--t-small); color: var(--muted); }
.assure li { display: flex; gap: 12px; align-items: center; }
.assure svg { flex: none; width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.2; }
.buy .note { font-family: var(--ui); font-size: var(--t-micro); line-height: 1.7; color: var(--muted); letter-spacing: 0.01em; }
.buy .note a { text-decoration: underline; text-underline-offset: 3px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; font-family: var(--ui); font-size: var(--t-small); font-weight: 500; letter-spacing: 0.04em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-weight: 400; font-size: 1.1rem; line-height: 1; transition: transform .35s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .a { padding-bottom: 20px; display: grid; gap: 12px; color: #3A3631; font-size: 1.12rem; }
.acc .a ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.acc .a a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .product { grid-template-columns: 1fr; }
  .product-media { position: relative; top: auto; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .buy { padding: 36px var(--gr) 48px var(--gl); }
}

/* the long read on a product page */
.read { display: grid; justify-items: center; gap: 26px; }
.read .opening { font-family: var(--display); font-size: var(--t-lead); line-height: 1.5; max-width: 38rem; text-align: center; }
.read .body { max-width: var(--measure); display: grid; gap: 22px; color: #34302C; }
.read h2 { font-size: var(--t-h3); text-align: center; margin-top: 18px; }
.learn { list-style: none; margin: 0; padding: 0; max-width: 40rem; width: 100%; counter-reset: l; }
.learn li { counter-increment: l; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.learn li:last-child { border-bottom: 1px solid var(--line); }
.learn li::before { content: counter(l, upper-roman); font-family: var(--display); font-style: italic; color: var(--muted); font-size: 1.05rem; padding-top: 2px; }
.quote { font-family: var(--display); font-style: italic; font-size: var(--t-h3); line-height: 1.4; text-align: center; max-width: 30ch; }
.notice { font-family: var(--ui); font-size: var(--t-micro); line-height: 1.75; color: var(--muted); max-width: 40rem; text-align: center; letter-spacing: 0.01em; }
.notice a { text-decoration: underline; text-underline-offset: 3px; }

/* sticky purchase bar (phones) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--paper); border-top: 1px solid var(--line);
  padding: 12px var(--gr) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gl); display: none; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(110%); transition: transform .5s var(--ease); }
.buybar.is-visible { transform: none; }
.buybar .t { display: grid; gap: 2px; min-width: 0; }
.buybar .t b { font-family: var(--display); font-weight: 400; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .t span { font-family: var(--ui); font-size: var(--t-micro); color: var(--muted); letter-spacing: 0.06em; }
.buybar .btn { min-height: 46px; padding: 0 24px; }
@media (max-width: 899px) { .buybar { display: flex; } }

/* ——— philosophy (night room) ——— */
.philo { display: grid; justify-items: center; gap: 30px; text-align: center; }
.philo .medallion { width: 150px; }
.philo h1 { font-size: var(--t-h1); }
.philo .motto { font-family: var(--display); font-style: italic; font-size: var(--t-h3); line-height: 1.4; }
.philo-body { max-width: 42rem; margin-inline: auto; display: grid; gap: 28px; color: rgba(244,240,234,.9); font-size: clamp(1.22rem, 1.1rem + 0.45vw, 1.45rem); line-height: 1.65; }
.philo-body em { font-style: italic; color: var(--ivory); }
.philo-body .aside { font-family: var(--display); font-style: italic; text-align: center; font-size: var(--t-h3); line-height: 1.4; color: var(--ivory); padding-block: 8px; }
.philo-body .sign { text-align: center; }
.ety { display: grid; justify-items: center; gap: 18px; text-align: center; }
.ety .greek { font-family: var(--display); font-style: italic; font-size: 2.6rem; }
.ety p { max-width: 34rem; color: var(--mist); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; max-width: 64rem; margin-inline: auto; }
.pillars > div { display: grid; gap: 14px; text-align: center; }
.pillars h3 { font-size: var(--t-h3); font-style: italic; }
.pillars p { color: var(--muted); }
@media (max-width: 699px) { .pillars { grid-template-columns: 1fr; } }

/* ——— legal & plain pages ——— */
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
.legal nav { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 10px; font-family: var(--ui); font-size: var(--t-small); }
.legal nav a { color: var(--muted); }
.legal nav a[aria-current="page"], .legal nav a:hover { color: var(--ink); }
.legal-body { max-width: 44rem; display: grid; gap: 16px; color: #34302C; font-size: 1.18rem; }
.legal-body h2 { font-size: 1.5rem; margin-top: 26px; color: var(--ink); }
.legal-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }
.legal-body .updated { font-family: var(--ui); font-size: var(--t-micro); letter-spacing: 0.08em; color: var(--muted); }
.spec { display: grid; border-top: 1px solid var(--line); margin: 0; }
.spec > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--ui); font-size: var(--t-micro); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.spec dd { margin: 0; }
.todo { background: #EADFB8; color: #4A3A10; padding: 0 6px; font-family: var(--ui); font-size: 0.85em; }
@media (max-width: 899px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; grid-template-columns: 1fr 1fr; } .spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px clamp(40px, 7vw, 120px); align-items: start; }
.contact-grid .info { display: grid; gap: 20px; color: var(--muted); }
.contact-grid .email { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); color: var(--ink); word-break: break-word; }
.contact-grid .info a:not(.email) { text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; gap: 24px; }
.form label { display: grid; gap: 8px; font-family: var(--ui); font-size: var(--t-micro); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select { font: 400 1rem var(--ui); letter-spacing: normal; text-transform: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px; outline: none; transition: border-color .35s var(--ease); }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); }
.form .consent { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0.01em; font-weight: 400; font-size: var(--t-small); line-height: 1.6; }
.form .consent input { margin-top: 3px; accent-color: var(--ink); }
.form .consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { font-family: var(--ui); font-size: var(--t-small); color: var(--muted); min-height: 1.6em; }
.form-status[data-state="ok"] { color: var(--ink); }
.form-status[data-state="error"] { color: #8A2E22; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

/* ——— footer ——— */
.site-footer { background: var(--charcoal); color: var(--ivory); padding-top: clamp(64px, 8vw, 104px); padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer-brand { display: grid; justify-items: center; gap: 18px; text-align: center; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { width: 76px; height: auto; }
.footer-brand .wordmark { font-size: 1.4rem; }
.footer-brand .italic { color: var(--mist); font-size: 1.2rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-col { display: grid; gap: 12px; align-content: start; font-family: var(--ui); font-size: var(--t-small); }
.footer-col .label { color: var(--ivory); margin-bottom: 6px; }
.footer-col a { color: var(--mist); width: fit-content; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-top: 28px; font-family: var(--ui); font-size: var(--t-micro); line-height: 1.8; letter-spacing: 0.02em; color: var(--mist); }
.footer-bottom .disclaimer { max-width: 46rem; }
@media (max-width: 699px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > :last-child { grid-column: 1 / -1; } }
.has-buybar .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { .has-buybar .site-footer { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); } }

.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 899px) { .hero { height: 65svh; min-height: 456px; max-height: none; } }

/* ——— typographic harmony —————————————————————————————————————————————
   Three voices only: Playfair Display for headings and italic subtitles,
   Cormorant Garamond for reading, and Montserrat in tracked capitals (the
   "Fine Curated Editions" line) for every label, link and control. */
:root {
  --t-h1: clamp(2.4rem, 1.7rem + 2.6vw, 4.2rem);
  --t-h2: clamp(1.9rem, 1.5rem + 1.6vw, 3rem);
  --t-h3: clamp(1.45rem, 1.25rem + 0.7vw, 1.85rem);
  --caps: 500 0.6875rem/1.6 var(--ui);
  --caps-track: 0.22em;
}
.nav, .nav a { font: var(--caps); letter-spacing: var(--caps-track); text-transform: uppercase; }
.btn { font: var(--caps); letter-spacing: 0.2em; text-transform: uppercase; padding: 0 30px; }
.link { font: var(--caps); letter-spacing: var(--caps-track); text-transform: uppercase; }
.crumbs, .form label, .acc summary, .buybar .t span, .price small, .menu-toggle .word { font: var(--caps); letter-spacing: var(--caps-track); text-transform: uppercase; }
.acc summary { padding-block: 20px; }
.acc summary::after { font: 300 1.1rem/1 var(--ui); letter-spacing: 0; }
.form .consent { font: 400 var(--t-small)/1.6 var(--ui); letter-spacing: 0.01em; text-transform: none; }
.field-row button.btn { padding: 0 22px; }
.panel h3 { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); }
.tile h2, .tile h3 { font-size: var(--t-h3); }
.buy h1 { font-size: clamp(2.1rem, 1.6rem + 1.6vw, 3rem); }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.5rem); }
.mobile-menu nav a { font-size: 1.75rem; }
.footer-brand .italic { font-family: var(--display); font-style: italic; font-size: 1.05rem; }
.feature-text .sub, .tile .sub, .buy .sub { font-family: var(--display); font-style: italic; }
.social { display: inline-flex; align-items: center; gap: 12px; color: var(--mist); transition: color .3s var(--ease); }
.social:hover { color: var(--ivory); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.social--light { color: var(--muted); }
.social--light:hover { color: var(--ink); }
.letter { grid-template-columns: minmax(0, 1fr); }
.field-row input { width: 0; }
/* the Premise alternates with the featured Edition above it: text left, photograph right */
@media (min-width: 900px) {
  .split .split-media { order: 2; }
  .split .split-text { justify-content: flex-end; padding: clamp(64px, 8vw, 128px) clamp(32px, 6vw, 112px) clamp(64px, 8vw, 128px) var(--gl); }
}
