@font-face {
  font-family: "Editorial Garamond";
  src: url("/assets/EBGaramond-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --ink: #191814;
  --muted: #5e5a50;
  --accent: #9c3d2c;
  --rule: rgba(25, 24, 20, 0.22);
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
}

::selection {
  background: var(--accent);
  color: #fff;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.masthead,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-color: var(--rule);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead {
  border-bottom: 1px solid var(--rule);
}

.footer {
  border-top: 1px solid var(--rule);
}

.wordmark {
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

main {
  display: grid;
  align-items: center;
  padding: clamp(72px, 13vh, 160px) 0;
}

.hero {
  position: relative;
  max-width: 1040px;
}

.hero::before {
  display: block;
  width: clamp(72px, 11vw, 156px);
  height: 8px;
  margin-bottom: clamp(30px, 5vw, 64px);
  background: var(--accent);
  content: "";
  transform-origin: left center;
  animation: reveal-rule 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: "Editorial Garamond", Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-wrap: balance;
}

.intro {
  max-width: 38rem;
  margin: clamp(34px, 5vw, 60px) 0 0 clamp(0px, 15vw, 190px);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.footer span:last-child {
  color: var(--accent);
}

@keyframes reveal-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 28px, 1240px);
  }

  .masthead,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }

  main {
    padding: 64px 0 72px;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .intro {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}
