:root {
  --ground: oklch(0 0 0);
  --ink: oklch(1 0 0);
  --text: oklch(0.93 0 0);
  --dim: oklch(0.68 0 0);
  --line: oklch(0.46 0 0);

  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --header-h: 4.5rem;

  color-scheme: dark;
  scrollbar-color: var(--line) var(--ground);
}

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

html {
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--ground);
}

/* One bold voice in four sizes: display for the one statement, title for section heads, sub for the things inside them, label for names and captions. */
.display,
.title,
.sub,
.label,
.site-header__nav,
.board__list {
  font-weight: 700;
  color: var(--ink);
}

.display {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.title {
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.sub {
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.label,
.site-header__nav,
.board__list {
  font-size: 0.9375rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.label span {
  font-weight: 400;
  color: var(--dim);
}

/* Header: the mark and the three doors. On the homepage site.js opens them into the hero and docks them here on scroll. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ground);
  /* Fills in only once the mark and doors have arrived. */
  opacity: calc((var(--dock, 1) - 0.96) * 25);
}

.site-header__mark img {
  width: auto;
  height: 2.5rem;
}

.site-header__nav {
  display: flex;
  gap: 2em;
  white-space: nowrap;
}

.site-header__nav a {
  display: grid;
  align-items: center;
  height: var(--header-h);
  color: var(--dim);
  text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current],
.dock:not(.is-docked) .site-header__nav a {
  color: var(--ink);
}

.dock .site-header__mark,
.dock .site-header__nav {
  position: fixed;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.dock .site-header__mark img {
  height: clamp(6.5rem, 25svh, 15rem);
}

.dock .site-header__nav {
  font-size: clamp(1.1rem, 2.1vw, 1.9rem);
  letter-spacing: -0.02em;
}

.page-home .site-header__mark,
.page-home .site-header__nav {
  visibility: hidden;
}

.dock-ready .site-header__mark,
.dock-ready .site-header__nav {
  visibility: visible;
}

/* Every section after the hero slides over the pinned footage and opens under a heavy rule. */
main > section:not(.hero),
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ground);
}

main > section:not(.hero) {
  padding-top: clamp(4rem, 8vw, 7.5rem);
}

.head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: baseline;
  column-gap: 1.5rem;
  margin: 0 var(--gutter) clamp(1.75rem, 3vw, 2.75rem);
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}

.head .title {
  grid-column: 1 / span 7;
}

.head p {
  grid-column: 9 / -1;
}

/* Slots are wireframe placeholders for photography that has not been supplied yet: an outlined box crossed corner to corner. */
.slot {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.slot .label {
  padding: 0.5em 0.9em;
  background: var(--ground);
  text-align: center;
}

/* Wire bars stand in for text that has not been supplied yet. */
.wire {
  display: block;
  width: 40%;
  height: 0.5rem;
  margin-top: 0.5rem;
  background: var(--line);
}

.wire--title {
  width: 68%;
  height: 0.85rem;
}

/* Footer */
.site-footer {
  padding: clamp(5rem, 11vw, 9.5rem) var(--gutter) 2.5rem;
}

.site-footer .board {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.board__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2em;
}

.board__item {
  text-decoration: none;
}

.board__item:hover {
  text-decoration: underline;
}

.board__item.is-unlit,
.board__item small {
  font-weight: 400;
  color: var(--dim);
}

.board__item small {
  font-size: inherit;
}

.site-footer__base {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 1.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer__base img {
  width: 3.5rem;
  height: auto;
}

.site-footer__legal {
  grid-column: 1 / -1;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  white-space: nowrap;
}

@media (max-width: 52rem) {
  :root {
    --header-h: 3.75rem;
  }

  .site-header__mark img {
    height: 2rem;
  }

  .site-header__nav {
    gap: 1.3em;
    font-size: 0.875rem;
  }

  .head .title,
  .head p {
    grid-column: 1 / -1;
  }

  .head p {
    margin-top: 0.75rem;
  }

  .site-footer__base {
    grid-template-columns: auto 1fr;
  }

  .site-footer__socials {
    grid-column: 1 / -1;
  }
}
