:root {
  font-family: Arial, Helvetica, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  --paper: #f6f3ea;
  --ink: #1a1b17;
  --muted: #51524a;
  --accent: #ab331b;
  --rule: #cdc9bd;
  --button: #21221d;
  --button-ink: #fffdf6;
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p { margin: 0; }

.layout {
  width: min(1216px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 36px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  flex: none;
  color: inherit;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.09em;
  text-decoration: none;
}

.wordmark span { color: var(--accent); }

.concepts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 7px;
}

.concepts a {
  padding: 8px 11px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.concepts a:hover, .concepts [aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}

.composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 23px 28px;
  padding-block: 43px 36px;
}

.masthead { grid-area: 1 / 1; }
.masthead h1 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: .96;
  letter-spacing: -.075em;
}

.masthead p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.billboard { grid-area: 2 / 1 / 3 / -1; min-width: 0; }
.placement { grid-area: 1 / 2; }

.placement-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 11px 16px;
  color: var(--button-ink);
  background: var(--button);
  font-weight: 700;
  font-size: 14px;
}

.placement-button:hover { background: color-mix(in srgb, var(--button) 86%, var(--button-ink)); }
.placement-button span { font-size: 18px; line-height: 1; }

.screen {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2.36;
  min-height: 290px;
  isolation: isolate;
  background: #222;
}

.slide {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 5.2vw, 75px);
  touch-action: pan-y;
  container-type: inline-size;
}

.slide-copy {
  position: relative;
  z-index: 1;
  max-width: 75%;
}

.ad-brand {
  margin-bottom: clamp(10px, 2vw, 24px);
  font-size: clamp(10px, 2.5cqi, 14px);
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.ad-headline {
  max-width: 12ch;
  font-size: clamp(2rem, 10.2cqi, 8.5rem);
  font-weight: 900;
  line-height: .87;
  letter-spacing: -.085em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.slide-art {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.ad-house {
  color: #fff9ec;
  background: #233bc0;
}

.ad-house .ad-headline { max-width: 8.8ch; }
.ad-house .slide-art {
  width: min(58%, 650px);
  aspect-ratio: 1;
  top: 54%;
  right: -8%;
  transform: translateY(-50%);
  border: clamp(19px, 5.3vw, 75px) solid #ff6b3a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 clamp(9px, 2.2vw, 26px) #ffb292;
}

.ad-music { color: #f1ff9b; background: #24251f; }
.ad-music .ad-headline { max-width: 13ch; font-size: clamp(1.85rem, 9.2cqi, 7.6rem); }
.ad-music .slide-art {
  width: min(44%, 450px);
  aspect-ratio: 1;
  right: 7%;
  top: 51%;
  transform: translateY(-50%) rotate(-14deg);
  border-radius: 50%;
  border: 1px solid #b0d67d;
  box-shadow: 19px 22px 0 #171813;
  background: repeating-radial-gradient(circle, #a1bc6d 0 1px, #3d472d 2px 4px, #b5d77c 5px 6px);
}

.ad-music .slide-art::after {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle, #202017 0 6%, #f58d5c 8% 68%, #ffe0ac 70%);
}

.ad-travel { color: #fff9ea; background: #183b44; }
.ad-travel .ad-headline {
  max-width: 9.8ch;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.079em;
}

.ad-travel .slide-art {
  inset: 0;
  background:
    linear-gradient(90deg, #0c222ab8, #0a1d2333 65%, transparent),
    url("elsewhere-coast.png") center 50% / cover;
}

.ad-play { color: #221011; background: #ff765f; }
.ad-play .ad-headline { max-width: 10ch; }
.ad-play .slide-art {
  right: 6%;
  top: 50%;
  width: min(38%, 390px);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-15deg);
  border: clamp(10px, 2vw, 27px) solid #3a1749;
  border-radius: 28% 50% 32% 48%;
  background: repeating-linear-gradient(40deg, #ffe7b8 0 11%, #3a1749 11% 20%);
  box-shadow: 13px 16px 0 #9c3f58;
}

.ad-preview .slide-copy { max-width: min(82%, 790px); }
.ad-preview .ad-headline { max-width: none; font-size: clamp(1.65rem, 7.8cqi, 6.8rem); line-height: .96; }
.ad-preview .slide-art { opacity: .35; }
.fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #fff; }

.console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px 14px;
  padding-top: 11px;
}

.caption {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.position {
  flex: none;
  color: var(--accent);
  font-size: 12px;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: -.03em;
}

.credit { color: var(--muted); font-weight: 700; }
.rotation-controls, .slide-picker { display: flex; align-items: center; gap: 4px; }

.step {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 21px;
  line-height: 1;
}

.step:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.playback { margin-left: 5px; }

.playback-icon {
  width: 9px;
  height: 12px;
  border-inline: 2px solid currentColor;
}

.is-paused .playback-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border: 6px solid transparent;
  border-right: 0;
  border-left: 9px solid currentColor;
}

.slide-picker { gap: 1px; }
.slide-picker button {
  width: 25px;
  height: 38px;
  border: 0;
  padding: 0;
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
}

.slide-picker button::before {
  content: "";
  display: block;
  height: 3px;
  margin-inline: 3px;
  background: var(--rule);
  border-radius: 99px;
}

.slide-picker button:hover::before { background: var(--muted); }
.slide-picker button[aria-current="true"]::before { background: var(--accent); }

.placement-dialog {
  width: min(480px, calc(100% - 34px));
  max-height: calc(100% - 34px);
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.placement-dialog::backdrop { background: #090b0bb8; }
.brief-form { display: grid; gap: 12px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-header h2 { font-size: 26px; line-height: 1; letter-spacing: -.055em; }
.brief-form p { color: var(--muted); line-height: 1.45; }
.brief-form label { margin-bottom: -6px; font-size: 14px; font-weight: 700; }
.brief-form input, .brief-form textarea, .brief-form select {
  min-height: 43px;
  padding: 8px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.brief-form textarea { min-height: 84px; resize: vertical; }
.brief-form .placement-button { justify-self: start; }
.brief-form .placement-button:disabled { opacity: .6; cursor: progress; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row > div { display: grid; gap: 6px; min-width: 0; }
.field-row input { width: 100%; }
.form-note { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.form-error { color: light-dark(#a4221a, #ff9b8a); font-weight: 700; }
.placement-status { margin-top: 9px; max-width: 36ch; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.4; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.theme-gallery .screen { border-radius: 7px; }

.theme-night {
  color-scheme: dark;
  --paper: #141718;
  --ink: #f4faeb;
  --muted: #b7c1b4;
  --accent: #dbff7c;
  --rule: #4c574f;
  --button: #dbff7c;
  --button-ink: #191d16;
  background: radial-gradient(ellipse at 52% 47%, #262d29, #141718 67%);
}

.theme-night .layout { max-width: 1090px; }
.theme-night .site-header { border-bottom-color: #424943; }
.theme-night .masthead h1, .theme-night .wordmark { font-family: Consolas, "Courier New", monospace; }
.theme-night .masthead h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); letter-spacing: -.095em; }
.theme-night .screen {
  border: clamp(7px, 1.15vw, 16px) solid #393f3c;
  border-radius: 17px;
  outline: 1px solid #505954;
  box-shadow: 0 22px 65px #0007;
}

.theme-night .screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(0deg, #0002 0 1px, transparent 1px 4px);
}

.theme-night .console { padding-inline: 7px; }
.theme-night .placement-button { border-radius: 99px; }

.theme-editorial {
  --paper: #f3eae0;
  --ink: #2a1d18;
  --muted: #634e43;
  --accent: #93351f;
  --rule: #ae9a8e;
  --button: #93351f;
  --button-ink: #fff6e8;
}

.theme-editorial .wordmark, .theme-editorial .masthead h1 { font-family: Georgia, "Times New Roman", serif; }
.theme-editorial .composition {
  grid-template-columns: minmax(180px, .64fr) minmax(0, 2fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 21px clamp(24px, 4.5vw, 70px);
  padding-top: clamp(38px, 7vw, 110px);
}

.theme-editorial .masthead h1 {
  max-width: 8ch;
  font-size: clamp(2.1rem, 5.5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -.09em;
}

.theme-editorial .masthead p { max-width: 22ch; font-family: Georgia, "Times New Roman", serif; }
.theme-editorial .billboard { grid-area: 1 / 2 / 3; }
.theme-editorial .screen { aspect-ratio: 1.68; }
.theme-editorial .slide { padding: clamp(20px, 4vw, 67px); }
.theme-editorial .placement { grid-area: 2 / 1; }
.theme-editorial .placement-button { border-radius: 0; }
.theme-editorial .console { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); }

.theme-street {
  --paper: #ffcf48;
  --ink: #231625;
  --muted: #422e3d;
  --accent: #8b204d;
  --rule: #76543d;
  --button: #231625;
  --button-ink: #ffe699;
  background-image: radial-gradient(#422e3d24 .65px, transparent .65px);
  background-size: 5px 5px;
}

.theme-street .layout { max-width: 1040px; }
.theme-street .site-header { border-bottom: 2px solid var(--ink); }
.theme-street .concepts a { border-radius: 0; }
.theme-street .composition { padding-top: 30px; gap: 15px 20px; }
.theme-street .masthead h1 { font-weight: 900; line-height: .89; text-transform: uppercase; }
.theme-street .screen {
  aspect-ratio: 2.11;
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
}

.theme-street .console { padding-top: 18px; }
.theme-street .placement-button, .theme-street .step { border-radius: 0; }
.theme-street .step { border-color: var(--ink); }

.theme-cinema {
  color-scheme: dark;
  --paper: #101519;
  --ink: #f3f4ed;
  --muted: #b6c2c3;
  --accent: #9fd6e3;
  --rule: #66757b;
  --button: #e5f0ef;
  --button-ink: #172126;
  background: radial-gradient(ellipse at 62% 7%, #202e35, #101519 66%);
}

.theme-cinema .site-header { width: min(1440px, calc(100% - 96px)); }
.theme-cinema .composition { width: 100%; padding-top: 25px; row-gap: 17px; }
.theme-cinema .masthead { margin-left: max(48px, calc((100vw - 1440px) / 2)); }
.theme-cinema .masthead h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -.05em;
}

.theme-cinema .masthead p { margin-top: 7px; }
.theme-cinema .placement { margin-right: max(48px, calc((100vw - 1440px) / 2)); }
.theme-cinema .placement-button { border-radius: 99px; }
.theme-cinema .screen { aspect-ratio: 2.65; max-height: max(380px, 66vh); }
.theme-cinema .slide { padding-inline: max(48px, calc((100vw - 1320px) / 2)); }
.theme-cinema .console { width: min(1440px, calc(100% - 96px)); margin-inline: auto; padding-top: 13px; }

@media (max-width: 800px) {
  .layout, .theme-cinema .site-header, .theme-cinema .console { width: calc(100% - 44px); }
  .site-header { min-height: 75px; gap: 9px 15px; }
  .concepts { gap: 3px; }
  .concepts a { padding-inline: 8px; }
  .theme-cinema .masthead { margin-left: 22px; }
  .theme-cinema .placement { margin-right: 22px; }
  .theme-cinema .slide { padding-inline: 24px; }
}

@media (max-width: 620px) {
  .layout, .theme-cinema .site-header, .theme-cinema .console { width: calc(100% - 32px); }
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 13px 9px; }
  .wordmark { font-size: 28px; }
  .concepts { justify-content: flex-start; margin-left: -5px; }
  .concepts a { padding: 6px 4px; font-size: 12px; }

  .composition, .theme-editorial .composition, .theme-street .composition {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    padding-top: 25px;
    gap: 16px;
  }

  .masthead, .theme-editorial .masthead { grid-area: 1 / 1; }
  .placement, .theme-editorial .placement { grid-area: 3 / 1; justify-self: start; }
  .billboard, .theme-editorial .billboard { grid-area: 2 / 1; }
  .theme-editorial .masthead h1, .theme-editorial .masthead p { max-width: none; }

  .screen, .theme-editorial .screen, .theme-street .screen, .theme-cinema .screen {
    aspect-ratio: 1.18;
    min-height: 236px;
  }

  .slide-copy { max-width: 89%; }
  .ad-headline { font-size: clamp(2rem, 14.5cqi, 4.7rem); }
  .ad-preview .ad-headline { font-size: clamp(1.6rem, 10.7cqi, 3.5rem); }
  .ad-house .slide-art { right: -32%; top: 70%; width: 65%; }
  .ad-music .ad-headline { font-size: clamp(1.85rem, 12.3cqi, 4.3rem); }
  .ad-music .slide-art, .ad-play .slide-art { right: -5%; top: 66%; opacity: .63; }
  .ad-travel .slide-art { background-position: 61% center; }

  .console { flex-wrap: wrap; }
  .step { width: 36px; height: 36px; }
  .slide-picker button { width: 24px; height: 36px; }
  .theme-night .console { padding-inline: 0; }
  .theme-street .screen { box-shadow: 5px 5px 0 var(--ink); }
  .theme-cinema .masthead, .theme-cinema .placement { margin-inline: 16px; }
}

@media (max-width: 380px) {
  .caption { font-size: 12px; }
  .rotation-controls { justify-content: flex-start; }
}

.theme-roadside {
  --paper: #f5ebdb;
  --ink: #30281e;
  --muted: #5a4d3d;
  --accent: #a03620;
  --rule: #b9a893;
  --button: #9d3421;
  --button-ink: #fff7e5;
}

.theme-roadside .layout { max-width: 1250px; }
.theme-roadside .composition { padding-top: 30px; gap: 18px 24px; }
.theme-roadside .masthead h1 { font-size: clamp(2.2rem, 4.5vw, 4.25rem); }
.theme-roadside .console { padding-top: 12px; }

.roadside-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2.24;
  min-height: 340px;
  border: 1px solid #8d7661;
  border-radius: 5px;
  background: #966c45 url("roadside-highway.png") center 68% / cover no-repeat;
}

.roadside-rig {
  position: absolute;
  inset: 15% 8% 15% 31%;
}

.roadside-rig::before {
  content: "";
  position: absolute;
  right: -3%;
  bottom: -3%;
  left: 17%;
  height: 8%;
  transform: skewX(-47deg) rotate(2deg);
  border-radius: 32%;
  background: linear-gradient(90deg, #30201485, #3020140a);
  filter: blur(5px);
}

.roadside-posts {
  position: absolute;
  inset: 15% 21% 0 18%;
  display: flex;
  justify-content: space-between;
}

.roadside-posts::before, .roadside-posts::after {
  content: "";
  width: clamp(8px, 2vw, 27px);
  border: 1px solid #35291e;
  background: linear-gradient(90deg, #4d3d2a, #b09978 19%, #796146 40%, #3b3024 47%, #33281f 90%, #68513b);
}

.roadside-face {
  position: relative;
  transform: skewY(-1.5deg);
}

.roadside-face::after {
  content: "";
  position: absolute;
  right: -1%;
  bottom: -7%;
  left: -1%;
  height: 7%;
  border-block: clamp(2px, .28vw, 4px) solid #3f3022;
  background: repeating-linear-gradient(112deg, #5a4633 0 2px, transparent 2px 10px);
}

.theme-roadside .screen {
  aspect-ratio: 2.55;
  min-height: 0;
  border: clamp(4px, .62vw, 9px) solid #514233;
  outline: 1px solid #351f13;
  box-shadow: 5px 4px 0 #30261e, -1px -1px 0 #9d8666;
}

.theme-roadside .slide { padding: clamp(12px, 3.25vw, 52px); }
.theme-roadside .ad-brand { margin-bottom: clamp(6px, 1.4vw, 19px); font-size: clamp(8px, 2.3cqi, 13px); }
.theme-roadside .ad-headline { font-size: clamp(1.35rem, 10.5cqi, 6.7rem); }
.theme-roadside .ad-music .ad-headline { font-size: clamp(1.25rem, 9.1cqi, 5.8rem); }
.theme-roadside .ad-preview .ad-headline { font-size: clamp(1.14rem, 7.8cqi, 5rem); }

.theme-roadside .ad-house {
  color: #992b1b;
  background: #f6d999;
}

.theme-roadside .ad-house .slide-art {
  right: -15%;
  border-color: #ad4328;
  border-width: clamp(16px, 4vw, 58px);
  box-shadow: inset 0 0 0 clamp(6px, 1.4vw, 20px) #dd8962;
}

@media (max-width: 620px) {
  .theme-roadside .composition { padding-top: 24px; gap: 14px; }
  .roadside-scene { aspect-ratio: 1.08; min-height: 280px; background-position: 38% center; }
  .roadside-rig { inset: 19% 8% 14% 12%; }
  .roadside-posts { inset-inline: 31% 27%; }
  .theme-roadside .screen { aspect-ratio: 2.02; }
  .theme-roadside .slide { padding: clamp(10px, 3vw, 18px); }
  .theme-roadside .ad-headline { font-size: clamp(1.35rem, 12.7cqi, 4.6rem); }
  .theme-roadside .ad-music .ad-headline { font-size: clamp(1.25rem, 10.8cqi, 4rem); }
  .theme-roadside .ad-preview .ad-headline { font-size: clamp(1.14rem, 8.6cqi, 3.5rem); }
  .theme-roadside .ad-house .slide-art { right: -30%; top: 58%; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

.how {
  padding-block: 14px 64px;
}

.how h2, .examples h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -.06em;
  line-height: 1;
}

.how-lede {
  margin-top: 10px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.45;
}

.how ol {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 26px 0 0;
  padding: 0;
}

.how li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
  font-size: 14.5px;
  line-height: 1.45;
}

.how li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
}

.how li strong { display: block; margin-bottom: 4px; font-size: 16px; }
.how-note { margin-top: 22px; color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .how ol { grid-template-columns: 1fr; gap: 14px; }
}

.examples { padding-bottom: 64px; }
.examples ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.examples li {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.examples a {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.examples a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .examples ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .examples ul { grid-template-columns: 1fr; }
}

