/* ---------- Tokens ----------
   Sezen Labs itself stays neutral. Each product brings its own colour and type,
   taken from the product's own UI, in its own folder (e.g. anso/anso.css). */
:root {
  --paper: #F2F0EB;
  --ink: #141413;
  --grey: #77746D;
  --line: #D6D3CB;

  --gutter: clamp(16px, 4vw, 56px);
  --sans: "Archivo", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* The header takes on the colours of whichever room you're in */
  --bar-bg: var(--paper);
  --bar-ink: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
h1, h2 { margin: 0; font-weight: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* Store links and the contact section appear only once a real URL is filled in */
.store[href=""], .contact:has(.contact-mail[href="mailto:"]) { display: none; }

/* A phone screenshot, clipped to a phone's corners. */
.phone {
  width: 100%;
  border-radius: clamp(14px, 1.6vw, 26px);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .08);
}
figcaption { font: 12px/1.4 var(--mono); margin-top: 12px; opacity: .65; }

/* ---------- Header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  background: var(--bar-bg);
  color: var(--bar-ink);
  transition: background-color .5s ease, color .5s ease;
}
.wordmark {
  text-decoration: none;
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 15px;
  white-space: nowrap;
}
.bar nav { display: flex; gap: clamp(14px, 2.6vw, 32px); font-size: 14px; }
.bar nav a { text-decoration: none; white-space: nowrap; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.room-n { font: 12px var(--mono); letter-spacing: .02em; opacity: .7; margin-bottom: 20px; }

/* ---------- Index ---------- */
.index {
  min-height: 100svh;
  padding: 104px var(--gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(32px, 7vw, 120px);
  row-gap: 48px;
}
.index-title {
  align-self: start;
  max-width: 16ch;
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(34px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
}
.index-groups { grid-column: 1; display: grid; gap: 40px; }
.index-group { font: 12px var(--mono); color: var(--grey); margin-bottom: 10px; }
.index-list { border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid;
  grid-template-columns: 3ch 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0 12px;
  text-decoration: none;
}
.index-list .n { font: 12px var(--mono); color: var(--grey); }
.index-list .meta { font-size: 14px; color: var(--grey); }
.index-list .name {
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1;
  transition: color .25s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}
/* Each name is set in its product's own typeface — the index previews the rooms */
.name--anso { font-family: "Newsreader", serif; font-style: italic; letter-spacing: -.02em; }
.name--paws { font-family: "Fredoka", sans-serif; font-weight: 600; letter-spacing: -.01em; }
.name--echo { font-family: "Chakra Petch", sans-serif; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }

/* Each link sets --accent inline to its product's brand colour */
.index-list a:hover .name, .index-list a:focus-visible .name { transform: translateX(14px); color: var(--accent, currentColor); }

.index-preview {
  grid-column: 2; grid-row: 1 / span 2;
  align-self: end;
  position: relative;
  aspect-ratio: 591 / 1200;
  max-height: calc(100svh - 160px);
  justify-self: end;
  width: 100%;
}
.index-preview .phone {
  position: absolute; inset: 0; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.index-preview .phone.is-active { opacity: 1; transform: none; }

/* ---------- Product pages ---------- */
.room { position: relative; }
.store { display: inline-block; margin-top: 12px; }

/* ---------- Studio ---------- */
.studio {
  padding: 160px var(--gutter) 140px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.studio .room-n { grid-column: 1 / -1; color: var(--grey); }
.studio-title {
  grid-column: 1 / -1;
  font-weight: 800; font-stretch: 115%;
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: .95;
  letter-spacing: -.025em;
  margin-bottom: 80px;
}
.studio-body { grid-column: 1 / span 6; }
.studio-lede { font-size: clamp(22px, 2vw, 30px); line-height: 1.25; letter-spacing: -.01em; }
.studio-body p:not(.studio-lede) { color: var(--grey); max-width: 46ch; }

/* ---------- Contact / footer ---------- */
.contact { padding: 80px var(--gutter) 120px; border-top: 1px solid var(--line); }
.contact .room-n { color: var(--grey); }
.contact-mail {
  font-size: clamp(32px, 6.4vw, 104px);
  font-weight: 800; font-stretch: 75%;
  letter-spacing: -.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.foot {
  display: flex; justify-content: space-between;
  padding: 20px var(--gutter);
  font-size: 13px; color: var(--grey);
  border-top: 1px solid var(--line);
}
.foot a { text-decoration: none; }

/* ---------- Legal (privacy policy) ---------- */
.legal { max-width: 72ch; padding: 120px var(--gutter) 96px; }
.legal .room-n { color: var(--grey); }
.legal-title { font-weight: 800; font-stretch: 115%; font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -.02em; margin-bottom: 40px; }
.legal-lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; }
.legal h2 { font-weight: 700; font-size: 20px; margin: 48px 0 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal a { text-underline-offset: 3px; }
.foot-links { display: flex; gap: 20px; }

/* ---------- Reveal ---------- */
.reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .bar nav a:not(:last-child) { display: none; }
  .index { grid-template-columns: minmax(0, 1fr) minmax(0, 200px); }
  .studio-body { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .index { grid-template-columns: 1fr; padding-top: 96px; min-height: auto; }
  .index-preview { display: none; }
  .index-list a { grid-template-columns: 3ch 1fr; }
  .index-list .meta { grid-column: 2; }

  .studio { padding-top: 88px; padding-bottom: 96px; }
  .foot { flex-direction: column; gap: 8px; }
}