:root {
  --cream: #FFF4E0;
  --paper: #FFFAF0;
  --orange: #E8531F;
  --mustard: #F2A900;
  --teal: #0E7C7B;
  --plum: #2A1B3D;
  --pink: #FF8FB1;
  --radius: 26px;
  --wrap: 1120px;
  /* soft style: hairlines and blurred shadows instead of heavy outlines */
  --line: color-mix(in srgb, var(--plum) 14%, transparent);
  --shadow: 0 16px 36px color-mix(in srgb, var(--plum) 16%, transparent);
  --shadow-sm: 0 8px 18px color-mix(in srgb, var(--plum) 14%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--plum);
  background: var(--cream);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 900; }
h3 { font-size: 1.35rem; font-weight: 600; }
.eyebrow { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--orange); margin: 0 0 14px; }
.lead { font-size: 1.2rem; max-width: 36ch; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 1.5rem; color: var(--plum); text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--orange); font-style: italic; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--plum); text-decoration: none; font-weight: 500; }
.nav a.btn-sm, .nav a.btn-sm:hover { color: #fff; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--orange); }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--plum); color: var(--cream); }
.btn-ghost { background: color-mix(in srgb, var(--paper) 55%, transparent); color: var(--plum); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--plum) 35%, transparent); }
.btn-sm { padding: 9px 20px; background: var(--orange); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--mustard); }
.hero .wrap { display: grid; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 em { color: var(--teal); font-style: italic; }
.hero .eyebrow { color: var(--plum); }
.hero-clock { width: min(440px, 88vw); justify-self: center; filter: drop-shadow(0 22px 28px color-mix(in srgb, var(--plum) 30%, transparent)); }

/* Marquee */
.marquee { background: var(--plum); color: var(--cream); overflow: hidden; white-space: nowrap; }
.marquee .track { display: inline-flex; gap: 38px; padding: 14px 0; animation: scroll 28s linear infinite; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.25rem; }
.marquee b { color: var(--mustard); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 76px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head p { margin: 8px 0 0; max-width: 46ch; }

/* Clock cards */
.cards { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.clock-card { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.clock-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px color-mix(in srgb, var(--plum) 20%, transparent); }
.clock-card .art { width: 78%; margin: 4px auto 18px; filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--plum) 22%, transparent)); }
.clock-card h3 { margin-bottom: 4px; }
.clock-card p { margin: 0 0 12px; font-size: .98rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--teal); color: #fff; padding: 4px 11px; border-radius: 999px; }

.price { font-family: "Fraunces", serif; font-weight: 900; font-size: 1.35rem; margin: 0 0 12px; }
.price span { font-family: "DM Sans", sans-serif; font-weight: 500; font-size: .85rem; opacity: .75; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chip { padding: 10px 20px; border-radius: 999px; background: var(--paper); color: var(--plum); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s ease; }
.chip:hover { transform: translateY(-2px); }

/* Features */
.features { background: var(--band, var(--teal)); color: var(--band-ink, #fff); }
.features .eyebrow { color: var(--band-accent, var(--mustard)); }
.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 38px; }
.feature { background: color-mix(in srgb, var(--band-ink, #fff) 10%, transparent); border-radius: var(--radius); padding: 26px; }
.feature .num { font-family: "Fraunces", serif; font-weight: 900; font-size: 2.4rem; color: var(--band-accent, var(--mustard)); line-height: 1; }
.feature h3 { margin: 8px 0 6px; }
.feature p { margin: 0; }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; font-family: "Fraunces", serif; font-weight: 900; margin-bottom: 12px; }
.steps strong { display: block; font-family: "Fraunces", serif; font-size: 1.2rem; margin-bottom: 4px; }

/* Split / story */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.story-clock { width: min(380px, 80vw); justify-self: center; filter: drop-shadow(0 20px 26px color-mix(in srgb, var(--plum) 28%, transparent)); }
.band-pink { background: var(--pink); }

/* CTA */
.cta { background: var(--cta, var(--orange)); color: var(--cta-ink, #fff); text-align: center; }
.cta h2 { max-width: 18ch; margin: 0 auto 14px; }
.cta .btn-primary { background: var(--cta-btn, #fff); color: var(--cta-btn-ink, var(--plum)); }
.cta p { max-width: 46ch; margin: 0 auto; }

/* Page heads & prose */
.page-head { background: var(--mustard); padding: 64px 0 52px; }
.page-head p { max-width: 52ch; margin: 14px 0 0; font-size: 1.15rem; }
.page-head .eyebrow { color: var(--plum); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.9rem; margin: 40px 0 10px; }
.prose p, .prose li { margin: 0 0 14px; }
details { background: var(--paper); border-radius: 18px; padding: 14px 20px; margin: 0 0 12px; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }
.tbc { background: color-mix(in srgb, var(--mustard) 55%, transparent); border-radius: 4px; padding: 0 6px; font-size: .92em; }
.contact-box { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); max-width: 620px; }
.contact-box .mail { font-family: "Fraunces", serif; font-weight: 900; font-size: clamp(1.3rem, 4vw, 2rem); word-break: break-all; }

/* Footer */
.site-footer { background: var(--plum); color: var(--cream); padding: 52px 0 36px; }
.site-footer a { color: var(--cream); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer .logo { color: var(--cream); }
.site-footer .logo span { color: var(--mustard); }
.site-footer h4 { margin: 0 0 10px; font-family: "Fraunces", serif; color: var(--mustard); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.fine { margin-top: 32px; font-size: .88rem; opacity: .8; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 18px; }

/* 3D mode (CONFIG.style3d or ?d3=1): clocks tilt in space and straighten on hover */
.d3 .clock-card .art { transform: perspective(700px) rotateY(-13deg) rotateX(8deg); transition: transform .4s ease; }
.d3 .clock-card:hover .art { transform: perspective(700px) rotateY(9deg) rotateX(-4deg) scale(1.05); }
.d3 .hero-clock, .d3 .story-clock { transform: perspective(1100px) rotateY(-16deg) rotateX(8deg); }

/* Palette switcher (preview tool; hide it with CONFIG.showPaletteSwitcher = false) */
.palette-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); background: #14102B; color: #fff; padding: 8px 10px; border-radius: 999px; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); font-size: .8rem; }
.palette-bar span { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 0 8px; opacity: .75; }
.palette-bar button { font: inherit; font-weight: 700; color: #fff; background: transparent; border: 2px solid transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.palette-bar button:hover { border-color: rgba(255, 255, 255, .5); }
.palette-bar button[aria-pressed="true"] { background: #fff; color: #14102B; }

@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  .btn, .clock-card { transition: none; }
}
