:root {
  color-scheme: light;
  --paper: #f1eee6;
  --ink: #171814;
  --muted: #62645c;
  --line: rgba(23, 24, 20, 0.18);
  --accent: #3157d5;
  --accent-dark: #2443a8;
  --focus: #ff6b35;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  min-height: 100svh;
}

.intro {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: clamp(28px, 4.4vw, 72px);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.monogram {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  text-decoration: none;
}

.copy {
  align-self: center;
  max-width: 690px;
  padding-block: clamp(64px, 10vh, 140px);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.7rem, 8.3vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.78;
}

.lede {
  max-width: 590px;
  margin: clamp(38px, 5.4vw, 72px) 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 1.7vw, 1.75rem);
  line-height: 1.42;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.button-quiet:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.button:focus-visible,
.monogram:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.83rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27864f;
  box-shadow: 0 0 0 4px rgba(39, 134, 79, 0.13);
}

.portrait {
  position: sticky;
  top: 0;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  background: #c8ccba;
}

.portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(10, 12, 7, 0.42));
  content: "";
  pointer-events: none;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.portrait figcaption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 24px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 840px) {
  .page {
    display: flex;
    flex-direction: column-reverse;
  }

  .intro {
    min-height: auto;
    padding: 28px 24px 34px;
  }

  .masthead {
    order: 0;
  }

  .copy {
    padding-block: 64px 70px;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 6.6rem);
  }

  .lede {
    font-size: 1.28rem;
  }

  .portrait {
    position: relative;
    height: min(68svh, 700px);
  }

  .portrait img {
    object-position: center 38%;
  }
}

@media (max-width: 500px) {
  .masthead span {
    max-width: 110px;
    text-align: right;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
