:root {
  --studio-bg: #efe8dc;
  --studio-ink: #1c1a22;
  --inks-bg: #26336f;
  --inks-ink: #eef0f8;
  --nibs-bg: #7b2432;
  --nibs-ink: #f9ece8;
  --classes-bg: #2c4a3b;
  --classes-ink: #e9efdf;
  --bar: rgba(22, 20, 17, 0.78);
  --bar-ink: #f4eee4;
  --bg: var(--studio-bg);
  --ink: var(--studio-ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }

.stage {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

/* ---- the header ---- */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3.4vh, 30px) clamp(16px, 4vw, 44px);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.brand__name {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: 19px;
  font-variation-settings: 'opsz' 40, 'SOFT' 60;
  letter-spacing: -0.01em;
}
.shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-variation-settings: 'wdth' 100;
  letter-spacing: 0.02em;
  padding: 9px 14px 9px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  transition: font-variation-settings 0.5s cubic-bezier(.2, 1.4, .4, 1), background-color 0.3s;
}
.shop svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s cubic-bezier(.2, 1.4, .4, 1); }
@media (hover: hover) {
  .shop:hover { font-variation-settings: 'wdth' 118; background: color-mix(in srgb, currentColor 8%, transparent); }
  .shop:hover svg { transform: translateX(3px); }
}

/* ---- the pages ---- */
.pages { position: absolute; inset: 0; }
.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 13vh, 120px) clamp(18px, 6vw, 80px) clamp(76px, 17vh, 150px);
}
.page[hidden] { display: none; }
.eyebrow {
  margin: 0 0 clamp(4px, 1.2vh, 12px);
  font-size: clamp(11px, 1.6vh, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}
.title {
  margin: 0;
  font-family: 'Fraunces Variable', Georgia, serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 0;
  font-size: clamp(56px, min(21vw, 30vh), 250px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  display: inline-block;
  align-self: flex-start;
  white-space: nowrap;
}
.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(10px, 3vh, 34px);
}
.text {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(13px, 2vh, 17px);
  line-height: 1.5;
  opacity: 0.86;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 180px;
  padding: 13px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, currentColor 10%, transparent) inset, 0 18px 40px -26px rgba(0, 0, 0, 0.45);
}
.card__small { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.66; }
.card__mid {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: 19px;
  font-variation-settings: 'opsz' 30, 'SOFT' 50;
}

/* ---- the ink canvas ---- */
.ink {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.title .ch { display: inline-block; will-change: transform; }

/* ---- the menu bar ---- */
.nav {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  bottom: clamp(14px, 4vh, 34px);
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--bar);
  color: var(--bar-ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 44px -18px rgba(0, 0, 0, 0.55);
}
.nav__item {
  position: relative;
  z-index: 2;
  padding: clamp(8px, 1.3vh, 11px) clamp(11px, 2.6vw, 20px);
  border-radius: 999px;
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: clamp(14px, 3.8vw, 17px);
  font-variation-settings: 'opsz' 20, 'SOFT' 60;
  line-height: 0.9;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.35s;
}
.nav__item span { display: inline-block; }
.nav__item.is-here { color: #1c1a16; }
.nav__pill,
.nav__hover {
  position: absolute;
  z-index: 1;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
}
.nav__pill {
  background: var(--bar-ink);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 10px -4px rgba(0, 0, 0, 0.5);
}
.nav__gloss {
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0.6;
}
.nav__hover { background: rgba(255, 255, 255, 0.1); opacity: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }

/* ---- the rest ---- */
.grain {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  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");
}
.ghost {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  fill: #fff;
  stroke: #1c1a16;
  stroke-width: 1.2;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the small box (the phone, the preview square) ---- */
@media (max-width: 620px) {
  .shop span { display: none; }
  .shop { padding: 9px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .card { min-width: 0; }
}
@media (max-height: 520px) {
  .text { display: none; }
  .foot { margin-top: 10px; }
}
