@font-face {
  font-family: Rubik;
  src: url("assets/fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url("assets/fonts/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url("assets/fonts/Rubik-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101011;
  --text: #f7f5f0;
  --muted: #b7b3af;
  --line: #343335;
  --accent: #f3c49a;
  font-family: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip { position: fixed; z-index: 2; top: .75rem; left: .75rem; padding: .5rem 1rem; background: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header { min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 80px; height: auto; }
nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 32px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; color: var(--muted); text-decoration: none; }
nav [aria-current="page"] { color: var(--text); text-decoration: underline; }
.intro { text-align: center; padding: clamp(52px, 7vw, 88px) 0 clamp(35px, 5vw, 64px); }
h1, h2, p, figure { margin: 0; }
.intro h1 { font-size: clamp(3.15rem, 7.7vw, 6.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.intro p { max-width: 495px; margin: 22px auto 0; font-size: clamp(1.03rem, 2vw, 1.2rem); color: var(--muted); text-wrap: balance; }
.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start;
  gap: clamp(20px, 4vw, 52px); max-width: 950px; margin: 0 auto 70px;
  background: radial-gradient(ellipse at 50% 40%, #32201866, transparent 70%);
}
.gallery figure { min-width: 0; }
.screen-picker { display: none; }
.gallery figure:not(:nth-of-type(2)) { padding-top: clamp(16px, 3vw, 45px); }
.phone {
  display: block; padding: 4px; background: #27272a; border: 1px solid #535154;
  border-radius: 13% / 6%; box-shadow: 0 14px 34px #0005;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 12% / 5.5%; }
figcaption { padding: 20px 2px 0; text-align: center; }
figcaption strong { display: block; font-size: 1.05rem; font-weight: 500; letter-spacing: -.025em; }
figcaption span { display: block; font-size: .94rem; margin: 5px auto 0; color: var(--muted); max-width: 29ch; }
.credits { margin: 0 auto 38px; text-align: center; color: var(--muted); font-size: .8rem; }
.credits img { width: 75px; height: auto; }
.credits p { margin: .5rem auto 0; max-width: 55ch; }
footer { flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); padding: 20px 0; font-size: .85rem; }
footer nav a { font-size: inherit; }
.footer-credit { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.footer-monogram {
  display: inline-flex; align-items: center; min-height: 36px; padding-left: 20px; border-left: 1px solid var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 1.5rem; font-weight: 750; line-height: 1; letter-spacing: -.04em; color: var(--text); text-decoration: none;
}
.article { max-width: 660px; margin: 0 auto; padding: clamp(45px, 8vw, 92px) 0 85px; }
.article h1 { font-size: clamp(2.7rem, 7vw, 4.75rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 500; }
.article .lead { font-size: 1.16rem; margin: 17px 0 32px; }
.article section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; }
.article h2 { font-size: 1.4rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.3; }
.article p { color: var(--muted); margin-top: .7rem; }
.article p a { color: var(--text); overflow-wrap: anywhere; }
details { border-bottom: 1px solid var(--line); }
details p { padding-bottom: 18px; }
summary { cursor: pointer; padding: 17px 4px 16px 0; font-weight: 500; }
@media (max-width: 680px) {
  .shell { width: calc(100% - 40px); }
  header { min-height: 65px; }
  .brand img { width: 67px; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .intro { padding: 32px 0 24px; }
  .intro h1 { font-size: clamp(2.5rem, 10vw, 3.25rem); }
  .intro p { margin-top: 12px; max-width: 32ch; line-height: 1.45; }
  .gallery { grid-template-columns: 1fr; justify-items: center; gap: 32px; margin-bottom: 42px; }
  .gallery figure { width: min(100%, 268px); }
  .gallery figure:not(:nth-of-type(2)) { padding-top: 0; }
  .phone { padding: 3px; }
  figcaption { padding-top: 12px; }
  @supports selector(:has(*)) {
    .gallery { gap: 19px; }
    .screen-picker { display: inline-flex; gap: 3px; max-width: 100%; margin: 0; padding: 3px;
      border: 1px solid var(--line); border-radius: 999px; background: #1b1b1d; }
    .screen-picker label { position: relative; cursor: pointer; }
    .visually-hidden, .screen-picker input { position: absolute; width: 1px; height: 1px; padding: 0;
      overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .screen-picker span { display: grid; place-items: center; min-height: 44px; padding: 0 15px;
      color: var(--muted); font-size: .92rem; font-weight: 600; border-radius: 999px; }
    .screen-picker input:checked + span { background: var(--text); color: var(--bg); }
    .screen-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
    .gallery:has(input:checked) figure { display: none; }
    .gallery:has([value="movies"]:checked) #screen-movies,
    .gallery:has([value="detail"]:checked) #screen-detail,
    .gallery:has([value="tv"]:checked) #screen-tv { display: block; }
  }
}
