/* av.milanlal.com. Tokens first, then layout, then sections. See DESIGN.md. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
}

/* Dark is the base look (a dark room at a show). Light follows the visitor's setting. */
:root {
  color-scheme: dark;
  --bg: #0e0d0f;
  --bg-2: #151316;
  --surface: #1b191c;
  --surface-2: #242126;
  --ink: #f3efe9;
  --ink-2: #d7d1ca;
  --muted: #a49d96;
  --line: rgba(243, 239, 233, 0.12);
  --line-strong: rgba(243, 239, 233, 0.26);
  --grid: rgba(243, 239, 233, 0.055);
  --red: #ff3b3b;
  --red-ink: #ff5d55;
  --btn: #e02424;
  --btn-hover: #c41b1b;
  --btn-ink: #ffffff;
  --field: #121013;
  --mark-bg: #ffe14d;
  --mark-ink: #1b1600;
  --ok: #4ade80;
  /* Client logos are flattened to one tone. "rev" logos have light artwork. */
  --logo: grayscale(1) invert(1) brightness(1.5);
  --logo-rev: grayscale(1) brightness(1.2);
  --logo-opacity: 0.85;

  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px;
  --max: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f2ee;
    --bg-2: #ebe8e2;
    --surface: #ffffff;
    --surface-2: #f7f5f1;
    --ink: #131114;
    --ink-2: #2c282d;
    --muted: #5d5751;
    --line: rgba(19, 17, 20, 0.12);
    --line-strong: rgba(19, 17, 20, 0.28);
    --grid: rgba(19, 17, 20, 0.06);
    --red: #e02424;
    --red-ink: #c01c1c;
    --field: #ffffff;
    --ok: #15803d;
    --logo: grayscale(1) brightness(0.65) contrast(1.2);
    --logo-rev: grayscale(1) invert(1) brightness(0.65) contrast(1.2);
    --logo-opacity: 0.85;
  }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 10px; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A fact still to confirm. `npm run check:launch` fails while any are left. */
mark.tbd {
  background: var(--mark-bg);
  color: var(--mark-ink);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  border-bottom: 2px dashed rgba(27, 22, 0, 0.55);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: 600;
}

/* Labels in mono, like a cue sheet. */
.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.9375rem/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand img { width: 74px; height: 36px; }
.brand-divider { color: var(--line-strong); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav-links { display: none; }
@media (min-width: 768px) {
  .nav-links { display: flex; gap: 20px; }
  .nav-links a {
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
  }
  .nav-links a:hover { color: var(--ink); }
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.hero .wrap {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 48px;
}
.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 20px;
}
.tally {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.22);
}

.cues {
  font-size: clamp(2.125rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.cue {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0.14em 0 0.12em;
  border-top: 1px solid var(--line);
}
.cue:last-child { border-bottom: 1px solid var(--line); }
.cue-n {
  flex: none;
  width: 2.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--red-ink);
}
.hero-intro {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 1.125rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Booking sheet */
.sheet {
  align-self: start;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sheet dl { margin: 0; }
.sheet dl > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.sheet dt { padding-top: 0.2em; }
.sheet dd { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.sheet dd a { font-weight: 600; text-underline-offset: 3px; }
.sheet .btn { width: 100%; margin-top: 18px; }

@media (min-width: 1024px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: end;
    padding-top: 64px;
    padding-bottom: 72px;
  }
}

/* Sections */
.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head h2, .contact-copy h2 {
  font-size: clamp(1.875rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-head p { max-width: 38rem; color: var(--muted); }
@media (min-width: 1024px) {
  .section { padding: 80px 0; }
}

/* The work */
.work {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.work li {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 20px 24px;
  background: var(--surface);
}
.work .label { color: var(--red-ink); }
.work h3 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.work p { color: var(--ink-2); }
@media (min-width: 768px) {
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work li { padding: 28px; }
}

/* Calendar */
.calendar-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}
.calendar-frame iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}
@media (min-width: 768px) {
  .calendar-frame iframe { height: 600px; }
}
.calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-underline-offset: 3px;
}
.calendar-link:hover { color: var(--ink); }

/* Clients */
.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.logos li {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 18px 14px;
  background: var(--bg-2);
}
.logos img {
  width: auto;
  max-width: min(100%, 230px);
  max-height: 40px;
  filter: var(--logo);
  opacity: var(--logo-opacity);
}
.logos img.rev { filter: var(--logo-rev); }
/* Nine logos in two columns leave one gap, so the last one takes the full row. */
.logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos li:last-child:nth-child(odd) { grid-column: auto; }
  .logos li { min-height: 112px; padding: 24px; }
  .logos img { max-height: 44px; }
}

.quotes {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.quote {
  display: grid;
  align-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: var(--surface);
}
.quote p {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.quote footer { font-size: 0.9375rem; color: var(--muted); }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink); }
.quote .show { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
@media (min-width: 1024px) {
  .quotes { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Contact */
.contact .wrap { display: grid; gap: 36px; }
.contact-copy { display: grid; gap: 18px; align-content: start; }
.headshot {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface-2);
}
.contact-copy > p { color: var(--ink-2); max-width: 30rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-underline-offset: 3px;
}
@media (min-width: 1024px) {
  .contact .wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; }
  .headshot { width: 160px; height: 160px; }
}

.form {
  display: grid;
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
@media (min-width: 768px) {
  .form { padding: 32px; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .form .full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 700; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid transparent; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 7px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.check input, .agree input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--btn);
}
.check:has(input:checked) { border-color: var(--red); background: rgba(255, 59, 59, 0.1); }
.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
}
.agree input { margin-top: 2px; flex: none; }
.agree a { font-weight: 600; text-underline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-size: 0.9375rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: var(--ok); font-weight: 600; }
.form-status[data-state="error"] { color: var(--red-ink); font-weight: 600; }
.form-status a { color: inherit; font-weight: 700; }
/* Honeypot: off screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: 32px 0 40px; color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ink); }

/* Plain pages (privacy, thanks, 404) */
.page { padding: 48px 0 64px; }
.page .wrap { max-width: calc(44rem + var(--gutter) * 2); }
.page h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.page h2 { font-size: 1.25rem; font-weight: 800; margin: 32px 0 8px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 1.2em; margin: 8px 0 0; }
.page .btn { margin-top: 28px; }
