:root {
  --paper: #f0f0eb;
  --ink: #121719;
  --muted: #60686a;
  --line: rgba(18, 23, 25, 0.19);
  --accent: #24556b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.page-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 3.25rem;
  overflow: hidden;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 7.25rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  display: grid;
  grid-template-columns: repeat(2, 0.34rem);
  grid-template-rows: repeat(2, 0.34rem);
  gap: 0.12rem;
  width: 0.8rem;
  height: 0.8rem;
  transform: rotate(45deg);
}

.wordmark-mark span {
  display: block;
  background: var(--ink);
}

.wordmark-mark span:nth-child(2) {
  background: var(--accent);
}

.header-meta {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(30rem, 6.9fr) minmax(16rem, 2.3fr);
  column-gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 7vh, 7rem) 0;
}

.hero::before {
  position: absolute;
  inset: 0 auto 0 calc(100% - clamp(11rem, 18vw, 18rem));
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--line) 17%,
    var(--line) 83%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 61rem;
  animation: intro-in 550ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.8rem, 7.2vw, 8.4rem);
  font-weight: 500;
  letter-spacing: -0.067em;
  line-height: 0.87;
}

.intro {
  max-width: 35rem;
  margin: clamp(2.2rem, 5vh, 4rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.22vw, 1.2rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.6;
}

.identity-panel {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 27rem;
  padding: 0.15rem 0 0;
  animation: panel-in 650ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel-rule {
  width: 100%;
  height: 0.45rem;
  background: var(--accent);
}

.monogram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--ink);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.08em;
  line-height: 0.78;
}

.monogram span:last-child {
  color: var(--accent);
  text-align: right;
}

.site-footer {
  min-height: 5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@keyframes intro-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 960px) {
  .page-shell {
    padding: 0 1.5rem;
    overflow: visible;
  }

  .site-header {
    min-height: 6.25rem;
  }

  .header-meta {
    text-align: right;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 4rem 0 3.5rem;
  }

  .hero::before {
    display: none;
  }

  h1 {
    max-width: 10.5ch;
    font-size: clamp(3.25rem, 13vw, 6.5rem);
  }

  .intro {
    max-width: 31rem;
  }

  .identity-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2.5rem 1.5rem;
    min-height: 0;
    margin-top: 5rem;
    padding: 0;
  }

  .panel-rule {
    grid-column: 1 / -1;
  }

  .monogram {
    align-self: end;
    width: min(48vw, 15rem);
  }

  .site-footer {
    min-height: 5.75rem;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 0 1.1rem;
  }

  .site-header {
    min-height: 5.5rem;
  }

  .wordmark {
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 3.3rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .intro {
    font-size: 1rem;
    line-height: 1.55;
  }

  .identity-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 4.25rem;
  }

  .monogram {
    width: 11rem;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: center;
    gap: 0.3rem 1rem;
    min-height: 6.6rem;
  }

  .site-footer p:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .identity-panel {
    animation: none;
  }

}
