/* West Park Labs. Self-hosted font, no external requests. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f4f4f1;
  --ink: #161816;
  --ink-soft: #5b5f5a;
  --line: #d9d9d3;
  --accent: #2f6f62;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111312;
    --ink: #eceeea;
    --ink-soft: #9ea39c;
    --line: #2a2e2b;
    --accent: #7cc0b0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.page {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(1.5rem, 5vw, 4.5rem);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mark svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 1.5rem;
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--ink-soft);
  margin: 0;
  max-width: 28rem;
}

.meta {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.meta p {
  margin: 0;
}

.photo {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-color-scheme: dark) {
  .photo img {
    filter: brightness(0.7) contrast(1.05);
  }
}

@media (max-width: 48rem) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 38vh;
  }

  .photo {
    order: 2;
  }
}
