/* troudrain — static landing page */

:root {
  --background: oklch(0.985 0.006 85);
  --foreground: oklch(0.129 0.042 264.695);
  --spot: oklch(0.8 0.15 75);
  --ink: oklch(0.2 0.02 270);
  --ink-foreground: oklch(0.97 0.01 85);
  --primary: oklch(0.62 0.17 55);
  --primary-foreground: oklch(0.99 0 0);
  --muted: oklch(0.95 0.015 80);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --border: oklch(0.88 0.02 80);
  --radius: 0.625rem;

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ---------- header ---------- */

.site-header {
  background: var(--ink);
  color: var(--ink-foreground);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-accent { color: var(--spot); }

.header-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

/* ---------- hero ---------- */

.hero { position: relative; }

.hero img {
  height: 70vh;
  min-height: 420px;
  width: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink), rgba(0, 0, 0, 0.45) 45%, transparent);
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  color: var(--ink-foreground);
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--spot);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-copy h1 { font-size: 3rem; }
}

/* ---------- article ---------- */

.article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.byline b { color: var(--foreground); }

.avatar {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--ink);
  font-weight: 600;
  color: var(--ink-foreground);
}

.lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.45;
}

.article h2 {
  margin: 2.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.article p { margin: 1rem 0 0; }

.article ul {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.article li { margin: 0.5rem 0; }

/* ---------- figures ---------- */

.article figure {
  margin: 2.5rem 0;
}

.article figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.article figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted-foreground);
}

/* ---------- quote ---------- */

blockquote {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--spot);
  background: var(--muted);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
}

.attribution {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-style: normal;
  color: var(--muted-foreground);
}

/* ---------- cta ---------- */

.cta-box {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--ink);
  color: var(--ink-foreground);
  text-align: center;
}

.cta-box h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.cta-box p {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  opacity: 0.8;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  transition: filter 0.15s ease;
}

.cta:hover { filter: brightness(1.1); }

@media (min-width: 640px) {
  .cta-box h3 { font-size: 1.875rem; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.note { margin: 0.5rem 0 0; }

.legal {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.25rem 2rem;
}

@media (min-width: 640px) {
  .legal { grid-template-columns: 1fr 1fr; }
}

.legal > div { display: flex; gap: 0.5rem; }

.legal dt { font-weight: 600; color: var(--foreground); }

.legal dd { margin: 0; }

.copyright { margin: 1.5rem 0 0; }
