:root {
  color-scheme: light dark;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1c1a16;
  --muted: #6b665c;
  --line: #e4e0d6;
  --accent: #c2410c;
  --thumb-bg: #ece8de;
  --shadow: 0 1px 2px rgb(28 26 22 / 0.06), 0 8px 24px -12px rgb(28 26 22 / 0.18);
  --serif: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --surface: #201f19;
    --text: #ece8de;
    --muted: #a39d90;
    --line: #34322a;
    --accent: #fb923c;
    --thumb-bg: #2a2821;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

header, main, footer {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  header, main, footer { padding-inline: 32px; }
}

header { padding-top: clamp(40px, 9vw, 96px); padding-bottom: clamp(24px, 5vw, 48px); }

.eyebrow {
  margin: 0 0 8px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--accent);
}

h1 {
  margin: 0;
  font: 600 clamp(36px, 7vw, 60px)/1.05 var(--serif);
  letter-spacing: -0.02em;
}

.lede {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 2.2vw, 19px);
  color: var(--muted);
}
.lede a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.thumb {
  aspect-ratio: 16 / 10;
  background: var(--thumb-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb.monogram {
  display: grid;
  place-items: center;
  font: 600 56px/1 var(--serif);
  color: var(--muted);
}

.body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }

.tile h2 {
  margin: 0;
  font: 600 20px/1.25 var(--serif);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.tile p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }

.domain { font: 13px/1.4 var(--mono); color: var(--accent); overflow-wrap: anywhere; }

footer {
  margin-top: 56px;
  padding-bottom: 48px;
  font-size: 15px;
  color: var(--muted);
}
footer::before { content: ''; display: block; border-top: 1px solid var(--line); margin-bottom: 24px; }
footer > a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover { transform: none; }
}
