/* ============================================================
   ADAIA — shared visual language ("quiet moments": old money, analog film)
   Tokens cascade through every page: light by default, with
   .ad-dark bands (espresso) and .ad-onimage overlays (ivory type
   over warm scrims). Inline styles reference these variables.
   ============================================================ */

:root {
  --paper: #F1EBE1;        /* aged ivory page */
  --paper-2: #E4E0D2;      /* sage-tinted sand band */
  --tile: #E9E3D6;         /* image tile fill */
  --ink: #2B2823;          /* warm near-black (doorway shadow) */
  --ink-2: #5E5349;        /* secondary copy */
  --muted: #8C8072;        /* labels, captions */
  --accent: #A48A5E;       /* antique brass */
  --accent-2: #8A7049;     /* brass, pressed */
  --paper-rgb: 241, 235, 225;
  --ink-rgb: 43, 40, 35;
  --olive: #6B6F5B;        /* plaster wall */
  --olive-deep: #4F5345;
  --sky: #8C9EA2;          /* dusty blue */
  --clay: #B8673F;         /* terracotta, marigold */
  --olive-rgb: 107, 111, 91;
  --clay-rgb: 184, 103, 63;
  --accent-rgb: 164, 138, 94;
  --scrim: 34, 30, 25;
  --error: #A8564A;
  --ok: #5F7A5A;
}

.ad-dark {
  --paper: #26231E;
  --paper-2: #2E2A25;
  --tile: #332F29;
  --ink: #F3EEE6;
  --ink-2: #D9CFC0;
  --muted: #A8998A;
  --accent: #C3AB82;
  --accent-2: #D9C6A3;
  --paper-rgb: 38, 35, 30;
  --ink-rgb: 243, 238, 230;
  --accent-rgb: 195, 171, 130;
}

/* olive plaster wall (reference: portrait against a green wall) */
.ad-olive {
  --paper: #6B6F5B;
  --paper-2: #626653;
  --tile: #5C6050;
  --ink: #F1EBE1;
  --ink-2: #DED9CB;
  --muted: #C3C0B0;
  --accent: #D9C49C;
  --accent-2: #EADFC2;
  --paper-rgb: 107, 111, 91;
  --ink-rgb: 241, 235, 225;
  --accent-rgb: 217, 196, 156;
  color: var(--ink);
}

.ad-onimage {
  --paper: #2A2420;
  --paper-2: #322B25;
  --tile: #3A322B;
  --ink: #F6F1E8;
  --ink-2: #E6DDCF;
  --muted: #D3C8B8;
  --accent: #D8C39A;
  --accent-2: #EADCBE;
  --ink-rgb: 246, 241, 232;
  --accent-rgb: 216, 195, 154;
  --paper-rgb: 36, 31, 26;
}

.ad-dark, .ad-onimage { color: var(--ink); }
:where(.ad-dark, .ad-onimage) a { color: inherit; }

html { background: var(--paper); }
body { background: var(--paper); color: var(--ink); }

/* film grain — the soft analogue texture from the references */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: .11;
  background-image: url("grain.png");
  background-size: 160px 160px;
}

/* lifestyle photography: warm, slightly desaturated, matched grade.
   Product photography is left exactly as shot. */
.ad-life img,
.ad-life [style*="background-image"] {
  filter: saturate(.86) sepia(.08) contrast(.97) brightness(1.01);
}

/* type polish */
h1 em, h2 em, h3 em, .ad-em { font-style: italic; font-weight: 400 !important; color: var(--accent-2); }
.ad-dark h1 em, .ad-dark h2 em, .ad-onimage h1 em, .ad-onimage h2 em { color: var(--accent-2); }
::selection { background: var(--accent); color: var(--paper); }
input, textarea, select { color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); }
select option { background: var(--paper); color: var(--ink); }

/* square, hairline buttons */
a[style*="letter-spacing:.24em"], a[style*="letter-spacing:.22em"], div[style*="letter-spacing:.24em"][style*="cursor:pointer"] {
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

/* ---------- homepage split hero ---------- */
.ad-hero { position: relative; overflow: hidden; background: var(--paper); }
.ad-hero__grid {
  max-width: 1400px; margin: 0 auto; padding: 56px 40px 72px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center; min-height: calc(100vh - 72px);
}
.ad-hero__frame {
  position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 150px);
  margin-left: auto; width: 100%; max-width: 560px;
  background: var(--tile); overflow: hidden;
}
.ad-hero__frame > div { position: absolute; inset: 0; background-size: cover; background-position: center top; transition: opacity 2.6s ease-in-out; }
.ad-hero__plate { position: absolute; top: 48px; right: 0; bottom: 0; left: 52%; background: var(--paper-2); z-index: 0; }
.ad-hero__ring {
  position: absolute; width: 230px; height: 230px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .55); right: -70px; top: 36px; z-index: 2; pointer-events: none;
}
.ad-hero__meta { display: flex; gap: 48px; margin-top: 58px; padding-top: 26px; border-top: 1px solid rgba(var(--ink-rgb), .14); }
.ad-hero__meta div span:first-child { display: block; font: 500 9.5px 'Archivo', sans-serif; letter-spacing: .3em; color: var(--muted); margin-bottom: 8px; }
.ad-hero__meta div span:last-child { font: 400 16px 'Cormorant Garamond', serif; color: var(--ink); }
.ad-hero__dots { display: flex; gap: 10px; margin-top: 22px; justify-content: flex-end; }
.ad-hero__dots div { width: 34px; height: 1px; cursor: pointer; transition: background .3s; }

@media (max-width: 980px) {
  .ad-hero__grid { grid-template-columns: 1fr; gap: 40px; padding: 36px 24px 56px; min-height: 0; }
  .ad-hero__frame { margin: 0 auto; max-width: 520px; max-height: none; }
  .ad-hero__plate { left: 0; top: 60%; }
  .ad-hero__ring { right: -40px; top: -20px; width: 170px; height: 170px; }
  .ad-hero__dots { justify-content: center; }
  .ad-hero__meta { gap: 28px; flex-wrap: wrap; }
}

/* ---------- responsive guards for inline grids ---------- */
@media (max-width: 1080px) {
  .ad-cols4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 760px) {
  .ad-cols3 { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .ad-cols2 { grid-template-columns: 1fr !important; gap: 36px !important; }
  section { padding-left: 20px !important; padding-right: 20px !important; }
  section > div[style*="max-width"] { padding-left: 0 !important; padding-right: 0 !important; }
  h1 { font-size: clamp(36px, 10.5vw, 46px) !important; line-height: 1.08 !important; }
  h2 { font-size: clamp(30px, 8.6vw, 40px) !important; }
  aside[style] { position: static !important; }
  .ad-hero__grid { padding-left: 0; padding-right: 0; }
}
@media (max-width: 480px) {
  .ad-cols4 { grid-template-columns: 1fr !important; }
}

/* Birthstone / celestial page keeps its own serif labels (September fonts, Commerce Website). */

/* ============================================================
   v2 — "Imperfection can teach us perfection"
   One light, off-centre framing, something in the way, a note
   about the moment. Structural variety between sections.
   ============================================================ */

/* vignette on dark bands, like a room seen from inside */
.ad-dark, .ad-olive { position: relative; }
.ad-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 45%, rgba(0,0,0,.28) 100%); }
.ad-dark > * { position: relative; z-index: 1; }

/* moment notes under lifestyle images */
.ad-note { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; font: italic 400 14.5px/1.5 'Cormorant Garamond', serif; color: var(--muted); }
.ad-note b { flex: none; font: 500 9.5px 'Archivo', sans-serif; letter-spacing: .26em; color: var(--clay); font-style: normal; }
.ad-onimage .ad-note, .ad-dark .ad-note { color: var(--ink-2); }
.ad-onimage .ad-note b, .ad-dark .ad-note b { color: var(--accent); }

/* --- doorway hero: a lit frame seen from inside a dark room --- */
.ad-door { background: var(--paper); color: var(--ink); position: relative; overflow: hidden; }
.ad-door__grid { max-width: 1400px; margin: 0 auto; padding: 64px 40px 72px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: end; min-height: calc(100vh - 72px); }
.ad-door__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 170px); width: 100%; max-width: 600px; margin-left: auto; background: var(--tile); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04); }
.ad-door__frame > div { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transition: opacity 2.6s ease-in-out; }
.ad-door__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,.36) 100%), linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 30%); }
.ad-door__sill { display: flex; justify-content: space-between; align-items: center; max-width: 600px; margin-left: auto; padding-top: 14px; }
.ad-door__dots { display: flex; gap: 10px; }
.ad-door__dots div { width: 30px; height: 1px; cursor: pointer; transition: background .3s; }
.ad-door__copy h1 { margin: 0 0 26px; max-width: 560px; font: 400 clamp(52px, 5.8vw, 84px)/1.02 'Cormorant Garamond', serif; letter-spacing: 0; }
.ad-door__copy h1 em { color: var(--accent-2); }
.ad-door__meta { display: flex; gap: 44px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(var(--ink-rgb), .16); }
.ad-door__meta div span:first-child { display: block; font: 500 9.5px 'Archivo', sans-serif; letter-spacing: .3em; color: var(--muted); margin-bottom: 8px; }
.ad-door__meta div span:last-child { font: 400 16px 'Cormorant Garamond', serif; color: var(--ink); }

/* --- staggered rows: even columns step down, like photos pinned by hand --- */
.ad-stagger > *:nth-child(even) { transform: translateY(44px); }
.ad-stagger { padding-bottom: 44px; }

/* --- editorial split: one large frame, two small, heading overlapping the edge --- */
.ad-edit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ad-edit__big { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); display: block; }
.ad-edit__side { display: grid; gap: 28px; padding-top: 110px; }
.ad-edit__small { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--tile); display: block; }
.ad-edit__small:nth-child(2) { margin-left: 18%; }
.ad-edit__bigwrap { position: relative; }
.ad-edit__title { position: absolute; left: -24px; bottom: 96px; z-index: 3; max-width: 520px; pointer-events: none; }
.ad-edit__title h2 { margin: 0; font: 400 clamp(44px, 5vw, 72px)/1 'Cormorant Garamond', serif; color: #F6F1E8; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.ad-edit__title h2 em { color: #EADCBE; }
.ad-edit__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; z-index: 2;
  background: linear-gradient(0deg, rgba(var(--scrim), .78), rgba(var(--scrim), 0)); }
.ad-edit__label span:first-child { font: 500 11.5px 'Archivo', sans-serif; letter-spacing: .24em; color: #F6F1E8; }
.ad-edit__label span:last-child { font: 500 9.5px 'Archivo', sans-serif; letter-spacing: .22em; color: #EADCBE; white-space: nowrap; }

/* --- side-heading product layout: heading column + staggered 2-up grid --- */
.ad-side { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.ad-side__head { position: sticky; top: 110px; }
.ad-side__head h2 { margin: 0 0 18px; font: 400 clamp(40px, 4vw, 56px)/1.04 'Cormorant Garamond', serif; }
.ad-side__tabs { display: flex; flex-direction: column; gap: 10px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid rgba(var(--ink-rgb), .16); }
.ad-side__tabs span { cursor: pointer; font: 500 10.5px 'Archivo', sans-serif; letter-spacing: .26em; padding: 8px 0; display: inline-flex; gap: 14px; align-items: center; transition: color .2s; }
.ad-side__tabs span::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .5; }
.ad-side__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; padding-bottom: 72px; }
.ad-side__grid > *:nth-child(even) { transform: translateY(72px); }

/* --- bridal doorway band --- */
.ad-bridal { position: relative; overflow: hidden; }
.ad-bridal__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.ad-bridal__frame { position: relative; aspect-ratio: 4 / 5; max-width: 520px; overflow: hidden; background: var(--tile); margin-left: 8%;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.ad-bridal__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,0) 24%, rgba(0,0,0,0) 76%, rgba(0,0,0,.34)); }
.ad-bridal__name { position: absolute; right: 0; bottom: 9%; z-index: 2; pointer-events: none; text-align: right; max-width: 96%; }
.ad-bridal__name h3 { margin: 0; font: 400 clamp(40px, 4.4vw, 64px)/.98 'Cormorant Garamond', serif; color: var(--ink); text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.ad-bridal__nav { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.ad-bridal__nav div { width: 44px; height: 44px; border: 1px solid rgba(var(--ink-rgb), .35); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font: 400 17px 'Archivo', sans-serif; color: var(--ink); transition: background .2s, color .2s; }
.ad-bridal__nav div:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 1080px) {
  .ad-side { grid-template-columns: 1fr; gap: 36px; }
  .ad-side__head { position: static; }
  .ad-side__tabs { flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .ad-edit__title { left: 0; }
}
@media (max-width: 980px) {
  .ad-door__grid { grid-template-columns: 1fr; gap: 36px; padding: 36px 24px 56px; min-height: 0; }
  .ad-door__frame, .ad-door__sill { margin: 0 auto; max-width: 520px; max-height: none; }
  .ad-bridal__grid { grid-template-columns: 1fr; gap: 40px; }
  .ad-bridal__frame { margin: 0 auto; max-width: 440px; }
  .ad-bridal__name { right: 0; }
}
@media (max-width: 760px) {
  .ad-stagger > *:nth-child(even), .ad-side__grid > *:nth-child(even) { transform: none; }
  .ad-stagger, .ad-side__grid { padding-bottom: 0; }
  .ad-edit { grid-template-columns: 1fr; }
  .ad-edit__side { padding-top: 0; }
  .ad-edit__small:nth-child(2) { margin-left: 0; }
  .ad-edit__bigwrap { display: flex; flex-direction: column; }
  .ad-edit__title { position: static; order: -1; margin-bottom: 24px; }
  .ad-edit__title h2 { color: var(--ink); text-shadow: none; }
  .ad-edit__title h2 em { color: var(--accent-2); }
  .ad-side__grid { gap: 28px 14px; }
}

/* Product photography (17 Oct 2026): the standardized studio frames, including front-facing ring views, are white-backed and multiply onto whatever
   band or tile they sit on, so the piece appears to rest on the page; on-body photographs (gallery 3) are left alone. */
img[src*="product-previews/"],
img[src*="product-galleries/"]:not([src$="/3.jpg"]),
img[src*="__carat_view."],
image-slot[src*="product-previews/"],
image-slot[src*="__carat_view."] { mix-blend-mode: multiply; }
