/* Marketing site styles. Values follow the design system tokens (apps/app/src/styles/tokens.css). */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Two library fonts for the invented sample brands (our renamed OFL forks, Latin subset, one weight). */
@font-face {
  font-family: "Krus Serif";
  src: url("/fonts/krus-serif-latin-480.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Syren Display";
  src: url("/fonts/syren-display-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("/fonts/silkscreen-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #e3e3e0;
  --panel: #eeeeeb;
  --stage: #dadad6;
  --ink: #111112;
  --mute: #5e5f62;
  --line: rgba(17, 17, 18, 0.12);
  --line-strong: #7a7a76;
  --on-ink: #eeeeeb;
  --accent: #2d47d9;
  --area-brand: #1f8a57;
  --area-product: #3553f0;
  --area-web: #f2541b;
  --area-print: #e86e98;
  --gutter: 16px;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-pixel: Silkscreen, ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --panel: #151618;
    --stage: #111214;
    --ink: #ededed;
    --mute: #8b8c8f;
    --line: #252628;
    --line-strong: #6b6c70;
    --on-ink: #0a0a0a;
    --accent: #7c93ff;
    --area-brand: #2fa36b;
    --area-product: #4c6bff;
    --area-web: #ff5a1f;
    --area-print: #ff8fb1;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px / 1.6 var(--font-sans);
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -48px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  z-index: 1;
}

.skip:focus {
  top: 12px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.lockup {
  display: block;
  height: 32px;
  width: auto;
}

.lockup-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .lockup-dark {
    display: none;
  }
  .lockup-light {
    display: block;
  }
}

.top ul,
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.top nav a:hover {
  background: var(--panel);
}

.top nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0 0 16px;
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  margin: 48px 0 12px;
  font-size: 1.375rem;
  font-weight: 600;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}

p,
li {
  max-width: 68ch;
}

.lede {
  color: var(--mute);
  font-size: 1.125rem;
}

.label {
  display: block;
  margin-bottom: 12px;
  color: var(--mute);
  font: 10px / 1.4 var(--font-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fig,
code {
  font-family: var(--font-mono);
  font-size: 0.9375em;
}

.display {
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.panel {
  margin: 24px 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  font: 600 1rem / 1 var(--font-sans);
  cursor: pointer;
}

.button:hover {
  opacity: 0.88;
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--panel);
  font-weight: 600;
}

.meta {
  color: var(--mute);
  font-size: 0.9375rem;
}

.foot {
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.875rem;
}

.foot p {
  margin: 0 0 6px;
}

.foot strong {
  color: var(--ink);
  font-weight: 600;
}

.foot-links {
  margin-top: 12px;
  gap: 4px 20px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
  main {
    padding-top: 72px;
  }
  h1 {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

caption {
  padding: 12px 14px 0;
  text-align: left;
  caption-side: top;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Launch-list form ---------- */

.notify {
  margin: 28px 0 0;
  max-width: 520px;
}

.notify-title {
  margin: 0 0 4px;
  font-weight: 600;
}

.notify-label {
  display: block;
  margin-bottom: 6px;
  color: var(--mute);
  font-size: 0.875rem;
}

.notify-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notify input[type="email"] {
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font: 400 1rem / 1 var(--font-sans);
}

.notify input[type="email"]::placeholder {
  color: var(--mute);
  opacity: 1;
}

.notify input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.notify-note {
  margin: 10px 0 0;
  color: var(--mute);
  font-size: 0.875rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 480px) {
  .notify-row {
    flex-direction: row;
  }
  .notify-row input[type="email"] {
    flex: 1;
  }
}

/* ---------- Home page ---------- */

main.home {
  max-width: 1200px;
  padding-top: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero .display {
  margin: 0 0 20px;
  font-size: clamp(2.75rem, 12vw, 5.5rem);
  line-height: 1;
}

.hero .lede {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
}

.section {
  margin-top: 96px;
}

.section h2 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.section h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.section p {
  margin: 0 0 16px;
}

/* Sample brand switcher: the radios restyle the files below without any script. */

.demo {
  min-width: 0;
}

.switch {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.switch legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--mute);
  font: 10px / 1.4 var(--font-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.switch-options {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.switch label {
  position: relative;
  display: inline-flex;
}

.switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--mute);
  font-weight: 600;
  transition:
    background-color 200ms,
    color 200ms;
}

.switch input:hover + span {
  color: var(--ink);
}

.switch input:checked + span {
  background: var(--ink);
  color: var(--on-ink);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stage {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--stage);
}

.stage figcaption {
  margin: 12px 4px 0;
  color: var(--mute);
  font-size: 0.8125rem;
}

.files {
  /* The bakery (first sample brand). */
  --b-bg: #f5ecdd;
  --b-ink: #3b2417;
  --b-accent: #b3452a;
  --b-on-accent: #fff8ef;
  --b-font: "Krus Serif", Georgia, serif;
  --b-weight: 400;
  --b-track: -0.01em;
  --b-shape: 50%;
  --b-button: 999px;
  --b-initial: "M";
  --b-name: "Mjöl bakery";
  --b-role: "Head baker";
  --b-line: "Bread worth getting up for.";
  --b-tag: "Open 7 to 3, every day";
  --b-cta: "Order bread";
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo:has(input[value="studio"]:checked) .files {
  --b-bg: #141414;
  --b-ink: #f1f1ea;
  --b-accent: #c6f04d;
  --b-on-accent: #141414;
  --b-font: "Syren Display", system-ui, sans-serif;
  --b-weight: 700;
  --b-track: -0.02em;
  --b-shape: 3px;
  --b-button: 3px;
  --b-initial: "P";
  --b-name: "Puls studio";
  --b-role: "Creative director";
  --b-line: "Loud ideas. Clean lines.";
  --b-tag: "New work every Friday";
  --b-cta: "See the work";
}

.demo:has(input[value="lab"]:checked) .files {
  --b-bg: #eef3fb;
  --b-ink: #0c2340;
  --b-accent: #2355e0;
  --b-on-accent: #ffffff;
  --b-font: var(--font-sans);
  --b-weight: 600;
  --b-track: -0.03em;
  --b-shape: 30%;
  --b-button: 10px;
  --b-initial: "F";
  --b-name: "Fjord labs";
  --b-role: "Research lead";
  --b-line: "Science you can read.";
  --b-tag: "Water tests for small towns";
  --b-cta: "Book a test";
}

.file {
  position: relative;
  /* An explicit width keeps aspect-ratio from sizing the file off the row height. */
  width: 100%;
  min-width: 0;
  align-self: start;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--b-bg);
  color: var(--b-ink);
  box-shadow: 0 1px 2px rgba(17, 17, 18, 0.12);
  transition:
    background-color 300ms,
    color 300ms;
}

.file * {
  transition:
    background-color 300ms,
    color 300ms,
    border-radius 300ms;
}

.mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1em;
  height: 1em;
  border-radius: var(--b-shape);
  background: var(--b-accent);
  color: var(--b-on-accent);
}

.mark::before {
  content: var(--b-initial);
  font: var(--b-weight) 0.56em / 1 var(--b-font);
}

.file-name::before {
  content: var(--b-name);
}

.file-name {
  font-family: var(--b-font);
  font-weight: var(--b-weight);
  letter-spacing: var(--b-track);
}

/* Business card */
.file-card {
  grid-column: 1 / -1;
  aspect-ratio: 1.75;
  /* Padding in % (of the file's width): cqi on a container itself would use the viewport. */
  padding: 7% 8%;
}

.file-card .mark {
  font-size: 11cqi;
}

.file-card .file-name {
  margin-top: 4cqi;
  font-size: 7cqi;
  line-height: 1.1;
}

.file-card .card-person {
  margin-top: auto;
  font-size: 4.2cqi;
  font-weight: 600;
}

.file-card .card-role::before {
  content: var(--b-role);
}

.file-card .card-role {
  font-size: 3.6cqi;
  opacity: 0.75;
}

.card-lines {
  position: absolute;
  right: 8cqi;
  bottom: 7cqi;
  display: grid;
  justify-items: end;
  gap: 2.2cqi;
}

.card-lines i,
.bars i,
.web-links i {
  display: block;
  height: 1.6cqi;
  border-radius: 1cqi;
  background: currentColor;
  opacity: 0.3;
}

.card-lines i {
  width: 22cqi;
}

.card-lines i + i {
  width: 16cqi;
}

/* Social post */
.file-post {
  aspect-ratio: 4 / 5;
  padding: 9%;
  background: var(--b-accent);
  color: var(--b-on-accent);
}

.file-post .mark {
  font-size: 16cqi;
  background: var(--b-on-accent);
  color: var(--b-accent);
}

.post-line::before {
  content: var(--b-line);
}

.post-line {
  margin-top: auto;
  font: var(--b-weight) 12.5cqi / 1.02 var(--b-font);
  letter-spacing: var(--b-track);
}

.post-tag::before {
  content: var(--b-tag);
}

.post-tag {
  margin-top: 5cqi;
  font-size: 5.6cqi;
  opacity: 0.85;
}

/* Letter */
.file-letter {
  aspect-ratio: 4 / 5;
  padding: 10%;
}

.letter-head {
  display: flex;
  align-items: center;
  gap: 4cqi;
  padding-bottom: 7cqi;
  border-bottom: 0.8cqi solid var(--b-accent);
}

.letter-head .mark {
  font-size: 13cqi;
}

.letter-head .file-name {
  font-size: 8cqi;
}

.bars {
  display: grid;
  gap: 5cqi;
  margin-top: 10cqi;
}

.bars i {
  height: 2.6cqi;
}

.bars i:nth-child(3n) {
  width: 70%;
}

.bars i:nth-child(4) {
  margin-top: 5cqi;
}

/* Web page */
.file-web {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.web-chrome {
  display: flex;
  gap: 1.4cqi;
  padding: 2.2cqi 3cqi;
  background: rgba(127, 127, 127, 0.18);
}

.web-chrome i {
  width: 1.8cqi;
  height: 1.8cqi;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.web-nav {
  display: flex;
  align-items: center;
  gap: 2.4cqi;
  padding: 4cqi 6cqi;
}

.web-nav .mark {
  font-size: 6cqi;
}

.web-nav .file-name {
  font-size: 4cqi;
}

.web-links {
  display: flex;
  gap: 3cqi;
  margin-left: auto;
}

.web-links i {
  width: 8cqi;
  height: 1.4cqi;
}

.web-line::before {
  content: var(--b-line);
}

.web-line {
  margin: auto 6cqi 0;
  max-width: 14ch;
  font: var(--b-weight) 8.4cqi / 1.02 var(--b-font);
  letter-spacing: var(--b-track);
}

.web-button::before {
  content: var(--b-cta);
}

.web-button {
  align-self: flex-start;
  margin: 4cqi 6cqi 7cqi;
  padding: 2.2cqi 4.4cqi;
  border-radius: var(--b-button);
  background: var(--b-accent);
  color: var(--b-on-accent);
  font-size: 3.4cqi;
  font-weight: 600;
}

/* Areas */
.areas {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.areas li {
  max-width: none;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.areas .label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.areas .label::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--area);
}

.areas li:nth-child(2) .label::before {
  border-radius: 50%;
}

.areas p {
  margin: 0;
}

.area-brand {
  --area: var(--area-brand);
}
.area-product {
  --area: var(--area-product);
}
.area-web {
  --area: var(--area-web);
}
.area-print {
  --area: var(--area-print);
}

/* Steps */
.steps {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  max-width: none;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.step-no {
  display: block;
  margin-bottom: 12px;
  color: var(--mute);
  font: 400 0.875rem / 1 var(--font-mono);
}

.steps p {
  margin: 0;
  color: var(--mute);
}

/* Fair and agents */
.split {
  display: grid;
  gap: 56px;
}

.split .label {
  margin-top: 8px;
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.formats li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 400 0.875rem / 1 var(--font-mono);
}

/* Closing */
.closing {
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.closing .display-2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.closing .lede {
  margin: 0;
}

.closing .notify input[type="email"] {
  background: var(--bg);
}

@media (min-width: 720px) {
  main.home {
    padding-top: 56px;
  }
  .files {
    gap: 14px;
  }
  .areas {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .closing {
    padding: 56px 48px;
  }
}

@media (min-width: 1040px) {
  .hero-text {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: end;
  }
  .hero-text .label {
    grid-column: 1 / -1;
  }
  .hero .display {
    grid-row: 2 / 4;
    margin: 0;
  }
  .hero .lede {
    grid-column: 2;
  }
  .hero #notify {
    grid-column: 2;
  }
  /* All four files in one row, sized so they share a height. */
  .files {
    grid-template-columns: 1.75fr 0.8fr 0.8fr 1.6fr;
    gap: 16px;
    align-items: center;
  }
  .file-card,
  .file-web {
    grid-column: auto;
  }
  .file-web {
    aspect-ratio: 1.6;
  }
  .stage {
    padding: 24px;
  }
  .hero {
    gap: 72px;
  }
  .areas {
    grid-template-columns: repeat(4, 1fr);
  }
  .section {
    margin-top: 128px;
  }
}
