/* Dramble landing (dramble.app). The web app's colours: its default palette (gold on a warm
   black, src/app/palettes.css) — page, surface, accent and the text on it are the same values;
   change them there and here together. Tints are the accent mixed with transparency, as in the app.
   One self-hosted face (Manrope, latin, woff2): a page must not depend on external font CDNs. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-v23-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-v23-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-v23-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* = palettes.css gold: --drama-page, --cc-surface, --drama-accent, --drama-on-accent */
  --bg: #0d0a07;
  --surface: #1c1610;
  --accent: #e0a83a;
  --on-accent: #1a1206;
  --surface-2: #261e15;
  --text: #f6f1ea;
  --text-2: #bdb2a4;
  --text-3: #8a7f71;
  /* the accent at 16%, spelled out: a border must not fall back to the text colour where
     color-mix is missing (Safari before 16.2); other tints simply drop out there */
  --line: rgba(224, 168, 58, 0.16);
  --font: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --shell: 1120px;
  --gutter: 16px;
  --radius: 16px;
}
@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.shell { width: min(var(--shell), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- type ---------- */

h1, h2 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.acc { color: var(--accent); }

.kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-sub { color: var(--text-2); max-width: 60ch; margin-top: 12px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: filter 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--big { min-height: 52px; padding: 0 28px; font-size: 16px; }
@media (hover: hover) {
  .btn--accent:hover { filter: brightness(1.08); }
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 10, 7, 0.82);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__row { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand img { width: 32px; height: 32px; }
.brand--small { font-size: 18px; }
.brand--small img { width: 26px; height: 26px; }

.topnav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
}
.topnav a:hover { color: var(--text); }

@media (max-width: 719px) {
  .topnav { gap: 16px; font-size: 14px; }
  .topbar__row { justify-content: space-between; height: 60px; }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(40px, 7vw, 96px);
  background:
    radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__sub { color: var(--text-2); font-size: 17px; max-width: 52ch; }

/* a phone playing a few seconds of a real series (His Maid, His Wife, episode 1): a muted 9 s
   loop, 540×960 H.264 faststart, ~370 KB; the still is its first frame, shown until it plays,
   when the browser refuses autoplay (iOS Low Power Mode) and under reduced motion */
.phone {
  justify-self: center;
  width: min(280px, 72vw);
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  border-radius: 40px;
  background: #050403;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: var(--surface) url("/assets/hero-his-maid-his-wife.webp") center / cover no-repeat;
}
.phone__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .phone__video { display: none; }
}
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 16%),
    linear-gradient(to top, rgba(0, 0, 0, 0.85) 6%, transparent 30%);
}
.phone__top, .phone__bottom { z-index: 1; }
.phone__top {
  position: absolute;
  inset: 18px 18px auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.phone__bottom { position: absolute; inset: auto 18px 22px; display: grid; gap: 4px; }
.phone__bottom b { font-size: 17px; }
.phone__bottom i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.phone__bar { margin-top: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.phone__bar span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

@media (max-width: 859px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: min(240px, 64vw); }
}

/* ---------- support and policies ---------- */

.info { padding-block: clamp(48px, 7vw, 88px); scroll-margin-top: 68px; }
.info__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info__card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
  color: var(--text-2);
  font-size: 15px;
}
.info__card h3 { color: var(--text); font-size: 18px; }
.info__card--wide { grid-column: 1 / -1; scroll-margin-top: 84px; }
.info__card a, .foot a:not(.brand) { text-decoration: underline; text-underline-offset: 2px; }
.info__card > a { color: var(--accent); font-weight: 600; }

@media (max-width: 859px) {
  .info__grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding-block: 32px 24px; color: var(--text-2); font-size: 14px; }
.foot__grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__about { display: grid; gap: 8px; }
.foot__about .brand { color: var(--text); margin-bottom: 4px; }
.foot__links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; align-content: start; }
.foot__copy { margin-top: 24px; color: var(--text-3); font-size: 13px; }

/* ---------- legal pages and 404 ---------- */

.legal { padding-block: 40px 72px; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.01em; margin: 36px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0; padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); }
.legal__updated { color: var(--text-3); font-size: 14px; }

.notfound {
  min-height: 70svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
