/* Booth: a website template for voice actors.
   Rebrand by editing the tokens in :root. Nothing else needs to change. */

:root {
  --bg: #eef0ec;
  --surface: #e1e5df;
  --ink: #14201a;
  --muted: #55615a;
  --line: rgb(20 32 26 / 0.15);
  --accent: #d13f1f;
  --accent-ink: #ffffff;

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Shape rule: cards and images are 14px, anything you can press is round. */
  --radius: 14px;
  --radius-pill: 999px;

  --wrap: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --header: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layers: header 10, mobile menu 20. */
  color-scheme: light dark;
  accent-color: var(--accent);
}

/* Dark theme follows the visitor's system setting.
   To lock one theme, delete this block (light) or move its values into :root (dark). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101613;
    --surface: #1a221e;
    --ink: #e9ede9;
    --muted: #9aa69f;
    --line: rgb(233 237 233 / 0.16);
    --accent: #ff6a4a;
    --accent-ink: #101613;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section > h2 { margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.85rem; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius-pill);
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.site-header__inner { height: var(--header); display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn), .link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.nav a:not(.btn):hover, .link:hover { background-size: 100% 1px; }
.menu-toggle {
  display: none; background: none; cursor: pointer;
  border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius-pill); padding: 0.5rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.4rem; border-radius: var(--radius-pill);
  font-weight: 500; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.25s, color 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--ink); color: var(--bg); }
.btn--small { padding: 0.55rem 1.1rem; }

/* Media */
.media { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end;
  min-height: calc(100dvh - var(--header));
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.hero__copy { grid-column: 1 / span 7; }
.hero__copy h1 { font-size: clamp(2.3rem, 4.8vw, 4.25rem); }
.hero__copy > p { max-width: 40ch; margin-top: 1.5rem; font-size: 1.15rem; color: var(--muted); }
.hero__copy .player { margin-top: 2rem; max-width: 34rem; }
.hero__copy .btn { margin-top: 1.5rem; }
.hero__media { grid-column: 9 / span 4; align-self: stretch; position: relative; min-height: 22rem; }
.hero__media img { position: absolute; inset: 0; }

/* Demo player. Without JavaScript the browser's own audio controls are shown. */
.player {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem 1rem; align-items: center;
  padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface);
}
.player__title { font-weight: 600; letter-spacing: -0.02em; }
.player__title small { display: block; font-weight: 400; font-size: 0.95rem; letter-spacing: 0; color: var(--muted); }
.player__ui { display: none; grid-column: 1 / -1; align-items: center; gap: 1rem; }
.player audio { grid-column: 1 / -1; width: 100%; }
.js .player audio { display: none; }
.js .player__ui { display: flex; }
.player__ui input[type="range"] { flex: 1; min-width: 0; height: 1.5rem; cursor: pointer; }
.player__ui a { white-space: nowrap; }
.play {
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  display: none; place-items: center; background: var(--ink);
  transition: transform 0.2s var(--ease), background-color 0.25s;
}
.js .play { display: grid; }
.play:hover { background: var(--accent); }
.play:active { transform: scale(0.94); }
/* Play triangle and pause bars, drawn with borders. */
.play::before {
  content: ""; margin-left: 3px;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--bg);
}
.play:hover::before { border-left-color: var(--accent-ink); }
.is-playing .play::before {
  margin: 0; width: 13px; height: 15px; border: 0;
  border-left: 4px solid var(--bg); border-right: 4px solid var(--bg);
}
.is-playing .play:hover::before { border-color: var(--accent-ink); }

.demo-list { display: grid; gap: 0.75rem; }
.demo-list .player { grid-template-columns: auto minmax(12rem, 1.1fr) 2fr; }
.demo-list .player__ui, .demo-list .player audio { grid-column: auto; }

/* Credits */
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); }
.credits li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.credits strong { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.credits span { color: var(--muted); text-align: right; }

/* About */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.about__media { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.about__copy { grid-column: 7 / span 6; }
.about__copy h2 { margin-bottom: 1.75rem; }
.about__copy p { max-width: 52ch; color: var(--muted); }
.about__copy p + p { margin-top: 1rem; }

/* Studio */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.spec { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); }
.spec dt { color: var(--muted); }
.spec dd { margin-top: 0.4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.spec p { margin-top: 0.6rem; max-width: 38ch; color: var(--muted); font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; }

/* Quote */
.quote blockquote { max-width: 30ch; font-size: clamp(1.7rem, 3.6vw, 2.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; }
.quote footer { margin-top: 2rem; font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.quote footer strong { display: block; font-weight: 600; }
.quote footer span { color: var(--muted); }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact p { max-width: 44ch; color: var(--muted); }
.contact__mail {
  display: inline-block; margin-top: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.7rem, 5vw, 4.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 3px no-repeat;
  transition: color 0.3s; overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { display: flex; gap: 1.5rem; }
.site-footer small { flex-basis: 100%; color: var(--muted); font-size: 0.875rem; }

/* Reveal on scroll. Content stays visible when JavaScript is off. */
.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .play { transition: none; }
}

/* Small screens: every grid becomes one column. */
@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; z-index: 20; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1rem var(--gutter) 2rem; background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
  }
  .nav.is-open { display: flex; }

  .hero { display: block; min-height: 0; padding-top: 2rem; }
  .hero__media { margin-top: 2.5rem; min-height: 0; aspect-ratio: 4 / 5; }

  .demo-list .player { grid-template-columns: auto 1fr; }
  .demo-list .player__ui, .demo-list .player audio { grid-column: 1 / -1; }
  .player__ui { flex-wrap: wrap; }
  .player__ui input[type="range"] { flex-basis: 100%; }

  .credits, .specs { grid-template-columns: 1fr; }
  .about { display: block; }
  .about__copy { margin-top: 2.5rem; }
}
