/* Undisturbed Automations. One stylesheet for every page.
   Fonts are self-hosted (fonts/). Nothing on the site loads from a third party. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400i.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dmmono-400.woff2") format("woff2");
}

:root {
  --black: #000000;
  --dark: #1a1a1a;
  --dark-hi: #272727;
  --mid: #8e8e8e;
  --light: #cfcec4;
  --white: #ffffff;
  --brown: #a0744a;
  --brown-hi: #b07f52;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", "SF Mono", Menlo, Consolas, monospace;
  --bar: 41px;
}

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

html {
  background: var(--black);
  color: var(--light);
  font-family: var(--mono);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

svg.mark { display: block; height: 1.1rem; width: auto; }

/* Type scale, named after what set.space does with it */

.label {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--mid);
}
.label.white { color: var(--white); }

.serif-xl {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--white);
}
.serif-l {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--white);
}
.serif-m {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0;
}
.prose, .prose p, .prose li {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--light);
}
.prose a { color: var(--white); border-bottom: 1px solid var(--mid); transition: border-color 0.2s; }
.prose a:hover { border-color: var(--white); }

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--bar);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 1.5rem;
  background: var(--black);
}
.site-header.bordered { border-bottom: 1px solid var(--dark); }
.site-header .left { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--light); white-space: nowrap; transition: color 0.2s; }
.brand:hover { color: var(--white); }
.brand svg { color: var(--light); }
.nav { display: flex; gap: 1rem; }
.nav a { color: var(--light); transition: color 0.2s; }
.nav a:hover { color: var(--white); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 1.8rem;
  padding: 0.32rem 0.6rem;
  border-radius: 0.25rem;
  background: var(--dark);
  border: 1px solid var(--dark-hi);
  color: var(--light);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.button:hover { border-color: var(--light); color: var(--white); }
.button.brown { background: var(--brown); border-color: var(--brown); color: var(--black); }
.button.brown:hover { background: var(--brown-hi); border-color: var(--brown-hi); color: var(--black); }
.buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }

/* Hero */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 36rem;
  padding: calc(var(--bar) + 0.5rem) 1.5rem 0 1.5rem;
  display: flex;
}
.hero-panel {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  background: var(--dark);
  border: 1px solid var(--dark-hi);
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
}
/* The same bottom fade set.space puts over its video frame, so the panel sinks into the page */
.hero-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(0deg, var(--black) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel > .hero-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  animation: none;
  transition: opacity 0.3s;
}
.hero-panel .mark { height: 3.25rem; color: var(--white); }
.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero-panel h1 span { display: block; }
.hero-panel h1 span + span { color: var(--light); }
.hero-panel .sub {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--light);
  max-width: 30rem;
  margin-top: -0.75rem;
}
.hero-panel .buttons { margin-top: 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-panel > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-panel > :nth-child(2) { animation-delay: 0.08s; }
  .hero-panel > :nth-child(3) { animation-delay: 0.16s; }
  .hero-panel > :nth-child(4) { animation-delay: 0.24s; }
  .hero-panel > :nth-child(5) { animation-delay: 0.32s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* Content */

.content {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 3rem 4rem 6.4rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 10rem;
}
.large-text { max-width: 60rem; }
.large-text .serif-l { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.2; }
.chapter { display: flex; flex-direction: column; }
.chapter > .label { margin-bottom: 1rem; }

.feature {
  border-top: 1px solid var(--dark);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 11fr;
  column-gap: 2rem;
  row-gap: 1.25rem;
}
.feature .num { color: var(--mid); }
.feature .prose { grid-column: 2; max-width: 44rem; }
.feature .buttons { grid-column: 2; justify-content: flex-start; margin-top: 0.5rem; }
.feature .email { grid-column: 2; }
.feature .email a {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: var(--white);
  border-bottom: 1px solid var(--mid);
  transition: border-color 0.2s;
  overflow-wrap: anywhere;
}
.feature .email a:hover { border-color: var(--white); }
.feature.solo { grid-template-columns: 1fr; }
.feature.solo > * { grid-column: 1; }

.column-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1rem;
  row-gap: 2rem;
  margin-top: 1rem;
}
.column-4 .cell { display: flex; flex-direction: column; gap: 0.25rem; }
.column-4 .cell .label { text-wrap: balance; }

/* Footer */

.site-footer {
  background: var(--brown);
  color: var(--black);
  width: 100%;
  display: flex;
  flex-direction: column;
  /* space between the wordmark and the rule: half of what the old fixed footer height left */
  gap: calc(4.4rem + 5.6vw);
}
.footer-logo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1rem;
  padding: 1.5rem;
}
.footer-logo span {
  font-family: var(--serif);
  font-size: 7.2vw;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--black);
}
.footer-details {
  border-top: 1px solid var(--black);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-details .statement {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3;
  color: var(--black);
  max-width: 60rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1rem;
  row-gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a, .footer-col span {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--black);
}
.footer-col a { transition: opacity 0.2s; }
.footer-col .lower { text-transform: none; }
.footer-col a:hover { opacity: 0.6; }
.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom .legal {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--black);
  opacity: 0.8;
  max-width: 48rem;
}
.footer-bottom .mark { height: 2rem; color: var(--black); }

/* Legal pages */

.page {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: calc(var(--bar) + 3rem) 1.5rem 8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.page h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--white);
  margin-top: 1.75rem;
}
.page h3 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-top: 1rem;
}
.page .meta { margin-bottom: 1rem; }
.page ul, .page ol { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.page .block {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--dark-hi);
  border-radius: 0.25rem;
  background: var(--dark);
}
.page .block p { margin: 0; }
.page .divider { border: 0; border-top: 1px solid var(--dark); margin: 1rem 0; }

/* 404 */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--bar) + 2rem) 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

/* Responsive */

@media (max-width: 950px) {
  .column-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .content { padding: 3rem 1.5rem 4.6rem 1.5rem; gap: 7rem; }
  .feature { grid-template-columns: 1fr; row-gap: 1rem; }
  .feature .prose, .feature .buttons, .feature .email { grid-column: 1; }
}

@media (max-width: 550px) {
  .nav { display: none; }
  .site-header { padding: 0.5rem 1rem; }
  .brand { gap: 0.5rem; }
  .button { min-height: 2.4rem; padding: 0 0.9rem; font-size: 0.875rem; }
  .hero { padding: calc(var(--bar) + 0.5rem) 0.75rem 0 0.75rem; min-height: 32rem; }
  .hero-panel { padding: 2.5rem 1.25rem; gap: 1.25rem; }
  .serif-xl { font-size: 2.5rem; }
  .serif-l { font-size: 1.75rem; }
  .hero-panel .sub { margin-top: -0.6rem; }
  .buttons { width: 100%; }
  .buttons .button { flex: 1 1 auto; }
  .content { padding: 2rem 1rem 3.4rem 1rem; gap: 5rem; }
  .column-4 { grid-template-columns: 1fr; }
  .site-footer { gap: 1rem; }
  .footer-logo, .footer-details { padding: 2rem 1rem; }
  .footer-logo { flex-direction: column; align-items: flex-start; }
  .footer-logo span { font-size: 15vw; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page { padding: calc(var(--bar) + 2rem) 1rem 6rem 1rem; }
  .prose, .prose p, .prose li { font-size: 1.0625rem; }
}
