/* Palette taken from the original logo: near-black ink, white field, amber #d87010. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-medium.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #141414;
  --amber: #d87010;
  --line: rgba(20, 20, 20, 0.22);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  height: 100%;
  hyphens: manual;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

:focus {
  outline: none;
}

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

img {
  max-width: 100%;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 180ms ease;
}

a:hover,
a[aria-current="page"] {
  background-size: 100% 1px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
  background-image: none;
}

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

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
}

.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
}

.home main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 0.5rem;
}

.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.lockup h1 {
  width: min(34rem, 86vw);
  margin: 0;
}

.lockup img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
}

.lockup nav {
  /* Sit in the artwork file's lower white margin, under the lockup. */
  margin-top: calc(min(34rem, 86vw) * -0.1);
}

.lockup .home-quiet {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  color: #141414;
}

.lockup .home-quiet::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: 0.75rem auto 0.8rem;
  background: #d87010;
}

.lockup .home-note {
  margin: 0;
  max-width: 26rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: #141414;
  text-wrap: balance;
}

.legal .home-year {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #6b6b6b;
}

.sheet h2 {
  margin: 2.25rem 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prose {
  max-width: 40rem;
  margin: 0.85rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.lockup ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lockup a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top {
  width: min(40rem, calc(100% - 3rem));
  margin-inline: auto;
  padding-top: max(1.15rem, env(safe-area-inset-top));
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sheet {
  flex: 1;
  width: min(40rem, calc(100% - 3rem));
  margin-inline: auto;
  padding-top: clamp(2.75rem, 9vh, 6rem);
  padding-bottom: 4rem;
}

.sheet.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1.5rem;
  padding-bottom: 8vh;
}

body.login .top,
body.login .sheet {
  width: min(22.5rem, calc(100% - 3rem));
}

.sheet h1 {
  margin: 0 0 2rem;
  font-size: clamp(2.15rem, 4.6vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

body.thesis .top,
body.thesis .sheet {
  width: min(56rem, calc(100% - 3rem));
}

.sheet h1.motto {
  margin-bottom: 0.9rem;
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.034em;
}

.sheet h1.motto::after {
  content: none;
}

.motto-line {
  display: block;
}

.motto-line + .motto-line {
  margin-top: 0.22em;
}

.motto .word {
  color: #d87414;
  font-weight: 500;
}

.tagline {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.028em;
}

.tagline + .tagline {
  margin-top: 0.28em;
}

.tagline:last-of-type::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin-top: 1.15rem;
  background: var(--amber);
}

.thesis-copy {
  max-width: 40rem;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
}

.sheet h1::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin-top: 1.15rem;
  background: var(--amber);
}

.lede {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

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

.entries a {
  display: block;
  max-width: 36rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  background-image: none;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.entries a:hover,
.entries a:focus-visible,
.entries a[aria-current="page"] {
  background-image: none;
  background-size: 0;
  text-decoration-color: var(--amber);
}

.entries .name {
  font-weight: 500;
}

address {
  margin: 1.75rem 0 0;
  font-style: normal;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.contact {
  margin-top: 1.35rem;
}

.form {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.field + .field {
  margin-top: 1.35rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  caret-color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus-visible {
  border-bottom-color: var(--ink);
}

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--white) inset;
}

.form-error {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.form-error:not(:empty) {
  margin-top: 1.15rem;
}

.form button {
  width: 100%;
  margin-top: 1.5rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.form button:hover {
  background: var(--amber);
  color: var(--ink);
}

.noscript-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

@media (max-width: 380px) {
  .lockup ul {
    gap: 0.15rem 1rem;
  }

  .lockup a {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .form button,
  .field input {
    border: 1px solid ButtonText;
  }

  .sheet h1::after {
    background: ButtonText;
  }

  .motto .word {
    color: CanvasText;
  }

  .tagline::after {
    background: ButtonText;
  }

  .lockup .home-quiet {
    color: CanvasText;
  }
}

@media print {
  .skip,
  .form button {
    display: none;
  }

  a {
    text-decoration: underline;
  }
}
