@font-face {
  font-family: 'Open Sans';
  src: url('./open-sans-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Prata';
  src: url('./prata-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #0b0b0b;
  --graphite: #2e2e2e;
  --champagne: #d9d4c9;
  --platinum: #f1f1f1;
  --white: #fff;
  --line: #d9d4c9;
  --muted: #595650;
  --title: 'Prata', Georgia, serif;
  --body: 'Open Sans', system-ui, sans-serif;
  --page: min(100% - 48px, 1280px);
  background: var(--platinum);
  color: var(--black);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 280px; margin: 0; }
main { min-height: 52vh; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--title); font-weight: 400; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.site-footer :focus-visible, .hero-copy :focus-visible { outline-color: var(--champagne); }
.frame { width: var(--page); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 14px; top: 8px; z-index: 6; transform: translateY(-150%); padding: 10px 16px; background: var(--white); }
.skip-link:not(:focus) { opacity: 0; pointer-events: none; }
.skip-link:focus { transform: none; }
.no-script { padding: 32px 0; }

.site-header { background: var(--platinum); border-bottom: 1px solid #e0ded9; }
.site-header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; min-height: 48px; flex: none; }
.wordmark img { width: 140px; height: auto; }
.top-navigation { display: flex; align-items: center; gap: 14px; }
.top-navigation a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.top-navigation a:hover, .footer-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.top-navigation .styles-link { display: none; }
.saved-link { font-size: .8rem; }
.heart { font-family: Arial, sans-serif; font-size: 1.52rem; line-height: 1; }
.saved-count { display: grid; place-items: center; min-width: 20px; min-height: 20px; padding: 0 4px; background: var(--champagne); font-size: .7rem; }

.hero { display: flex; flex-direction: column; background: var(--black); color: var(--platinum); }
.hero-image { order: -1; display: block; overflow: hidden; background: var(--champagne); }
.hero-image img { width: 100%; height: clamp(260px, 76vw, 424px); object-fit: cover; object-position: 52% 66%; }
.hero-copy { width: var(--page); margin-inline: auto; padding: 29px 0 32px; }
.hero h1 { font-size: clamp(30px, 8.2vw, 47px); line-height: 1.14; letter-spacing: -.045em; }
.hero-copy p { margin-top: 14px; color: var(--champagne); max-width: 32ch; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; padding: 10px 17px; border: 1px solid var(--black); background: var(--black); color: var(--platinum); text-align: center; }
.button:hover { background: var(--graphite); }
.button-light { background: var(--champagne); border-color: var(--champagne); color: var(--black); }
.button-light:hover { background: var(--platinum); border-color: var(--platinum); }
.button-secondary { color: var(--black); background: transparent; border-color: var(--line); }
.button-secondary:hover { background: var(--champagne); border-color: var(--black); }
.hero-cta { min-width: 183px; gap: 23px; margin-top: 20px; }

.style-section { padding-block: 36px 50px; }
.style-section h2 { font-size: clamp(27px, 7.3vw, 42px); line-height: 1.23; margin-bottom: 19px; letter-spacing: -.035em; }
#styles-title { scroll-margin-top: 24px; }
#styles-title:focus { outline: none; }
.style-grid, .ring-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
.style-card { display: block; min-width: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.style-media { display: block; background: var(--platinum); isolation: isolate; aspect-ratio: 1.12; overflow: hidden; }
.style-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 220ms ease; }
.style-card:hover img { transform: scale(1.035); }
.style-caption { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 4px 5px; padding-top: 10px; }
.style-name { font-family: var(--title); font-size: clamp(16px, 4.1vw, 21px); line-height: 1.27; letter-spacing: -.03em; }
.style-arrow { font-size: .9rem; line-height: 1.4; }
.style-description { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; line-height: 1.4; }

.catalog-page { padding-block: 19px 55px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: .9rem; }
.collection-intro { padding: 7px 0 23px; }
.collection-intro h1, .product-info h1 { font-size: clamp(30px, 8vw, 46px); line-height: 1.15; letter-spacing: -.035em; }
.collection-intro p { color: var(--muted); margin-top: 9px; }
.ring-grid { row-gap: 25px; }
.ring-card { min-width: 0; }
.ring-image { position: relative; background: var(--platinum); isolation: isolate; aspect-ratio: 1; overflow: hidden; }
.ring-image .photo-link { position: absolute; inset: 0; display: block; }
.ring-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity 170ms ease; }
.ring-image .upright { opacity: 0; }
.ring-card.show-upright .upright { opacity: 1; }
.ring-card.show-upright .flat { opacity: 0; }
.angle-button { position: absolute; z-index: 1; bottom: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 5px; background: var(--platinum); color: var(--graphite); border: 1px solid var(--line); border-radius: 50%; font-size: 1.08rem; }
.angle-button:active { background: var(--champagne); }
.ring-name { display: inline-block; font-size: .89rem; line-height: 1.35; margin: 10px 0 3px; }
.ring-name:hover { text-decoration: underline; text-underline-offset: .22em; }
.ring-caption { font-size: .76rem; color: var(--muted); }
.collection-more { display: grid; justify-items: center; gap: 10px; margin-top: 29px; color: var(--muted); font-size: .82rem; }
.collection-more .button { min-width: 155px; }
.empty-state { padding: 14px 0 38px; }
.empty-state p { margin-bottom: 17px; }

.product-page { padding-block: 17px 56px; }
.product-page .back-link { margin-bottom: 6px; }
.product-layout { display: grid; gap: 23px; }
.product-photo { display: grid; place-items: center; background: var(--platinum); isolation: isolate; aspect-ratio: 1; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pose-picker { display: flex; justify-content: center; gap: 8px; padding-top: 8px; }
.pose-picker button { min-height: 44px; padding: 5px 13px; border: 1px solid transparent; background: transparent; color: var(--graphite); font-size: .85rem; }
.pose-picker button[aria-pressed='true'] { border-color: var(--black); }
.product-sku { margin-bottom: 8px; color: var(--muted); font-size: .76rem; letter-spacing: .08em; }
.product-description { color: var(--graphite); margin: 13px 0 20px; max-width: 45ch; }
.metal-picker { margin: 0 0 19px; padding: 0; border: 0; min-width: 0; }
.metal-picker legend { margin-bottom: 7px; padding: 0; }
.metal-options { display: flex; flex-wrap: wrap; gap: 7px; }
.metal-button { min-height: 44px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; color: var(--graphite); font-size: .84rem; }
.metal-button[aria-pressed='true'] { border-color: var(--black); color: var(--black); }
.metal-swatch { height: 13px; width: 13px; flex: none; border: 1px solid #9a9180; border-radius: 50%; }
.metal-swatch[data-metal-swatch='white'] { background: #e5e3df; }
.metal-swatch[data-metal-swatch='yellow'] { background: #dec079; }
.metal-swatch[data-metal-swatch='rose'] { background: #dfaa96; }
.product-info > .button { width: 100%; }
.product-info > .button-secondary { margin-top: 8px; }
.quote-details { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-details h2 { font-size: 22px; margin-bottom: 8px; }
.quote-details p { font-size: .88rem; color: var(--graphite); margin-bottom: 12px; }
.quote-details textarea { display: block; width: 100%; min-height: 135px; resize: vertical; font: inherit; font-size: 16px; padding: 10px; background: var(--white); border: 1px solid var(--line); margin-bottom: 8px; }
.quote-details .button { width: 100%; }
.copy-feedback { min-height: 20px; margin: 8px 0 0; }

.site-footer { padding: 32px 0; background: var(--black); color: var(--champagne); }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-inner img { width: 306px; height: auto; }
.footer-link { font-size: .87rem; }

@media (hover: hover) and (pointer: fine) {
  .ring-card.has-alternate:not(.manual-angle):hover .upright, .ring-card.has-alternate:not(.manual-angle):has(.photo-link:focus-visible) .upright { opacity: 1; }
  .ring-card.has-alternate:not(.manual-angle):hover .flat, .ring-card.has-alternate:not(.manual-angle):has(.photo-link:focus-visible) .flat { opacity: 0; }
}
@media (max-width: 355px) {
  :root { --page: calc(100% - 36px); }
  .saved-link { font-size: .74rem; }
  .wordmark img { width: 134px; }
  .hero-copy p { font-size: .91rem; }
  .style-name { font-size: 15px; }
}
@media (min-width: 540px) {
  .top-navigation .styles-link { display: inline-flex; }
  .top-navigation { gap: 24px; }
  .hero-image img { height: clamp(370px, 65vw, 480px); }
  .style-grid, .ring-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px 16px; }
}
@media (min-width: 760px) {
  :root { --page: min(100% - 80px, 1280px); }
  .site-header-inner { min-height: 80px; }
  .wordmark img { width: 160px; }
  .hero { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-copy { align-self: center; width: auto; margin: 0; padding: 36px 24px 36px max(40px, calc((100vw - 1280px) / 2)); }
  .hero h1 { font-size: clamp(43px, 5.1vw, 63px); }
  .hero-image { order: 0; }
  .hero-image img { height: clamp(432px, 45vw, 610px); }
  .style-section { padding-block: 57px 74px; }
  .style-section h2 { margin-bottom: 26px; }
  .catalog-page, .product-page { padding-block: 27px 70px; }
  .collection-intro { padding-bottom: 28px; }
  .product-layout { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 40px; align-items: start; }
  .product-info { padding-top: 15px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1080px) {
  .style-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 30px 20px; }
  .ring-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 36px 20px; }
  .product-layout { gap: 74px; }
  .product-info { max-width: 520px; padding-top: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }

/* Atelier: two ways to begin, then a focused design workspace. */
.hero-image img { height: clamp(235px, 65vw, 398px); object-position: center 59%; }
.hero-copy { padding-block: 23px 29px; }
.hero-copy .hero-kicker { margin: 0 0 12px; font-size: .65rem; letter-spacing: .22em; }
.hero h1 { font-size: clamp(36px, 10vw, 55px); line-height: 1.09; }
.hero-choices { display: grid; gap: 8px; margin-top: 23px; max-width: 420px; }
.hero-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px 11px; min-height: 62px; border: 1px solid #5d5a54; transition: background-color .16s ease; }
.hero-choice strong, .hero-choice small { display: block; line-height: 1.35; }
.hero-choice strong { font-weight: 400; font-size: .97rem; }
.hero-choice small { margin-top: 2px; font-size: .71rem; }
.hero-choice .choice-arrow { font-size: 1.15rem; flex: none; }
.primary-choice { background: var(--champagne); color: var(--black); border-color: var(--champagne); }
.primary-choice small { color: #444039; }
.primary-choice:hover { background: var(--platinum); }
.secondary-choice { color: var(--platinum); }
.secondary-choice small { color: #c1bcb1; }
.secondary-choice:hover { background: #262626; }
.style-page .collection-intro { padding-bottom: 18px; }
.style-page .collection-intro p, .native-page .collection-intro p { max-width: 45ch; }
.native-page { min-height: 76vh; }
.native-frame { display: block; width: 100%; height: max(570px, 76svh); border: 0; background: var(--platinum); }
.native-external { display: inline-block; margin-top: 12px; font-size: .8rem; text-decoration: underline; text-underline-offset: .24em; }
.design-layout { gap: 13px; }
.design-heading { grid-area: heading; min-width: 0; }
.design-visual { grid-area: visual; min-width: 0; }
.design-info { grid-area: settings; min-width: 0; }
.design-layout { grid-template-areas: 'heading' 'visual' 'settings'; }
.design-heading h1 { font-size: clamp(25px, 7vw, 43px); line-height: 1.13; letter-spacing: -.04em; text-wrap: balance; }
.design-eyebrow { margin: 0 0 7px; font-size: .68rem; letter-spacing: .095em; text-transform: uppercase; color: var(--muted); }
.design-cut { margin-top: 6px; color: var(--muted); font-size: .8rem; }
.design-stage { position: relative; aspect-ratio: 1.19; min-height: 225px; overflow: hidden; border: 1px solid #e2ded5; }
.design-stage img { position: absolute; inset: 0; }
.ring-viewer { position: absolute; inset: 0; }
.ring-viewer canvas { display: block; width: 100%; height: 100%; }
.viewer-badge { position: absolute; top: 10px; left: 11px; padding: 3px 7px; background: rgb(241 241 241 / .85); color: var(--muted); font-size: .68rem; }
.viewer-reset { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--platinum); color: var(--black); font-size: 1.25rem; }
.design-views { display: flex; justify-content: center; gap: 5px; padding-top: 3px; }
.design-views button { min-height: 44px; border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 4px 10px; font-size: .78rem; color: var(--muted); }
.design-views button[aria-pressed='true'] { border-color: var(--black); color: var(--black); }
.design-views button:disabled { opacity: .5; }
.viewer-hint { text-align: center; font-size: .72rem; color: var(--muted); margin: 5px 0 9px; }
.configuration-fields { display: grid; gap: 10px; }
.config-field { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
.config-field > span { font-size: .81rem; }
.config-field select { width: 100%; min-height: 48px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 0; background: var(--platinum); font: inherit; font-size: 16px; color: var(--black); }
.config-note, .estimate-note { color: var(--muted); font-size: .72rem; line-height: 1.48; }
.estimate { margin: 16px 0 13px; padding: 14px 13px 12px; background: #e8e4db; }
.estimate > p:first-child { font-size: .78rem; }
.estimate output { display: block; margin: 3px 0 5px; font-size: 1.55rem; font-family: var(--title); line-height: 1.25; }
.estimate .estimate-note { max-width: 46ch; }
.load-message { margin: 8px 0 14px; color: var(--muted); font-size: .83rem; }
.text-button { background: transparent; border: 0; padding: 0; text-decoration: underline; }
.design-info .button:disabled { opacity: .58; cursor: default; }
@media (max-width: 540px) {
  .native-page { width: 100%; }
  .native-page > :not(.native-frame) { margin-inline: 18px; }
  .native-page .collection-intro h1 { font-size: clamp(26px,7.3vw,35px); }
  .native-frame { height: max(615px, 80svh); }
}
@media (min-width: 760px) {
  .hero-copy { padding-block: 35px; }
  .hero h1 { font-size: clamp(46px, 5.35vw, 73px); }
  .hero-image img { height: clamp(455px, 45vw, 650px); }
  .hero-choice { min-height: 66px; padding-inline: 16px; }
  .hero-choices { margin-top: 30px; }
  .design-layout { grid-template-areas: 'visual heading' 'visual settings'; gap: 12px clamp(28px,5vw,74px); }
  .design-heading { padding-top: 12px; }
  .design-stage { aspect-ratio: 1.08; }
  .design-info { padding-top: 0; }
  .design-visual { position: sticky; top: 14px; }
}
.ring-viewer[data-loading] { visibility: hidden; pointer-events: none; }
