/* ==========================================================================
   Sidereal Clocks — site.css
   A single, cohesive stylesheet for the shop-front home. Built from scratch
   (01 Nov 2026) to replace the earlier stack of overlapping sheets. The live
   square instrument keeps its own well-made instrument.css; everything else
   on the page is here.

   Palette and type carry across both skies and the live dials:
     midnight  #020716 / #060e28      gold  #f0c56a / #ffdf8f / #a47e33
     ivory     #f7f1df / #c9c3b4 / #8e887a
     Playfair Display (display serif) · IBM Plex Sans (text)
   ========================================================================== */

:root {
  --cosmic:      #020716;
  --midnight:    #060e28;
  --midnight-2:  #0a1430;
  --panel:       rgba(10, 20, 48, 0.62);
  --gold:        #f0c56a;
  --gold-light:  #ffdf8f;
  --gold-dim:    #a47e33;
  --hair:        rgba(240, 197, 106, 0.22);
  --hair-soft:   rgba(240, 197, 106, 0.12);
  --ivory:       #f7f1df;
  --ivory-muted: #c9c3b4;
  --ivory-dim:   #8e887a;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cosmic);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

::selection { background: rgba(240, 197, 106, 0.28); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--gold); color: var(--cosmic);
  padding: 0.7rem 1.1rem; font: 600 0.85rem/1 var(--sans);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Ambient sky layers --------------------------------------------------- */
.ambient-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -8%, rgba(39, 61, 128, 0.42), transparent 70%),
    radial-gradient(45% 40% at 85% 12%, rgba(240, 197, 106, 0.06), transparent 70%),
    linear-gradient(180deg, var(--cosmic) 0%, #030a1c 45%, var(--cosmic) 100%);
}
.cosmic-canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---- Shared section furniture -------------------------------------------- */
.eyebrow {
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.25rem;
}
.eyebrow.center { text-align: center; }
.rule {
  width: 2.5rem; height: 1px; border: 0; margin: 0 0 1.75rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.rule.center { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 4rem; }

.text-link {
  display: inline-flex; align-items: baseline; gap: 0.45em;
  font: 500 0.95rem/1.4 var(--sans); letter-spacing: 0.01em;
  border-bottom: 1px solid var(--hair); padding-bottom: 2px;
}
.text-link span { transition: transform 0.35s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 0.78rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1rem 1.9rem; min-height: 48px; cursor: pointer;
  border: 1px solid var(--gold); color: var(--cosmic); background: var(--gold);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--cosmic); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--gold);
}
.btn-ghost:hover { background: rgba(240, 197, 106, 0.1); color: var(--gold-light); }

/* ---- Header --------------------------------------------------------------- */
.site-bar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(2, 7, 22, 0.92), rgba(2, 7, 22, 0.55));
  border-bottom: 1px solid var(--hair-soft);
}
.site-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 1rem var(--gutter);
}
.site-mark {
  font: 500 1.15rem/1 var(--serif); letter-spacing: 0.02em; color: var(--ivory);
  white-space: nowrap;
}
.site-mark span { color: var(--gold); }
.site-mark:hover { color: var(--ivory); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font: 400 0.92rem/1 var(--sans); letter-spacing: 0.02em; color: var(--ivory-muted);
  position: relative; padding: 0.35rem 0;
}
.site-nav a:hover { color: var(--ivory); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--gold); transition: right 0.35s var(--ease);
}
.site-nav a:hover::after { right: 0; }
.site-nav-cta, .site-cta {
  border: 1px solid var(--hair); color: var(--gold) !important;
  padding: 0.6rem 1.15rem !important; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.72rem !important; font-weight: 600 !important;
}
.site-nav-cta::after, .site-cta::after { display: none; }
.site-nav-cta:hover, .site-cta:hover { background: rgba(240, 197, 106, 0.1); color: var(--gold-light) !important; }
.site-cta { display: none; }
.site-menu { display: none; }

/* ---- Hero ----------------------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid {
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.hero-copy { max-width: 36rem; }
.hero-line {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 1.6rem;
}
.hero-line em { color: var(--gold-light); font-weight: 400; }
.hero-sub { color: var(--ivory-muted); font-size: 1.12rem; max-width: 30rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; }

/* Hero stage holds the live instrument */
.hero-stage { display: grid; justify-items: center; }
.stage-frame {
  width: min(100%, 30rem);
  position: relative;
}
.stage-frame::before {
  content: ""; position: absolute; inset: -8% -8% -14%;
  background: radial-gradient(50% 50% at 50% 45%, rgba(240, 197, 106, 0.12), transparent 70%);
  z-index: -1; pointer-events: none;
}
.shop-caption {
  margin: 1.4rem auto 0; max-width: 24rem; text-align: center;
  font-size: 0.86rem; line-height: 1.6; color: var(--ivory-dim);
}
.shop-caption strong { color: var(--ivory-muted); font-weight: 500; }

/* ---- Thesis band ---------------------------------------------------------- */
.thesis { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--hair-soft); }
.thesis-inner { max-width: 44rem; margin-inline: auto; text-align: center; }
.motto {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.3; color: var(--ivory);
  margin: 0 0 1.5rem;
}
.motto::first-letter { color: var(--gold); }
.thesis-inner p.lede { font-size: 1.1rem; color: var(--ivory-muted); margin-bottom: 1.75rem; }

/* ---- Section heads -------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.01em;
}
.section-head p { color: var(--ivory-muted); margin: 1rem 0 0; font-size: 1.08rem; }

/* ---- Collection cards ----------------------------------------------------- */
.collection { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .collection { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--hair-soft);
  overflow: hidden; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover { border-color: var(--hair); transform: translateY(-4px); }
.card a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #05070d; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-pic img { transform: scale(1.04); }
.card-pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 7, 22, 0.55));
}
.card-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  font: 600 0.68rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dim); margin: 0 0 0.75rem;
}
.card-name { font-size: 1.4rem; line-height: 1.15; margin: 0 0 0.6rem; color: var(--ivory); }
.card-text { font-size: 0.96rem; color: var(--ivory-muted); margin: 0 0 1.4rem; }
.card-go {
  margin-top: auto; font: 500 0.85rem/1 var(--sans); letter-spacing: 0.06em; color: var(--gold);
  display: inline-flex; gap: 0.4em;
}
.card:hover .card-go { color: var(--gold-light); }

/* ---- How it reads --------------------------------------------------------- */
.reads { border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); }
.reads-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .reads-grid { grid-template-columns: 1fr 1fr; } }
.reads-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.reads-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: start; }
.reads-list .glyph {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border: 1px solid var(--hair); border-radius: 50%; color: var(--gold);
  font: 400 1.1rem/1 var(--serif);
}
.reads-list h3 { font-size: 1.12rem; color: var(--ivory); margin: 0 0 0.2rem; font-family: var(--sans); font-weight: 500; }
.reads-list p { margin: 0; font-size: 0.95rem; color: var(--ivory-muted); }
.reads-note {
  margin-top: 2rem; padding: 1.25rem 1.5rem; border-left: 2px solid var(--gold);
  background: rgba(10, 20, 48, 0.4); font-size: 0.95rem; color: var(--ivory-muted);
}
.reads-note strong { color: var(--ivory); font-weight: 500; }

/* ---- Made / materials ----------------------------------------------------- */
.made-figure { position: relative; overflow: hidden; border: 1px solid var(--hair-soft); }
.made-figure img { width: 100%; }
.made-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(2, 7, 22, 0.85));
  font-size: 0.85rem; color: var(--ivory-muted);
}

/* ---- Doors ---------------------------------------------------------------- */
.doors { border-top: 1px solid var(--hair-soft); }
.door-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .door-row { grid-template-columns: repeat(3, 1fr); } }
.door {
  border: 1px solid var(--hair-soft); padding: 1.75rem; display: flex; flex-direction: column;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.door:hover { border-color: var(--hair); background: rgba(10, 20, 48, 0.35); }
.door a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.door-tag { font: 600 0.68rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim); margin: 0 0 0.9rem; }
.door-title { font-family: var(--serif); font-size: 1.3rem; color: var(--ivory); margin: 0 0 0.6rem; }
.door-text { font-size: 0.95rem; color: var(--ivory-muted); margin: 0 0 1.4rem; }
.door-go { margin-top: auto; font: 500 0.85rem/1 var(--sans); color: var(--gold); display: inline-flex; gap: 0.4em; }
.door:hover .door-go { color: var(--gold-light); }

/* ---- Invite band ---------------------------------------------------------- */
.invite {
  border-top: 1px solid var(--hair-soft);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(39, 61, 128, 0.35), transparent 70%);
  text-align: center;
}
.invite .container { max-width: 44rem; }
.invite h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.12; margin: 0 0 1rem; }
.invite p { color: var(--ivory-muted); font-size: 1.1rem; margin: 0 auto 2rem; max-width: 34rem; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--hair-soft); padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem; background: rgba(2, 6, 18, 0.6); }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; align-items: start; margin-bottom: 2.5rem; }
.footer-mark { font: 500 1.2rem/1 var(--serif); color: var(--ivory); margin: 0 0 0.6rem; }
.footer-contact { font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; max-width: 34rem; }
.footer-links a { font-size: 0.92rem; color: var(--ivory-muted); }
.footer-links a:hover { color: var(--gold); }
.footer-legal { font-size: 0.8rem; line-height: 1.7; color: var(--ivory-dim); margin: 0; max-width: 60rem; }
.footer-legal a { color: var(--ivory-muted); }
.footer-legal a:hover { color: var(--gold); }

/* ---- Scroll reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-pic img, .door, .text-link span, .btn { transition: none; }
}

/* ---- Phone nav ------------------------------------------------------------ */
@media (max-width: 52rem) {
  .site-nav {
    position: fixed; inset: 3.6rem 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(2, 7, 22, 0.98); border-bottom: 1px solid var(--hair);
    padding: 0.5rem var(--gutter) 1.25rem;
    transform: translateY(-120%); transition: transform 0.4s var(--ease);
  }
  body.menu-open .site-nav { transform: translateY(0); }
  .site-nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--hair-soft); }
  .site-nav a::after { display: none; }
  .site-nav-cta { border: 1px solid var(--hair); text-align: center; margin-top: 0.75rem; }
  .site-menu {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer;
  }
  .site-menu span { height: 1.5px; background: var(--gold); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  body.menu-open .site-menu span:first-child { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .site-menu span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
}
