:root {
  --ink: #0e1828;
  --ink-deep: #080e18;
  --ink-lift: #18263d;
  --silver-hi: #f2f4f7;
  --silver: #b6bdc8;
  --silver-lo: #6c7584;
  --text: #d7dce4;
  --muted: #929baa;
  --gutter: clamp(20px, 4.5vw, 56px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ink-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: radial-gradient(120% 900px at 82% 0%, var(--ink-lift) 0%, var(--ink) 46%, var(--ink-deep) 100%) no-repeat var(--ink-deep);
  color: var(--text);
  font-family: "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: var(--silver);
  color: var(--ink-deep);
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--silver-lo);
}

a:hover {
  color: var(--silver-hi);
  text-decoration-color: var(--silver-hi);
}

a:focus-visible {
  outline: 2px solid var(--silver-hi);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-head,
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 32px;
  padding: clamp(20px, 3.2vw, 40px) var(--gutter);
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--silver-hi);
  text-decoration: none;
}

.site-head .contact {
  font-size: 1.0625rem;
}

.site-foot {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Home */

.home {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(24px, 6vh, 72px) var(--gutter) 0;
  overflow: hidden;
}

.statement {
  max-width: 21em;
  font-size: clamp(1.75rem, 3.6vw, 3.1rem);
}

.statement h1 {
  margin: 0;
  font-size: 1em;
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--silver-hi);
}

.statement p {
  margin: 0.9em 0 0;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.5vw, 1.3rem);
  color: var(--text);
}

.monogram {
  /* The line box must contain the round letters' overshoot: the foil is a
     background clipped to the text, and nothing is painted outside the box. */
  margin: clamp(8px, 2vh, 24px) 0 -0.06em -0.045em;
  padding-bottom: 0.02em;
  /* Bounded by the viewport height too, so the page fits a short laptop window without scrolling. */
  font-size: clamp(11rem, min(39vw, 52vh), 36rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
  white-space: nowrap;
  user-select: none;
  color: var(--silver);
  background-image: linear-gradient(
    100deg,
    #596373 0%,
    #c8ced7 18%,
    #76808e 38%,
    #f5f7fa 54%,
    #868f9d 70%,
    #bcc3cd 86%,
    #596373 100%
  );
  background-size: 230% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s 1 both;
}

@keyframes sheen {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}

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

/* Legal page */

.legal {
  padding: clamp(24px, 6vh, 72px) var(--gutter) clamp(40px, 8vh, 96px);
}

.legal > * {
  max-width: 40rem;
}

.legal h1 {
  margin: 0 0 1.2em;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 300;
  line-height: 1.16;
  color: var(--silver-hi);
}

.legal h2 {
  margin: 2.2em 0 0.5em;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--silver-hi);
}

.legal p {
  margin: 0 0 0.9em;
  font-size: 1.0625rem;
}

.legal address {
  font-style: normal;
}
