/* Brandmoves — one page. Black, white, serif; chess at the heart. */
:root {
  --bg: #000;
  --ink: #f2f0ec;
  --muted: #9a958d;
  --line: #262420;
  --accent: #d6342c; /* the red pawn in The Brand's Gambit */
  --serif: 'Libre Baskerville', Baskerville, Georgia, serif;
  /* futura-pt-bold comes from the Adobe Fonts kit (licensed for web). The old site named 'Mohr Bold' but never served
     it as a web font, so only machines with Mohr installed ever saw it. Switch here once a Mohr web licence exists. */
  --display: 'futura-pt-bold', 'Futura PT', Futura, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 20px; }
h3 { font-size: 22px; margin-bottom: 6px; }
p { margin: 0; }

.top, main > section, footer {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
.logo img { width: 104px; height: auto; }
.top nav { display: flex; gap: 28px; }
.top nav a {
  font: 400 12px/1 var(--serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.top nav a:hover { color: var(--ink); }

main > section { padding-block: clamp(56px, 9vw, 112px); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 48px) !important;
}
.kicker {
  margin-top: 20px;
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
}

/* Hello + offer */
.hello p { max-width: 34ch; font-size: clamp(18px, 2vw, 22px); }
.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 48px !important;
}
.offer p { color: var(--muted); }

/* Work */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.tile { grid-column: span 2; text-decoration: none; }
.tile:nth-child(4), .tile:nth-child(5) { grid-column: span 3; } /* design work: two wide tiles under three AI tiles */
.tile img, .tile video {
  height: auto; /* a video's height attribute would otherwise beat aspect-ratio */
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: opacity 0.2s;
}
a.tile:hover img { opacity: 0.85; }
.caption {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.caption strong {
  display: block;
  font: 700 16px/1.3 var(--display);
  color: var(--ink);
}

/* Quote */
.quote blockquote {
  margin: 0;
  max-width: 46ch;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.quote p { font-style: italic; font-size: clamp(18px, 2vw, 21px); }
.quote cite { display: block; margin-top: 12px; font-style: italic; color: var(--muted); }

/* Contact */
.contact { text-align: center; }
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  border: 1px solid var(--ink);
  font: 400 13px/1 var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--ink); color: var(--bg); }

footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Long-form pages (the Tab Manager privacy policy): one readable column. */
.policy {
  width: min(68ch, 100% - 2 * var(--gutter));
  margin: 32px auto 96px;
  font-size: 16px;
}
.policy h1 { font-size: clamp(28px, 4vw, 40px); margin: 32px 0 12px; }
.policy h2 { font-size: 22px; margin: 36px 0 10px; }
.policy p, .policy ul { margin: 0 0 14px; color: var(--ink); }
.policy li { margin-bottom: 6px; }
.policy code { font-size: 0.9em; background: var(--line); padding: 1px 5px; }

/* Phone */
@media (max-width: 760px) {
  /* minmax(0, 1fr), not 1fr: a plain 1fr column never shrinks below its widest child (the photo), which pushed the
     page wider than the phone. */
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { order: -1; width: 100%; max-width: 420px; }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile:nth-child(4), .tile:nth-child(5) { grid-column: auto; }
}
