/* Cozy Mug · Studio Index
   Set in Schibsted Grotesk and JetBrains Mono. */

:root {
  --ground: #ECEAE4;
  --panel: #F6F5F1;
  --plate: #E2DFD7;
  --ink: #0B0B0A;
  --muted: #55534D;
  --line: rgba(11, 11, 10, 0.12);
  --cover: #0F1E33;
  --cover-ink: #EEE7D8;
  --cover-muted: rgba(238, 231, 216, 0.72);
  --cover-line: rgba(238, 231, 216, 0.22);
  --accent: #D2481F;
  --crema: #A8714A;
  --espresso: #5B341E;

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

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

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 40px; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* ---------- Wordmark: the u is a steaming mug ---------- */

.wordmark { font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; }

.mug {
  display: inline-block;
  height: 1em;
  width: 0.83em;
  vertical-align: -0.2em;
  overflow: visible;
  margin-left: -0.005em;
  margin-right: -0.03em;
}
.mug-body { fill: none; stroke: currentColor; stroke-width: 14; }
.mug-handle { fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; }
.wave--back { fill: var(--crema); animation: cm-wave 3.6s linear infinite reverse; }
.wave--front { fill: var(--espresso); animation: cm-wave 2.4s linear infinite; }
.steam {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: cm-steam 3.2s ease-in-out infinite;
}
.steam--2 { animation-delay: 1.05s; }
.steam--3 { animation-delay: 2.1s; }

@keyframes cm-steam {
  0%   { stroke-dashoffset: 100; opacity: 0; transform: translateY(6px); }
  25%  { opacity: 1; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; opacity: 0; transform: translateY(-12px); }
}
@keyframes cm-wave {
  from { transform: translateX(0); }
  to   { transform: translateX(-15px); }
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 0;
}
.site-header .wordmark { font-size: 21px; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a:hover { color: var(--muted); }

.rule-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px 0;
  border-top: 1px solid var(--ink);
}
.rule-row h2 { margin: 0; font: inherit; }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 7vw, 112px) 0 clamp(56px, 7vw, 112px); }

.hero h1 {
  margin: 0;
  max-width: 1240px;
  font-size: clamp(48px, 8.4vw, 138px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.058em;
}
.hero h1 .count { position: relative; }
.hero h1 sup {
  position: absolute;
  left: calc(100% + 0.08em);
  top: 0.12em;
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-notes > * { flex: 1 1 260px; margin: 0; }
.live { display: flex; flex-direction: column; gap: 6px; }
.live a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.live a:hover { text-decoration: underline; text-underline-offset: 3px; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.dot--open { background: transparent; border: 1px solid var(--muted); width: 6px; height: 6px; }

/* ---------- Index ---------- */

.feature {
  display: flex;
  flex-wrap: wrap;
  margin-top: 4px;
  background: var(--panel);
}

.cover {
  flex: 1.25 1 560px;
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 40vw, 560px);
  padding: clamp(22px, 2.8vw, 40px);
  background: var(--cover);
  color: var(--cover-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.cover > * { position: relative; }
.cover-num {
  position: absolute;
  right: -24px;
  bottom: clamp(-96px, -6vw, -56px);
  font-size: clamp(220px, 26vw, 380px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(238, 231, 216, 0.06);
  transition: transform 1.2s var(--ease);
  pointer-events: none;
}
.feature:hover .cover-num { transform: translate(-12px, -10px); }

.cover-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cover-line);
}
.cover-title { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.cover-title p { margin: 0; }
.cover-title .title {
  font-size: clamp(46px, 5.6vw, 92px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.cover-title .credit {
  max-width: 400px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--cover-muted);
}
.cover-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cover-parts span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--cover-line);
}
.cover-parts i { font-style: normal; color: rgba(238, 231, 216, 0.6); }

.meta {
  flex: 1 1 360px;
  padding: clamp(22px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.meta-top { display: flex; flex-direction: column; gap: 28px; }
.pull {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.facts { margin: 0; font-family: var(--mono); font-size: 12px; }
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.facts dd { margin: 0; text-align: right; display: inline-flex; align-items: center; gap: 8px; }

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--panel);
  font-size: 15px;
  font-weight: 500;
}
.cta-arrow { font-family: var(--mono); transition: transform 0.4s var(--ease); }
.feature:hover .cta-arrow, .feature:focus-visible .cta-arrow { transform: translate(3px, -3px); }

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
  margin-top: 4px;
}
.slot { background: var(--panel); }
.plate {
  position: relative;
  overflow: hidden;
  min-height: clamp(200px, 21vw, 300px);
  padding: 20px 24px;
  background: var(--plate);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.plate span { position: relative; }
.plate-num {
  position: absolute !important;
  left: 16px;
  bottom: clamp(-64px, -4.4vw, -44px);
  font-size: clamp(170px, 17vw, 240px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(11, 11, 10, 0.055);
  font-family: var(--sans);
  text-transform: none;
}
.slot-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.slot-body .row { display: flex; justify-content: space-between; color: var(--muted); }
.slot-body .row span { display: inline-flex; align-items: center; gap: 8px; }
.slot-body p { margin: 0; }
.slot-title { font-size: clamp(22px, 1.9vw, 26px); font-weight: 500; letter-spacing: -0.035em; }
.slot-addr { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { margin-top: clamp(96px, 10vw, 160px); }
.site-footer .rule-row a:hover { color: var(--muted); }
.footer-mark {
  margin: clamp(64px, 7vw, 112px) 0 clamp(32px, 4vw, 56px);
  font-size: clamp(64px, 17.5vw, 258px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.068em;
}
.colophon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Entrance ---------- */

.rise { animation: rise 1s var(--ease) both; }
.rise--2 { animation-delay: 0.12s; }
.rise--3 { animation-delay: 0.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .wave--back, .wave--front { animation: none !important; }
  .steam { animation: none !important; stroke-dashoffset: 0; opacity: 0.55; }
  .cover-num, .cta-arrow { transition: none; }
}

@media (max-width: 600px) {
  .site-header .tagline { display: none; }
  .cover-parts { gap: 10px; font-size: 10px; }
  .facts div.hide-sm { display: none; }
}
