/* ==========================================================================
   FEDDYS JEWELLERY INC — heritage-formal
   Graphite field, claret panels, gold rules, centered charter.
   Cormorant Garamond. Corner crest: photo, crown, diamond, hanger.
   ========================================================================== */

:root {
  --bg: #1a1c1f;
  --bg-alt: #23262b;
  --bg-deep: #101114;
  --ink: #f4efe6;
  --ink-soft: #b7b0a6;
  --ink-invert: #1c1416;
  --accent: #9a3048;
  --accent-soft: #3a1c24;
  --line: #3c4048;
  --gold: #c6a15a;
  --paper: #f6f1e8;
  --paper-ink: #1c1416;
  --paper-line: #e2d6c4;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --tracking-display: 0;
  --radius: 0;
  --radius-lg: 0;
  --container: 1080px;
  --shadow: 0 18px 40px color-mix(in srgb, var(--bg-deep) 65%, transparent);
}

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

.site-header {
  background: color-mix(in srgb, var(--bg-deep) 92%, transparent);
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}
.site-header.is-scrolled { border-bottom-color: var(--gold); }

.crest {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}
.crest__mark {
  position: relative;
  display: flex;
  height: 46px;
  flex: none;
}
.crest__mark img {
  width: 46px;
  height: 46px;
  object-fit: cover;
}
.crest__mark::before,
.crest__mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
}
.crest__mark::before {
  top: -3px;
  left: -3px;
  border-width: 1px 0 0 1px;
}
.crest__mark::after {
  right: -3px;
  bottom: -3px;
  border-width: 0 1px 1px 0;
}
.crest__icon {
  width: 46px;
  height: 46px;
  flex: none;
  background: var(--bg-deep);
}
.crest__gold { fill: var(--gold); }
.crest__ruby { fill: var(--accent); }
.crest__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}
.crest__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.crest__name span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.nav a {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.btn--primary {
  background: var(--gold);
  color: var(--ink-invert);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg-deep); }

a[href^="mailto:"] { overflow-wrap: anywhere; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-head {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}
.section-head h2 { margin-top: 0.35rem; }
.section-head .lede { margin-top: 0.8rem; }

h2 { font-weight: 500; }

.frame {
  margin: 0;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--gold);
}
.section--alt .frame { box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 7px var(--gold); }
.section--deep .frame { box-shadow: 0 0 0 6px var(--bg-deep), 0 0 0 7px var(--gold); }
.frame img { width: 100%; height: auto; object-fit: cover; }
.frame figcaption {
  padding: 0.7rem 1rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--step--1);
  color: var(--gold);
  border-top: 1px solid var(--gold);
}

/* --- HERO --- */
.hero { padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero__inner { text-align: center; }
.hero__inner h1 { margin: 0.4rem auto 1rem; max-width: 16ch; }
.hero__inner .lede { max-width: 40rem; margin-inline: auto; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.hero .frame img { aspect-ratio: 16 / 9; }

/* --- SEAL --- */
.seal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--gap);
}
.seal li {
  padding: 1.2rem 1rem 0.2rem;
  border-top: 2px solid var(--gold);
  text-align: center;
}
.seal h3 { font-weight: 500; margin-bottom: 0.45rem; color: var(--gold); }
.seal p { color: var(--ink-soft); }

/* --- VAULT --- */
.vault {
  position: relative;
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.vault__pick {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.vault__rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.vault__rail label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.vault__panel { display: none; text-align: center; }
.vault__panel .frame { margin-bottom: 1rem; }
.vault__panel img { aspect-ratio: 16 / 10; object-fit: cover; }
.vault__panel h3 { font-weight: 500; margin: 0.25rem 0 0.45rem; }
.vault__panel > p:last-child {
  max-width: 36rem;
  margin-inline: auto;
  color: var(--ink-soft);
}
.pos-scarf { object-position: 80% 40%; }
.pos-shoes { object-position: 20% 70%; }
.pos-bag { object-position: 55% 45%; }

#case-gold:checked ~ .vault__stage .vault__panel--gold,
#case-silver:checked ~ .vault__stage .vault__panel--silver,
#case-gems:checked ~ .vault__stage .vault__panel--gems,
#case-accessories:checked ~ .vault__stage .vault__panel--accessories,
#case-shoes:checked ~ .vault__stage .vault__panel--shoes,
#case-bags:checked ~ .vault__stage .vault__panel--bags,
#case-engraving:checked ~ .vault__stage .vault__panel--engraving,
#case-holds:checked ~ .vault__stage .vault__panel--holds { display: block; }

#case-gold:checked ~ .vault__rail label[for="case-gold"],
#case-silver:checked ~ .vault__rail label[for="case-silver"],
#case-gems:checked ~ .vault__rail label[for="case-gems"],
#case-accessories:checked ~ .vault__rail label[for="case-accessories"],
#case-shoes:checked ~ .vault__rail label[for="case-shoes"],
#case-bags:checked ~ .vault__rail label[for="case-bags"],
#case-engraving:checked ~ .vault__rail label[for="case-engraving"],
#case-holds:checked ~ .vault__rail label[for="case-holds"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

#case-gold:focus-visible ~ .vault__rail label[for="case-gold"],
#case-silver:focus-visible ~ .vault__rail label[for="case-silver"],
#case-gems:focus-visible ~ .vault__rail label[for="case-gems"],
#case-accessories:focus-visible ~ .vault__rail label[for="case-accessories"],
#case-shoes:focus-visible ~ .vault__rail label[for="case-shoes"],
#case-bags:focus-visible ~ .vault__rail label[for="case-bags"],
#case-engraving:focus-visible ~ .vault__rail label[for="case-engraving"],
#case-holds:focus-visible ~ .vault__rail label[for="case-holds"] {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- REGISTER --- */
.register {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: reg;
}
.register li {
  counter-increment: reg;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--bg);
  border-top: 2px solid var(--accent);
  text-align: center;
}
.register li::before {
  content: counter(reg, upper-roman);
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.12em;
}
.register h3 { font-weight: 500; margin-bottom: 0.4rem; }
.register p { color: var(--ink-soft); }

/* --- BENCH --- */
.bench {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  counter-reset: note;
}
.bench li {
  counter-increment: note;
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--gold);
}
.bench li::before {
  content: counter(note, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.bench h3 { font-weight: 500; margin-bottom: 0.35rem; }
.bench p { color: var(--ink-soft); }

/* --- HOUSE --- */
.house { text-align: center; }
.house h2 { margin: 0.35rem auto 1rem; max-width: 18ch; }
.house p { max-width: 40rem; margin-inline: auto; }
.house .frame { margin-top: 1.8rem; }
.house .frame img { aspect-ratio: 1; max-height: 520px; object-fit: cover; }

/* --- DEED --- */
.deed {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  text-align: center;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--gold);
}
.deed h2 { margin: 0.35rem 0 1.2rem; }
.deed ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.deed li { padding-top: 0.8rem; border-top: 1px solid var(--line); }
.deed h3 { font-weight: 500; color: var(--gold); margin-bottom: 0.3rem; }
.deed p { color: var(--ink-soft); }

/* --- FAQ --- */
.faq details { border-top: 1px solid var(--line); padding-block: 0.9rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: var(--step-1); font-weight: 500; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.65rem; color: var(--ink-soft); max-width: 40rem; }

/* --- CONTACT --- */
.section--ruby {
  background: var(--accent);
  color: var(--paper);
}
.section--ruby .eyebrow { color: var(--gold); }
.section--ruby .lede,
.section--ruby .contact__intro p { color: color-mix(in srgb, var(--paper) 88%, transparent); }
.contact { display: grid; gap: var(--gap); align-items: start; }
.contact__intro { text-align: center; }
.contact__intro h2 { margin: 0.3rem 0 0.7rem; }
.contact__intro address {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.2rem;
  font-style: normal;
  justify-items: center;
}
.contact__intro address strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
}
.contact__form {
  display: grid;
  gap: 1rem;
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--gold);
}
.contact__pair { display: grid; gap: 1rem; }
.contact__form .field label { color: var(--paper-ink); }
.contact__form .field input,
.contact__form .field textarea,
.contact__form .field select {
  width: 100%;
  background: var(--paper);
  color: var(--paper-ink);
  border-color: var(--paper-line);
}
.contact__form .field select {
  padding: 0.85em 1em;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
}
.contact__form .btn--primary { justify-self: center; }
.contact__form .form-status { text-align: center; color: var(--paper-ink); }

/* --- FOOTER --- */
.site-footer { background: var(--bg-deep); text-align: center; }
.foot { display: grid; justify-items: center; gap: 0.7rem; }
.foot p { color: var(--ink-soft); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem 1rem; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--gold); }
.site-footer .site-footer__bottom { justify-content: center; }

@media (min-width: 700px) {
  .contact__pair { grid-template-columns: 1fr 1fr; }
  .seal { grid-template-columns: repeat(3, 1fr); }
  .vault__rail { grid-template-columns: repeat(4, 1fr); }
  .register { grid-template-columns: 1fr 1fr; }
  .register li:last-child { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  .bench { grid-template-columns: repeat(4, 1fr); }
  .deed ol { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .house {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    text-align: left;
    align-items: center;
    gap: var(--gap);
  }
  .house h2,
  .house p { margin-inline: 0; }
  .house .frame { margin-top: 0; }
  .contact {
    grid-template-columns: 0.85fr 1.15fr;
    text-align: left;
  }
  .contact__intro { text-align: left; }
  .contact__intro address { justify-items: start; }
}

@media (max-width: 374px) {
  .crest__name { font-size: 1.15rem; letter-spacing: 0.04em; }
  .vault__rail { grid-template-columns: 1fr; }
}
