@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/cormorant-roman.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-italic.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/eb-garamond-roman.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/eb-garamond-italic.woff2") format("woff2");
}

:root {
  --bg: #0e0e10;
  --ink: #ede9e1;
  --bright: #f7f6f3;
  --muted: #a39e96;
  --accent: #c4b08a;
  --selection: #3d3c39;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "EB Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --measure: 72ch;
  --text-col: 44rem;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: 0.004em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
  color: var(--bright);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.7rem 0.85rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, 40rem);
  margin-inline: auto;
}

.site-header {
  padding-top: 1.35rem;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.header-contact {
  flex: none;
  color: inherit;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  padding: 0.7rem 0.15rem;
  margin: -0.35rem -0.15rem -0.35rem 0;
}

.header-contact:hover {
  text-decoration-thickness: 2px;
}

.hero {
  padding-top: clamp(2.25rem, 6vh, 3.25rem);
}

h1 {
  margin: 0;
  max-width: min(12.4em, 100%);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.45rem, 8.2vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-label {
  margin: 0 0 0.95rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.about {
  margin-top: clamp(2.75rem, 5vh, 3.5rem);
}

.about-copy {
  min-width: 0;
}

.prose {
  max-width: 100%;
}

.prose p {
  margin: 0;
}

.fn {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.65em;
  font-weight: 500;
  line-height: 0;
  vertical-align: super;
  text-decoration: none;
  margin-left: 0.15em;
}

.fn:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.15em;
}

.notes {
  margin: 2.35rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.004em;
  scroll-margin-top: 1.5rem;
}

.note-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.note-link:hover {
  text-decoration-thickness: 2px;
}

.statement {
  margin: 1.7rem 0 0;
  max-width: 16em;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.15rem, 3.3vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.statement .term {
  color: var(--accent);
}

.lexicon {
  max-width: 28rem;
  margin-top: 1.15rem;
}

.lex-head {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.lex-def {
  margin: 0;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--muted);
}

.beliefs {
  margin-top: 5rem;
}

.beliefs ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.beliefs li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: baseline;
}

.beliefs li + li {
  margin-top: 2.15rem;
}

.beliefs .num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.beliefs p {
  margin: 0;
}

.close {
  margin-top: 5rem;
}

.close p + p {
  margin-top: 1.75rem;
}

.talk {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.talk:hover {
  text-decoration-thickness: 2px;
}

.contact {
  margin-top: 0.9rem;
  scroll-margin-top: 1.5rem;
}

.email {
  color: var(--muted);
  font-family: var(--serif);
  font-weight: 450;
  font-size: 1.05rem;
  letter-spacing: 0.004em;
  line-height: 1.4;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.email:hover {
  text-decoration-thickness: 2px;
}

.copyright {
  margin: 6rem 0 0;
  padding-bottom: 2.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1100px) {
  .wrap {
    width: min(100% - 4rem, var(--text-col));
  }

  .site-header {
    padding-top: 1.7rem;
  }

  .site-header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .brand {
    font-size: 1.25rem;
  }

  .notes {
    margin-top: 2.75rem;
  }

  .hero {
    padding-top: clamp(3rem, 6vh, 4.25rem);
  }

  h1 {
    max-width: none;
    font-size: clamp(3.15rem, 3.7vw, 3.85rem);
  }

  .about {
    margin-top: 4.25rem;
  }

  .beliefs {
    margin-top: 5.5rem;
  }

  .beliefs li + li {
    margin-top: 2.65rem;
  }

  .statement {
    font-size: 2.9rem;
  }

  .close {
    margin-top: 5.5rem;
  }

  .contact {
    margin-top: 1rem;
  }

  .email {
    font-size: 1.0625rem;
    overflow-wrap: normal;
  }

  .copyright {
    margin-top: 7rem;
  }
}

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

@media print {
  .hero {
    padding-top: 1.5rem;
  }

  .site-header {
    padding-top: 0;
  }

  a {
    text-decoration: none;
  }
}
