/* The ClaudioStat website's world (claudiostatwebsite public/assets/style.css): night, a rose glow, cream text,
   peach, orange, rose and star. Orange and red stay for pace. */
:root {
  --bg: #110a0a;
  --panel: #1b1213;
  --panel2: #231718;
  --line: rgba(255, 244, 230, 0.09);
  --line2: rgba(255, 244, 230, 0.16);
  --text: #fff4e6;
  --muted: rgba(255, 244, 230, 0.68);
  --peach: #ffb266;
  --orange: #ee7048;
  --rose: #cd3e48;
  --star: #ffc094;
  --cream: #fff4e6;
  --fast: #ff9230;
  --toofast: #ff6961;
  --sans:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
    'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(16px, 4vw, 32px);
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  overflow-x: clip;
  scrollbar-color: #45302f var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--text);
  background:
    radial-gradient(
      120% 55% at 50% -8%,
      rgba(205, 62, 72, 0.26),
      transparent 62%
    ),
    var(--bg);
  overflow-x: clip;
  caret-color: var(--orange);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* The same fine grain as the Mac app's site. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection {
  background: rgba(238, 112, 72, 0.5);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--star);
  outline-offset: 3px;
  border-radius: 6px;
}

a {
  color: var(--star);
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(255, 192, 148, 0.45);
}
a:hover {
  text-decoration-color: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.028em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
p {
  margin: 0;
}
.lead {
  color: var(--muted);
  font-size: 1.1875rem;
  max-width: 58ch;
}

.wrap {
  width: min(1120px, 100% - 2 * var(--gut));
  margin-inline: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(17, 10, 10, 0.74);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
/* Language picker: the same button and menu as claudiostat.zolfer.com. */
.langs {
  position: relative;
}
.langs summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.langs summary:hover,
.langs[open] summary {
  color: var(--text);
  background: rgba(255, 244, 230, 0.06);
}
.langs summary::-webkit-details-marker {
  display: none;
}
.langs summary > svg:first-child {
  width: 16px;
  height: 16px;
}
.langs .chev {
  width: 10px;
  height: 6px;
  transition: rotate 0.2s var(--ease);
}
.langs[open] .chev {
  rotate: 180deg;
}
.langs .code {
  display: none;
}
.langs .menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 180px;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: #2b181b;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
}
.langs .menu a {
  display: flex;
  align-items: center;
  height: 32px;
  padding-right: 22px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}
.langs .menu a:hover,
.langs .menu a:focus-visible {
  background: #c2412f;
  color: #fff;
}
.langs .ck {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
}
.langs .ck svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 520px) {
  .langs .full {
    display: none;
  }
  .langs .code {
    display: inline;
  }
}

/* The 404 page */
main.lost {
  min-height: 55vh;
  padding-top: clamp(64px, 12vw, 120px);
}
main.wrap {
  width: min(44rem, 100% - 2 * var(--gut));
  padding: 48px 0 80px;
}
main.wrap h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin-bottom: 16px;
}
main.wrap h2 {
  font-size: 1.375rem;
  margin: 40px 0 8px;
  letter-spacing: -0.015em;
}
main.wrap p + p,
main.wrap ul,
main.wrap ol {
  margin-top: 12px;
}
main.wrap .lead {
  margin-bottom: 24px;
}
ol,
ul {
  padding-left: 1.25rem;
}
li + li {
  margin-top: 6px;
}

/* Home */
.hero {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px);
}
.hero .copy {
  display: grid;
  gap: 20px;
}
.where {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}
.where li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.where li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--orange));
}
.note {
  color: var(--muted);
  font-size: 0.94rem;
}

/* The hero's phone with the watch beside it. */
.stage {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  padding: 0 22% 9% 0;
}
.stage .phone {
  width: 100%;
}
/* Low on the phone, where its screen is empty, so it hides no number. */
.stage .watch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
}

/* Device frames: the screenshot sits in a dark bezel with the room's glow on it. */
.phone,
.watch,
.round {
  position: relative;
  margin: 0;
}
.phone img,
.watch img,
.round img,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.phone img {
  border-radius: 13% / 6%;
}
.phone {
  padding: 3.2%;
  border-radius: 15% / 7%;
  background: linear-gradient(160deg, #3a2a29, #160e0e 40%, #0c0707);
  box-shadow:
    0 1px 0 rgba(255, 244, 230, 0.12) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 18px 50px -30px rgba(205, 62, 72, 0.6);
}
.watch {
  padding: 6%;
  border-radius: 30%;
  background: linear-gradient(160deg, #4a3836, #1a1111 45%, #0b0707);
  box-shadow:
    0 1px 0 rgba(255, 244, 230, 0.14) inset,
    0 24px 50px -16px rgba(0, 0, 0, 0.85);
}
.watch img {
  border-radius: 24%;
}
.round {
  padding: 5%;
  border-radius: 50%;
  background: linear-gradient(160deg, #4a3836, #1a1111 45%, #0b0707);
  box-shadow:
    0 1px 0 rgba(255, 244, 230, 0.14) inset,
    0 24px 50px -16px rgba(0, 0, 0, 0.85);
}
.round img {
  border-radius: 50%;
}
/* Cut-outs (widgets, a notification): no bezel, just the screen's own corners. */
.shot img {
  border-radius: 22px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}

/* Why it stays a home project: said once, under the opening, quietly. */
.home-project {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(48px, 7vw, 80px);
  padding: 22px 26px;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: rgba(27, 18, 19, 0.7);
}
.home-project h2 {
  color: var(--star);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.home-project p {
  max-width: 72ch;
  color: var(--muted);
}

/* Sections */
.band {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}
.band .head {
  display: grid;
  gap: 14px;
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.gallery {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  align-items: end;
}
.gallery figure {
  margin: 0;
  display: grid;
  gap: 14px;
}
figcaption {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}
figcaption b {
  color: var(--text);
  font-weight: 650;
}
.phones {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: start;
}
.phones .phone {
  max-width: 300px;
}
.phones .cuts {
  align-self: center;
  max-width: 340px;
}
.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split .shot {
  max-width: 560px;
}
.wrists {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  align-items: start;
}
.wrists .watch,
.wrists .round {
  max-width: 210px;
}
.group {
  color: var(--star);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.group + .gallery + .group {
  margin-top: clamp(36px, 5vw, 56px);
}

/* What the letters mean */
.legend {
  display: grid;
  gap: 2px;
  margin: 0;
  max-width: 46rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.legend div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 4px 16px;
  align-items: baseline;
  padding: 18px 20px;
  background: var(--panel);
}
.legend dt {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.legend dd {
  margin: 0;
  color: var(--muted);
}
.legend dd b {
  color: var(--text);
  font-weight: 650;
}
.s {
  color: var(--orange);
}
.w {
  color: var(--peach);
}
.f {
  color: var(--star);
}
.p {
  color: var(--cream);
}
.fast {
  color: var(--fast);
}
.toofast {
  color: var(--toofast);
}

.steps {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 16px;
  align-items: baseline;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--orange));
  color: #1f0d0b;
  font-weight: 800;
}
.fine {
  margin-top: 24px;
  max-width: 46rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.9375rem;
}
/* The notice on the left, the maker on the right; stacked on narrow screens. */
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
footer .wrap > * {
  margin: 0;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split.flip .shot {
    order: -1;
  }
}

/* One moment: the hero's devices settle in. */
@media (prefers-reduced-motion: no-preference) {
  .stage .phone,
  .stage .watch {
    animation: settle 1.1s var(--ease) both;
  }
  .stage .watch {
    animation-delay: 0.18s;
  }
  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(24px) scale(0.98);
      filter: blur(6px);
    }
  }
}
