@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f1eee8;
  --ink: #151515;
  --muted: #6d6962;
  --line: rgba(21, 21, 21, 0.14);
  --dial: #f8f6f1;
  --well: #dedad2;
  --dial-size: clamp(25px, 4.35vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 30%, rgba(255,255,255,.8), transparent 32rem),
    var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

main {
  position: relative;
  width: min(1500px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 68px);
}

.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.035em;
  text-decoration: none;
}

.header-link {
  display: flex;
  gap: .6rem;
  align-items: center;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
}

.language-link {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.language-link:hover { color: var(--ink); }

.header-link span { transition: transform .2s ease; }
.header-link:hover span { transform: translate(2px, -2px); }

.hero {
  min-height: calc(100svh - 160px);
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(630px, 1.55fr);
  gap: clamp(42px, 6vw, 110px);
  align-items: center;
  padding: clamp(50px, 8vh, 110px) 0;
}

.intro { max-width: 490px; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 6.4vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .87;
}

h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.lede {
  max-width: 410px;
  margin: clamp(30px, 5vh, 52px) 0 30px;
  color: var(--muted);
  font-size: clamp(.88rem, 1.15vw, 1.02rem);
  line-height: 1.75;
}

.app-store-button {
  width: fit-content;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 20px 12px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 11px;
  box-shadow: 0 8px 25px rgba(21,21,21,.13);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.app-store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(21,21,21,.19);
}

.app-store-button svg { width: 26px; fill: currentColor; }
.app-store-button span { display: flex; flex-direction: column; font-size: 1rem; line-height: 1.05; }
.app-store-button small { margin-bottom: 3px; font-size: .56rem; letter-spacing: .02em; }

.clock-stage { min-width: 0; }

.stage-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.live-label { display: flex; gap: 8px; align-items: center; }
.live-label i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: #49a66d;
  box-shadow: 0 0 0 4px rgba(73,166,109,.12);
}

.clock-board {
  width: 100%;
  aspect-ratio: 14 / 6;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: clamp(2px, .34vw, 6px);
  align-items: center;
  padding: clamp(7px, 1.25vw, 19px);
  overflow: hidden;
  background: #e4e0d8;
  border: 1px solid rgba(21,21,21,.08);
  border-radius: clamp(14px, 2vw, 28px);
  box-shadow:
    0 38px 80px rgba(69,58,44,.13),
    inset 0 1px 0 rgba(255,255,255,.75);
}

.dial {
  --dial-x: 0px;
  --dial-y: 0px;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255,255,255,.95), transparent 42%),
    var(--dial);
  box-shadow:
    inset 2px 3px 5px rgba(55,46,36,.13),
    inset -2px -2px 4px rgba(255,255,255,.68),
    0 1px 1px rgba(255,255,255,.8);
  transform: translate3d(var(--dial-x), var(--dial-y), 0);
  will-change: transform;
}

.hand {
  --angle: 0deg;
  position: absolute;
  z-index: 2;
  left: calc(50% - 3.3%);
  bottom: 50%;
  width: 6.6%;
  height: 47%;
  min-width: 2px;
  border-radius: 999px 999px 2px 2px;
  background: #171717;
  box-shadow: 1px 1px 2px rgba(0,0,0,.14);
  transform: rotate(var(--angle));
  transform-origin: 50% 100%;
  will-change: transform;
}

.hand.short { height: 39%; }

.dial::after {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 7%;
  min-width: 2px;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: #171717;
  transform: translate(-50%, -50%);
}

.clock-notes {
  display: flex;
  gap: 14px 28px;
  align-items: baseline;
  justify-content: space-between;
  margin: 14px 2px 0;
}

.clock-caption {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.76rem, 1vw, .92rem);
  font-style: italic;
  white-space: nowrap;
}

.art-credit {
  order: -1;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.54rem, .72vw, .66rem);
  letter-spacing: .02em;
  line-height: 1.5;
}

.art-credit a {
  color: var(--ink);
  text-decoration-color: rgba(21,21,21,.28);
  text-underline-offset: 3px;
}

.art-credit a:hover { text-decoration-color: var(--ink); }
.art-credit span { display: inline-block; transition: transform .2s ease; }
.art-credit a:hover span { transform: translate(1px, -1px); }

footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .04em;
}

noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: .75rem;
  color: #fff;
  background: #151515;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .intro { max-width: 620px; }
  .clock-stage { width: 100%; }
}

@media (max-width: 600px) {
  main { padding: 0 16px; }
  .site-header { height: 72px; }
  .hero { min-height: auto; padding: 52px 0 70px; gap: 58px; }
  .lede { max-width: 340px; }
  .clock-board { gap: 2px; padding: 6px; border-radius: 12px; }
  .clock-notes { align-items: flex-start; flex-direction: column; }
  .clock-caption { white-space: normal; }
  footer { min-height: 86px; gap: 20px; align-items: flex-start; flex-direction: column; justify-content: center; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hand, .app-store-button, .header-link span, .art-credit span { transition: none; }
  .dial { transform: none; }
}
