@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/source-serif-4-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-style: italic; font-display: swap; src: url('fonts/source-serif-4-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }

:root {
  --paper: #f1ede4;
  --ink: #10231a;
  --muted: #5b6b61;
  --green: #008133;
  --clay: #d9622b;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 5.5vw, 5.5rem);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.mark i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--green); }

.hero { max-width: 40rem; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ''; width: 2.5rem; height: 1px; background: currentColor; }

h1 {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.1vw, 5.5rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--green); }

.lede {
  margin: 1.75rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Art panel: the picture fills it edge to edge */
.art {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100svh; /* never taller than the screen, whatever the picture or text height is */
  max-height: 100svh;
  overflow: hidden;
  background: #04100b; /* shows for a moment while the picture loads */
}
.art picture, .art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art img { object-fit: cover; object-position: 50% 45%; }

/* Entrance: lines rise in one after another; off when motion is reduced */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .rise:nth-child(2) { animation-delay: 120ms; }
  .rise:nth-child(3) { animation-delay: 240ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; grid-template-rows: 42svh auto; }
  .art { order: -1; position: relative; height: 42svh; max-height: 42svh; }
  .copy { gap: 2.5rem; padding-top: 2rem; padding-bottom: 1.5rem; }
}
