/* Ring studio: a ring configurator drawn live. The ring fills the page; choices sit in a dock along the bottom. */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-400-normal-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-500-normal-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root { --paper: #f1ebe0; --card: #fbf8f2; --ink: #1c1915; --soft: #6f695f; --line: #d8d0c2; --serif: "Cormorant Garamond", Georgia, serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 "Jost", "Helvetica Neue", Arial, sans-serif; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.rs { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }

/* the stage */
.rs-stage { position: relative; min-height: 0; overflow: hidden; }
.rs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.rs-canvas.is-held { cursor: grabbing; }
.rs-head { position: absolute; inset: 0 0 auto 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 20px; padding: 28px 44px 0; pointer-events: none; }
.rs-head > * { pointer-events: auto; }
.rs-mark { margin: 0; font: 500 27px/1 var(--serif); white-space: nowrap; }
.rs-views, .rs-tools { display: flex; gap: 30px; }
.rs-tools { justify-content: flex-end; }
.rs-head button { color: var(--soft); padding: 2px 0 5px; border-bottom: 1px solid transparent; white-space: nowrap; }
.rs-head button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.rs-head button:hover { color: var(--ink); }

.rs-sum { position: absolute; left: 44px; bottom: 34px; z-index: 2; max-width: 400px; pointer-events: none; }
.rs-sum > * { pointer-events: auto; }
.rs-sum-label { margin: 0 0 6px; color: var(--soft); }
.rs-title { margin: 0 0 12px; font: 400 clamp(32px, 3.2vw, 46px)/1.04 var(--serif); }
.rs-spec { margin: 0 0 22px; color: var(--soft); }
.rs-actions { margin: 0; }
.rs-primary { background: var(--ink); color: var(--card); padding: 14px 26px; font-weight: 500; }
.rs-primary:hover { background: #000; }
.rs-said { margin: 10px 0 0; min-height: 1.5em; font-size: 14px; color: var(--soft); max-width: 44ch; }
.rs-hint { position: absolute; right: 44px; bottom: 34px; z-index: 2; margin: 0; color: var(--soft); pointer-events: none; transition: opacity .6s; }
.rs-hint.is-gone { opacity: 0; }
.rs-fallback { position: absolute; inset: 40% 0 auto 0; margin: 0 auto; max-width: 34ch; text-align: center; color: var(--soft); padding: 0 24px; }

/* the dock */
.rs-panel { background: var(--card); border-top: 1px solid var(--line); min-width: 0; }
.rs-panes { min-height: 104px; display: grid; }
.rs-group { display: flex; align-items: center; justify-content: safe center; gap: 8px 10px; padding: 14px 44px 12px; overflow-x: auto; scrollbar-width: none; }
.rs-group::-webkit-scrollbar { display: none; }
.rs-rule { flex: none; width: 1px; height: 46px; background: var(--line); margin: 0 16px; }
.rs-sub { flex: none; margin: 0 8px 0 0; color: var(--soft); }

.rs-tiles, .rs-swatches, .rs-starts { display: flex; gap: 4px; flex: none; }
.rs-tiles button, .rs-swatches button { display: grid; justify-items: center; align-content: end; gap: 6px; min-width: 84px; padding: 8px 10px 9px; color: var(--soft); border-bottom: 1px solid transparent; white-space: nowrap; transition: color .15s; }
.rs-tiles button:hover, .rs-swatches button:hover, .rs-starts button:hover { color: var(--ink); }
.rs-tiles button[aria-pressed="true"], .rs-swatches button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.rs-tiles button[disabled] { opacity: .32; cursor: default; }
.rs-tiles svg { width: 34px; height: 34px; overflow: visible; }
.rs-tiles svg path { fill: none; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.rs-tiles svg .in { stroke-width: .65; opacity: .7; }
.rs-profiles svg { width: 46px; height: 26px; margin-bottom: 4px; }
.rs-words button, .rs-starts button { padding: 20px 14px 9px; min-width: 0; }
.rs-starts button { font: 400 22px/1 var(--serif); color: var(--soft); padding: 22px 18px; }
.rs-swatches button i { width: 26px; height: 26px; margin: 4px 0; border-radius: 50%; border: 1px solid rgba(0,0,0,.16); background: var(--c); }
#t-gem button { min-width: 50px; padding-left: 6px; padding-right: 6px; }
#t-gem button span { display: none; }
#t-gem button[aria-pressed="true"] span { display: block; }
.rs-swatches button i[style*="transparent"] { background: none; border-style: dashed; }

.rs-range { flex: none; display: grid; grid-template-columns: auto 150px 62px; align-items: center; gap: 14px; color: var(--soft); }
.rs-range output { color: var(--ink); font-variant-numeric: tabular-nums; }
.rs-range input { appearance: none; -webkit-appearance: none; width: 100%; height: 22px; background: none; margin: 0; }
.rs-range input::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
.rs-range input::-moz-range-track { height: 1px; background: var(--ink); }
.rs-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); margin-top: -6px; }
.rs-range input::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--ink); }
.rs-check { flex: none; display: flex; align-items: center; gap: 9px; margin-left: 22px; cursor: pointer; color: var(--soft); white-space: nowrap; }
.rs-check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.rs-check input:disabled + span { opacity: .4; }
.rs-write { display: grid; grid-template-columns: auto minmax(200px, 340px); align-items: center; gap: 16px; color: var(--soft); }
.rs-write input { font: 400 24px/1.2 var(--serif); color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 4px 0; min-width: 0; border-radius: 0; }
.rs-write input::placeholder { color: var(--soft); opacity: .7; }

.rs-tabs { display: flex; justify-content: safe center; gap: 40px; padding: 12px 44px 18px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.rs-tabs::-webkit-scrollbar { display: none; }
.rs-tabs button { flex: none; font: 400 22px/1 var(--serif); color: var(--soft); padding-bottom: 6px; border-bottom: 1px solid transparent; }
.rs-tabs button:hover { color: var(--ink); }
.rs-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* evening light */
.rs.is-night { --paper: #17151a; --card: #1b181f; --ink: #f1ece2; --soft: #a8a196; --line: #3a3640; background: #17151a; color: var(--ink); }
.rs.is-night .rs-primary { background: #f1ece2; color: #17151a; }
.rs.is-night .rs-swatches button i { border-color: rgba(255,255,255,.22); }

/* the presentation before the designer */
.rs-story { display: none; }
.rs.is-intro { display: block; height: auto; }
.rs.is-intro .rs-panel, .rs.is-intro .rs-views, .rs.is-intro .rs-hint, .rs.is-intro .rs-sum, .rs.is-intro #b-copy { display: none; }
.rs.is-intro .rs-stage { position: fixed; inset: 0; }
.rs.is-intro .rs-canvas { cursor: default; touch-action: pan-y; }
.rs.is-intro .rs-story { display: block; position: relative; z-index: 4; pointer-events: none; }
.rs-story section { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 12vh 44px; max-width: min(36rem, 48vw); will-change: opacity, transform; }
.rs-story section.rs-right { margin-left: auto; }
.rs-story h2 { margin: 0; font: 400 clamp(40px, 5vw, 76px)/1 var(--serif); }
.rs-story p { margin: 0; font-size: 17px; color: var(--soft); max-width: 32ch; }
.rs-story .rs-kick { color: var(--ink); }
.rs-story button { pointer-events: auto; }
.rs-scroll { display: block; margin-top: 14px; }

@media (max-width: 899px) {
  .rs-head { grid-template-columns: 1fr auto; padding: 16px 16px 0; row-gap: 8px; }
  .rs-mark { font-size: 23px; }
  .rs-views { grid-row: 2; grid-column: 1 / -1; gap: 18px; font-size: 14px; }
  .rs-tools { gap: 16px; font-size: 14px; }
  .rs-sum { left: 16px; right: 16px; bottom: 14px; max-width: none; }
  .rs-sum-label, .rs-said { display: none; }
  .rs-title { font-size: 23px; margin-bottom: 4px; max-width: 15ch; }
  .rs-spec { font-size: 13px; margin-bottom: 0; max-width: calc(100% - 170px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rs-actions { position: absolute; right: 0; bottom: 0; }
  .rs-primary { padding: 10px 14px; font-size: 14px; }
  .rs-hint { display: none; }
  .rs-group, .rs-tabs { justify-content: flex-start; padding-left: 16px; padding-right: 16px; }
  .rs-panes { min-height: 96px; }
  .rs-tiles button, .rs-swatches button { min-width: 70px; padding-left: 6px; padding-right: 6px; font-size: 14px; }
  .rs-tabs { gap: 26px; padding-top: 10px; padding-bottom: 14px; }
  .rs-tabs button { font-size: 20px; }
  .rs-story section { max-width: none; justify-content: flex-end; padding: 0 20px 7vh; gap: 12px; }
  .rs-story h2 { font-size: 38px; }
  .rs-story p { font-size: 16px; }
  .rs-story section.rs-right { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .rs-hint, .rs-tiles button { transition: none; } }
