/* Layout: editorial jewellery house. Full-bleed photography, small serif type, quiet white pages. The logo's taupe and a wine accent are the only colours. */
:root {
  --white: #ffffff;
  --ink: #2a2426;
  --taupe: #998c83;
  --soft: #a59c98;
  --wine: #853953;
  --tile: #f7f5f3;
  --f-serif: "Gilda Display", "Times New Roman", serif;
  --f-sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--white); color: var(--ink); font-family: var(--f-sans); font-weight: 300; font-size: 16px; line-height: 1.75; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--white); }
.wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
@media (min-width: 800px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--wine); outline-offset: 3px; }
.cap { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--f-sans); font-weight: 400; }
h1, h2, h3, nav, .side button, .section-title a { font-family: var(--f-serif); font-weight: 400; }
.it { font-style: italic; color: var(--soft); font-size: .92rem; }
h1 { margin: 0; font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; }

/* header: menu left, logo right */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--white); color: var(--ink); transition: background .3s, color .3s; }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 1.02rem; }
nav a { opacity: .85; transition: opacity .2s, color .2s; }
nav a:hover { opacity: 1; color: var(--wine); }
nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.logo { flex: none; width: 54px; height: 54px; }
.logo img { width: 100%; height: 100%; }
body.home header { position: fixed; left: 0; right: 0; background: transparent; color: var(--white); }
body.home header nav a:hover { color: var(--white); }
body.home header.scrolled { background: var(--white); color: var(--ink); }
body.home header.scrolled nav a:hover { color: var(--wine); }
@media (max-width: 640px) { nav { gap: 2px 16px; font-size: .95rem; max-width: 260px; } .logo { width: 46px; height: 46px; } }

.page { display: none; }
.page.on { display: block; animation: in .6s ease both; }
@keyframes in { from { opacity: 0; } to { opacity: 1; } }

/* home */
.hero { background: #9d9ca2; }
/* the photo fills the first screen exactly, on desktop and phones */
.hero img { display: block; width: 100%; height: 100vh; height: 100svh; min-height: 480px; object-fit: cover; object-position: 75% 30%; }
@media (max-width: 640px) { .hero img { object-position: 80% 30%; } }
/* hero lines, set like her current site: Gilda Display for the title, Raleway Light for the line under it */
.hero { position: relative; }
.hero-text { position: absolute; inset: 0 auto 0 3.6%; width: 58%; display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 11vw, 230px); padding-top: 2vw; color: #fff; pointer-events: none; }
.hero-text p { margin: 0; text-transform: uppercase; }
.hero-title { font-family: var(--f-serif); font-size: clamp(30px, 3.4vw, 80px); line-height: 1.15; }
.hero-sub { font-family: var(--f-sans); font-weight: 300; font-size: clamp(15px, 1.9vw, 42px); line-height: 1.3; }
/* squarer desktop windows: push the photo right and let the title wrap so the text stays off the model */
@media (min-width: 641px) and (max-aspect-ratio: 13/10) and (min-aspect-ratio: 1/1) {
  .hero img { object-position: 92% 30%; }
  .hero-text { width: 44%; }
  .hero-title { font-size: clamp(30px, 4vw, 80px); }
  .hero-sub { font-size: clamp(15px, 2.1vw, 30px); }
  .hero-sub br { display: none; }
}
@media (max-width: 640px), (max-aspect-ratio: 1/1) {
  /* phones and tall windows: same layout as desktop, both lines over the grey backdrop under the model, with a soft shade for legibility */
  .hero img { min-height: 520px; object-position: 76% 30%; }
  .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(60, 58, 64, .3) 0%, rgba(60, 58, 64, 0) 18%, rgba(60, 58, 64, 0) 60%, rgba(60, 58, 64, .45) 100%); }
  .hero-text { z-index: 1; left: 18px; width: auto; right: 18px; justify-content: flex-end; gap: clamp(28px, 7svh, 64px); padding: 104px 0 44px; }
  .hero-title { font-size: 31px; text-shadow: 0 1px 14px rgba(0, 0, 0, .18); }
  .hero-sub { font-size: 15px; max-width: 30ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .2); }
  .hero-sub br { display: none; }
}


.section { padding-block: clamp(56px, 8vw, 110px); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-title a { color: var(--soft); }
.section-title a:hover { color: var(--wine); }

.colls { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 40px) clamp(14px, 2vw, 28px); }
@media (min-width: 640px) { .colls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .colls { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.coll { display: grid; gap: 12px; align-content: start; }
.coll .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--white); position: relative; border: 1px solid #f0ece9; }
.coll .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease, scale 1.2s ease; }
.coll .ph .reveal { opacity: 0; }
.coll .ph .reveal.contain { object-fit: contain; padding: 8%; background: var(--white); }
@media (hover: hover) { .coll:hover .ph .reveal { opacity: 1; } .coll:hover .ph img { scale: 1.03; } }
.coll .t { display: grid; gap: 2px; }
.coll .cap { color: var(--ink); }

/* collections page: big alternating pairs */
.coll-row { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2vw, 28px); padding-block: clamp(40px, 6vw, 80px) 0; }
@media (min-width: 800px) { .coll-row { grid-template-columns: 1fr 1fr; } }
.coll-row .ph { aspect-ratio: 3 / 4; overflow: hidden; background: var(--tile); }
.coll-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.coll-row .t { grid-column: 1 / -1; display: grid; gap: 2px; }
.coll-row.single .ph:first-child { grid-column: 1; }

/* shop: sidebar + grid */
.shop { display: grid; grid-template-columns: 1fr; gap: 24px; padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 110px); }
@media (min-width: 800px) { .shop { grid-template-columns: 150px 1fr; gap: 40px; } }
.side { display: grid; gap: 2px; align-content: start; position: sticky; top: 110px; }
.side button { font: inherit; font-family: var(--f-serif); font-size: 1rem; text-align: left; background: none; border: 0; padding: 0; color: var(--soft); cursor: pointer; }
.side button:hover { color: var(--ink); }
.side button[aria-pressed="true"] { color: var(--ink); }
/* phones: one swipeable row of small-caps categories, kept under the header while scrolling */
@media (max-width: 799px) {
  .side { position: sticky; top: var(--hh, 82px); z-index: 5; display: flex; flex-wrap: nowrap; gap: 22px; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding: 12px 18px; background: var(--white); border-bottom: 1px solid #f0ece9; }
  .side button { flex: none; transform: translate3d(var(--dx, 0px), 0, 0); will-change: transform; }
  .side::-webkit-scrollbar { display: none; }
  .side button { flex: none; font-family: var(--f-sans); font-weight: 400; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid transparent; }
  .side button[aria-pressed="true"] { color: var(--wine); border-bottom-color: var(--wine); }
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px) clamp(14px, 2vw, 28px); }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.item { display: grid; gap: 10px; align-content: start; }
.item[hidden] { display: none !important; }
.item .ph { aspect-ratio: 4 / 5; background: var(--white); display: grid; place-items: center; overflow: hidden; border: 1px solid #f0ece9; }
.item .ph img { width: 86%; height: 86%; object-fit: contain; transition: scale 1s ease; }
.item:hover .ph img { scale: 1.05; }
.item .t { display: grid; gap: 0; }
.item .it a:hover { color: var(--wine); }

/* text pages */
.text-page { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 80px); padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 110px); }
@media (min-width: 900px) { .text-page { grid-template-columns: 1fr 1fr; align-items: start; } }
.text-page > * { min-width: 0; }
.text-page .ph img { width: 100%; height: auto; }
.about-ph { display: grid; gap: clamp(10px, 1.4vw, 18px); }
.about-ph .pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.about-ph .pair img { aspect-ratio: 1; object-fit: cover; }
/* phones: the two small photos move below the text */
@media (max-width: 899px) { .about-ph { display: contents; } .about-ph .pair { order: 3; } .about-ph > img, .about-ph .pair { margin-inline: -18px; } .text-page .about-ph > img { width: calc(100% + 36px); max-width: none; } }
@media (min-width: 800px) and (max-width: 899px) { .about-ph > img, .about-ph .pair { margin-inline: -40px; } .text-page .about-ph > img { width: calc(100% + 80px); } }
.text-page .body { display: grid; gap: 18px; max-width: 62ch; }
@media (min-width: 900px) { .text-page .body { position: sticky; top: 110px; } }

/* contact */
.contact { display: grid; gap: clamp(36px, 5vw, 80px); padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 110px); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; } }
.c-info { display: grid; gap: 22px; align-content: start; }
.c-info .note { max-width: 52ch; color: var(--soft); margin: 0; }
.c-list { margin: 8px 0 0; border-top: 1px solid #f0ece9; }
.c-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 4px 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid #f0ece9; }
.c-list dt { color: var(--soft); }
.c-list dd { margin: 0; font-family: var(--f-serif); font-size: 1.25rem; overflow-wrap: anywhere; }
.c-list a:hover { color: var(--wine); }
.c-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.c-social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #e6dfdb; border-radius: 50%; color: var(--ink); transition: color .25s, border-color .25s, background .25s; }
.c-social a:hover { color: var(--white); background: var(--wine); border-color: var(--wine); }
.c-social svg { width: 21px; height: 21px; }
@media (max-width: 520px) { .c-list > div { grid-template-columns: 1fr; } }
/* map: black and white, with Google's place card cropped off the top */
.c-map { position: relative; overflow: hidden; min-height: 360px; background: var(--tile); border: 1px solid #f0ece9; }
@media (min-width: 900px) { .c-map { min-height: 560px; } }
.c-map iframe { position: absolute; left: 0; top: -120px; width: 100%; height: calc(100% + 240px); border: 0; filter: grayscale(1) contrast(1.05); }

footer { padding-block: 30px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--soft); }
footer .cap { color: var(--soft); }


/* hamburger (phones) */
.burger { display: none; background: none; border: 0; padding: 8px 0; color: inherit; cursor: pointer; font: inherit; align-items: center; gap: 10px; }
.burger span { display: block; width: 24px; height: 1px; background: currentColor; box-shadow: 0 7px 0 currentColor; margin-bottom: 7px; }
.menu { position: fixed; inset: 0; z-index: 50; background: var(--white); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.menu[hidden] { display: none; }
.menu .bar { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; }
.menu .close { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 1.05rem; color: var(--ink); cursor: pointer; }
.menu nav { display: grid; align-content: center; gap: 10px; font-size: 2.4rem; line-height: 1.15; max-width: none; }
.menu nav a { opacity: 1; }
.menu nav a[aria-current="page"] { color: var(--wine); }
.menu .foot { padding-block: 24px; }
@media (max-width: 760px) {
  header nav.main { display: none; }
  .burger { display: inline-flex; }
}
body.menu-open { overflow: hidden; }

/* collection page */
.c-head { display: grid; grid-template-columns: 1fr; gap: 20px; padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .c-head { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; } }
.c-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.c-head .sub { font-family: var(--f-serif); color: var(--soft); font-size: 1.1rem; margin-top: 6px; }
.c-head .txt { display: grid; gap: 14px; max-width: 60ch; }
.c-head .txt .q { font-style: italic; }
.lookbook { display: grid; gap: clamp(16px, 3vw, 40px); justify-items: center; padding-bottom: clamp(56px, 8vw, 110px); }
.lookbook img { width: 100%; max-width: 1400px; height: auto; }
.c-pieces-title { padding-bottom: clamp(20px, 3vw, 32px); }
.c-nav { display: flex; justify-content: space-between; gap: 16px; padding-block: clamp(40px, 6vw, 80px) 0; flex-wrap: wrap; }
.c-nav a { font-family: var(--f-serif); color: var(--soft); }
.c-nav a:hover { color: var(--wine); }
.coll .ph.contain img, .coll-row .ph.contain img { object-fit: contain; padding: 12%; background: var(--white); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* product page: fills the screen below the header, no page scroll */
body.product-view { overflow: hidden; }
body.product-view footer { display: none; }
.page[data-page="product"].on { animation: none; }
.product { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; height: calc(100svh - var(--hh, 90px)); padding-block: 4px 18px; }
@media (min-width: 900px) { .product { grid-template-rows: none; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: 8px 32px; } }
.gallery { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.track { border: 1px solid #f0ece9; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--tile); outline: none; min-height: 0; height: 100%; }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.track img.contain { object-fit: contain; padding: 7%; background: var(--white); }
.g-btn { position: absolute; top: calc(50% - 14px); translate: 0 -50%; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 2px 14px rgba(42, 36, 38, .22); cursor: pointer; transition: color .2s, scale .2s; }
.g-btn svg { width: 20px; height: 20px; }
.g-btn.prev { left: 14px; } .g-btn.next { right: 14px; }
.g-btn:hover { color: var(--wine); scale: 1.06; }
.g-btn[hidden] { display: none; }
@media (max-width: 899px) { .g-btn { width: 42px; height: 42px; } .g-btn.prev { left: 10px; } .g-btn.next { right: 10px; } }
.dots { display: flex; justify-content: center; gap: 10px; padding-top: 12px; min-height: 28px; }
.dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #cfc6c1; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--wine); }
.p-info { display: grid; gap: 12px; align-content: start; }
@media (min-width: 900px) { .p-info { gap: 20px; align-content: center; } }
.p-info .back { font-family: var(--f-sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.p-info .back::before { content: "\2190\00a0\00a0"; }
.p-info .back:hover { color: var(--wine); }
.p-info h1 { font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.1; margin: 0; }
.p-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; margin: 0; }
.p-info dt { font-family: var(--f-sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); padding-top: .3em; }
.p-info dd { margin: 0; }
.p-info dd a:hover { color: var(--wine); }
.p-info #p-details p { margin: 0; }
.p-info .ask { justify-self: start; padding: 13px 26px; border: 1px solid var(--wine); color: var(--wine); font-family: var(--f-sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; transition: background .3s, color .3s; }
.p-info .ask:hover { background: var(--wine); color: var(--white); }
.p-nav { display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-serif); font-size: .95rem; }
.p-nav a { color: var(--soft); } .p-nav a:hover { color: var(--wine); }
@media (min-width: 900px) { .p-nav { padding-top: 24px; } }
@media (max-width: 899px) { .p-info .back { display: none; } }
.g-close { display: none; }
@media (max-width: 899px) { .g-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 2px 14px rgba(42, 36, 38, .22); } .g-close svg { width: 20px; height: 20px; } }
.item a.ph { color: inherit; }

/* full-screen photo viewer for product photos */
body.lb-open { overflow: hidden; }
.track img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 100; background: var(--white); display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb-stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.lb-stage img { max-width: min(92vw, 1400px); max-height: 88svh; object-fit: contain; transition: transform .25s ease; user-select: none; -webkit-user-drag: none; }
.lb-count { position: absolute; top: 26px; left: 28px; color: var(--soft); }
.lb-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.lb-close svg { width: 26px; height: 26px; }
.lb-close:hover { color: var(--wine); }
.lb-close:focus:not(:focus-visible) { outline: none; }
.lb .g-btn { top: 50%; z-index: 2; }
.lb .g-btn.prev { left: 24px; } .lb .g-btn.next { right: 24px; }
/* desktop magnifier: click to zoom in, move the mouse to look around, click again to zoom out */
@media (hover: hover) and (pointer: fine) {
  .lb-stage img { cursor: zoom-in; }
  .lb-stage.zoomed img { cursor: zoom-out; transform: scale(2.4); transition: transform .25s ease, transform-origin 0s; }
}
@media (max-width: 640px) { .lb .g-btn.prev { left: 10px; } .lb .g-btn.next { right: 10px; } .lb-count { top: 28px; left: 18px; } }

/* technique page: an opening film, then her text in alternating rows beside the videos */
.tech-head { padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.tech-head h1 { margin: 0; }
.tech-open { padding-inline: max(18px, env(safe-area-inset-left, 0px)); }
@media (min-width: 800px) { .tech-open { padding-inline: 40px; } }
.vid { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1d1a1b; }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vid::after { content: ""; position: absolute; inset: 0; }
.tech { display: grid; gap: clamp(56px, 9vw, 130px); padding-block: clamp(56px, 9vw, 130px); }
.tech-row { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) {
  .tech-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
  .tech-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .tech-row.flip .tech-media { order: 2; }
}
.tech-text { display: grid; gap: 18px; }
.tech-text p { margin: 0; max-width: 52ch; font-size: 1.05rem; }
.tech-row:first-child .tech-text p::first-letter { font-family: var(--f-serif); font-size: 3.4em; float: left; line-height: .9; padding: .06em .12em 0 0; color: var(--wine); }
.tech-row.text-only { grid-template-columns: minmax(0, 52ch); justify-content: center; }
.tech-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 35%; }
