/* Element35 site. Values from website/design/HANDOVER.md (Watch Faces design system). */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/assets/fonts/barlow-condensed-500-v2.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/assets/fonts/barlow-condensed-600-v2.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url('/assets/fonts/roboto-condensed-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url('/assets/fonts/roboto-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
/* A fallback with about the same width, so the swap moves little. */
@font-face {
  font-family: 'Barlow Fallback';
  src: local('Arial Narrow'), local('Arial');
  size-adjust: 88%;
}

:root {
  --ground: #16171a;
  --ink: #ececec;
  --muted: #9c9ea3;
  --bezel: #34363b;
  --rule: #2c2e33;
  --control-border: #4a4c52;
  --field: #1f2024;
  --soft: #b4b6bb;      /* text on the coloured bands */
  --brand: #ff6a1a;
  --accent: #ff6a1a;
  --side: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

/* Theme accents (AMOLED), for swatches, the eyebrow and the store button. */
[data-theme="ember"] { --accent: #ff6a1a; }
[data-theme="glacier"] { --accent: #3fd0ff; }
[data-theme="moss"] { --accent: #8ee04a; }
[data-theme="signal"] { --accent: #ffd400; }
[data-theme="coral"] { --accent: #ff5c77; }
[data-theme="lume"] { --accent: #e9e4c2; }  /* Møn: no colour, the lume */

/* Each face's band: 18% of its colour over #0e0f11 (canvas: tint()). */
.face[data-theme="ember"] { --band: #391f13; }
.face[data-theme="glacier"] { --band: #17323c; }
.face[data-theme="moss"] { --band: #25351b; }
.face[data-theme="signal"] { --band: #39320e; }
.face[data-theme="coral"] { --band: #391d23; }
.face[data-theme="lume"] { --band: #353531; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Barlow Condensed', 'Barlow Fallback', 'Arial Narrow', sans-serif;
  font-size: 19px;
  line-height: 1.45;
}

a { color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--side);
  padding-right: var(--side);
}

/* ---- header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.tile {
  position: relative;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
}

.tile__n {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 10px;
  font-weight: 500;
}

.wordmark {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.wordmark--small { font-size: 20px; color: var(--ink); }

.brand-35 { color: var(--brand); }

.nav { display: flex; gap: 4px; }

.nav a {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- jump bar: a chip with a small live face for each face */

.jump {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #111214;
}

.jump__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.jump__label {
  flex: none;
  margin-right: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip {
  flex: none;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 18px 6px 6px;
  border-radius: 30px;
  background: var(--field);
  border: 1px solid var(--rule);
  text-decoration: none;
}

/* The face's screen (r 227 of the 486 box) fills the 44 px circle. */
.chip__face {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 0 0 2px var(--bezel);
}

.chip__face .watch {
  position: absolute;
  left: -1.55px;
  top: -1.55px;
  width: 47.1px;
  max-width: none;
}

.chip__text { display: flex; flex-direction: column; line-height: 1.1; }
.chip__name { font-weight: 600; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.chip__kind { color: var(--muted); font-size: 14px; }

/* ---- hero */

.hero {
  padding-top: clamp(40px, 9vw, 112px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

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

h1 {
  margin: 0;
  max-width: 9em;
  font-weight: 600;
  font-size: clamp(52px, 12vw, 128px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.lead {
  margin: 24px 0 0;
  max-width: 32em;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 26px;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button--fill { background: var(--ink); color: var(--ground); }
.button--line { border: 1px solid var(--control-border); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
  margin: clamp(40px, 7vw, 72px) 0 0;
}

.stats div { display: flex; flex-direction: column; }
.stats dd { order: -1; margin: 0; font-weight: 600; font-size: clamp(36px, 6vw, 48px); line-height: 1; }

.stats dt {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-label {
  margin: 0;
  padding-bottom: 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- face: a band in a dark tint of the chosen colour */

.face {
  --band: #1b1c20;
  background: var(--band);
  transition: background 0.3s;
}

.face__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(36px, 7vw, 88px);
  padding-bottom: clamp(36px, 7vw, 88px);
}

.face__show { flex: 1 1 320px; min-width: 0; }

.face__controls {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.face__eyebrow { margin: 0; color: var(--accent); }

.face__name {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: clamp(44px, 8vw, 72px);
  line-height: 1;
  text-transform: uppercase;
}

.face__text {
  margin: 12px 0 0;
  max-width: 28em;
  color: var(--soft);
  font-weight: 500;
}

/* ---- device: the canvas's "low-key studio" (direction A). A dark card, the
   watch seen from the front (assets/img/watch-studio.svg, 640 x 640 scene), the
   live face in its 232 px screen at (204, 204), and the glass on top. The face's
   screen (r 227 of its 486 box) fills that circle. */

.studio {
  display: flex;
  justify-content: center;
  margin: clamp(24px, 5vw, 40px) 0 0;
  border-radius: 20px;
  overflow: hidden;
  background: #030304;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.device {
  position: relative;
  flex: none;
  width: min(346px, 100%);
  aspect-ratio: 1;
  background:
    url('/assets/img/watch-studio.svg') center / 100% 100% no-repeat,
    radial-gradient(circle at 50% 45%, #1c1d21 0%, #0a0a0c 55%, #030304 100%);
}

.device .preview {
  position: absolute;
  left: 30.6%;
  top: 30.6%;
  width: 38.8%;
  aspect-ratio: 1;
  clip-path: circle(46.71% at 50% 50%);
}

/* The face's own bezel is not needed in the watch. */
.device .watch > circle:first-of-type { fill: transparent; }

.device::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/img/watch-studio-glass.svg') center / 100% 100% no-repeat;
  pointer-events: none;
}

.watch {
  display: block;
  width: 100%;
  height: auto;
  font-family: 'Roboto Condensed', Roboto, 'Arial Narrow', sans-serif;
}

.views {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.views:empty { display: none; }

.caption {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 15px;
  text-align: center;
}

.panel-title {
  margin: 0;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.note { margin: 0; color: var(--soft); }

/* Venø's Custom settings, in a frame. */
.custom {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.custom[hidden], .hint[hidden] { display: none; }

.hint { margin: -16px 0 0; color: var(--soft); font-size: 16px; }

/* ---- controls */

.group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.label {
  padding: 0;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pills, .swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatches { gap: 4px; }

.group--views .pills { justify-content: center; }

.pill {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

.pill:disabled { opacity: 0.4; cursor: default; }

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 56px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--soft);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}

.swatch__dot {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--band, var(--ground)), 0 0 0 5px transparent;
}

.swatch[aria-pressed="true"] { color: var(--ink); }
.swatch[aria-pressed="true"] .swatch__dot { box-shadow: 0 0 0 3px var(--band, var(--ground)), 0 0 0 5px var(--ink); }

.selects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.select {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
}

.select__field {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--control-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}

/* ---- store */

.store-box {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin: 0;
  padding: 0 24px;
  border-radius: 28px;
  background: var(--accent);
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store--soon {
  background: transparent;
  border: 2px dashed var(--accent);
  color: var(--ink);
}

.store-box .caption { margin-top: 10px; }

/* ---- install */

.install { border-top: 1px solid var(--rule); }

.install .wrap {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 7vw, 88px);
}

.install__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1;
  text-transform: uppercase;
}

.steps {
  list-style: none;
  margin: clamp(28px, 5vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 40px);
}

.steps li { display: flex; flex-direction: column; gap: 8px; }

.steps__n {
  color: var(--brand);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
}

.steps__title {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.steps__text { color: var(--muted); font-weight: 500; }

/* ---- footer */

.footer { border-top: 1px solid var(--rule); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 32px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 16px;
}

.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__col--wide { max-width: 34em; }
.footer a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
