/* Designers that read — designersthatread.com */

@font-face {
  font-family: 'Geist Pixel Square';
  src: url('assets/GeistPixel-Square.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #e9e7d6;
  --ink: #813d1c;
  --ink-hover: #6d3317;
  --ink-active: #5a2a13;
  --ink-soft: rgba(129, 61, 28, 0.7);
  --scrim: rgba(47, 35, 22, 0.5);

  --card: #ecd9c3;

  --pad: 16px;
  --body-size: 18px;
  --body-leading: 22px;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: 'Geist Pixel Square', var(--mono);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12px var(--pad) 24px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

/* ---------- Layout ---------- */

.layout {
  display: flex;
  flex-direction: column;
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.wordmark {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--pixel);
  font-weight: 500;
  font-size: clamp(19px, 5.4vw, 30px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
  -webkit-text-stroke: 0.35px currentColor;
  paint-order: stroke fill;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--ink-hover); }
.btn:active { background: var(--ink-active); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--submit {
  align-self: flex-start;
  margin-top: 4px;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

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

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}

.hero__art {
  display: block;
  width: 100%;
  max-width: 870px;
  height: auto;
}

.hero__stage {
  position: relative;
  background: var(--ground);
}

.hero__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 105% 100% at 50% 48%,
    transparent 52%,
    color-mix(in srgb, var(--ground) 25%, transparent) 72%,
    color-mix(in srgb, var(--ground) 65%, transparent) 88%,
    var(--ground) 100%
  );
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Nominate modal ---------- */

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2 * var(--pad));
  overflow-y: auto;
  padding: 24px 20px 20px;
  border: 1px solid var(--ink);
  background: var(--ground);
  box-shadow:
    0 1px 2px 0 rgba(0, 0, 0, 0.3),
    0 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.modal__dialog--wide {
  max-width: min(560px, 100%);
}

.modal__lede {
  margin: -8px 0 20px;
  font-size: var(--body-size);
  line-height: var(--body-leading);
  color: var(--ink);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.modal__close:hover { color: var(--ink-hover); }
.modal__close:active { opacity: 0.7; }
.modal__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.modal__heading {
  margin: 0 32px 20px 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}

.req { color: var(--ink-soft); }

.field__input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  border-radius: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: var(--body-leading);
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}

.field__input--area {
  min-height: 88px;
  padding-top: 4px;
}

.field__input:focus { outline: none; }

.field__input:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
}

.field__input.field--invalid {
  border-bottom-color: #a03020;
}

.field__error {
  margin: 0;
  min-height: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.3;
  color: #a03020;
}

.field__error:not(:empty) { min-height: 1.3em; }

/* ---------- Nominations chart ---------- */

.nom-chart {
  margin-bottom: 20px;
}

.nom-chart__status {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

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

.nom-list__item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) minmax(72px, 34%);
  gap: 10px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.nom-list__item:first-child {
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.nom-list__rank {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  color: var(--ink-soft);
}

.nom-list__title {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nom-list__bar {
  display: block;
  height: 3px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.nom-list__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.65s ease;
}

.nom-list.is-ready .nom-list__fill {
  width: var(--fill);
}

@media (prefers-reduced-motion: reduce) {
  .nom-list__fill {
    transition: none;
    width: var(--fill);
  }
}

/* ---------- Toast ---------- */

.toast[hidden] { display: none; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%) translateY(8px);
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ground);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Columns ---------- */

.columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 42px;
}

.col h2 {
  margin: 0 0 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.col p {
  margin: 0;
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.col p + p,
.col p + .story-list,
.col .story-list + p {
  margin-top: 12px;
}

.story-list {
  margin: 8px 0 0;
  padding: 0 0 0 1.15em;
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.story-list li + li {
  margin-top: 2px;
}

/* ---------- Luma event card ---------- */

.event-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 460px;
  margin-top: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  overflow: hidden;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover,
.event-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(47, 35, 22, 0.18);
}

.event-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(47, 35, 22, 0.15);
}

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

.event-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 16px 14px;
}

.event-card__meta {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
}

.event-card__rsvp {
  margin-top: auto;
  padding: 8px 18px;
  border-radius: 0;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  transition: background 0.15s ease;
}

.event-card:hover .event-card__rsvp {
  background: var(--ink-hover);
}

.event-card__img {
  display: block;
  flex: 0 0 42%;
  width: 42%;
  height: auto;
  align-self: center;
  object-fit: contain;
  padding: 10px 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 64px;
  font-family: 'Space Mono', var(--mono);
  font-size: 10px;
  line-height: 1;
  color: var(--ink);
}

.site-footer a { color: inherit; }

/* ---------- Narrow mobile ---------- */

@media (max-width: 400px) {
  .wordmark {
    font-size: 15px;
    letter-spacing: -0.04em;
  }

  .masthead .btn {
    padding: 10px 14px;
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  :root { --pad: 24px; }

  body { padding: 24px var(--pad); }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 120px;
    align-items: center;
    margin-top: 48px;
  }

  .layout__text {
    grid-column: 1;
    grid-row: 1;
  }

  .layout__media {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    margin-top: 0;
  }

  .hero__art {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .columns {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 0;
  }

  .col h2 {
    font-weight: 400;
    font-size: 28px;
  }

  .modal__dialog {
    padding: 32px 28px 28px;
  }

  .modal__heading {
    font-size: 28px;
    margin-bottom: 24px;
  }
}
