:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(26, 24, 20, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

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

a {
  text-decoration-thickness: 1px;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(245, 241, 232, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 56px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--lobster);
}

main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 32px;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 56px;
  align-items: center;
  padding: 42px 0 34px;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  max-width: 780px;
}

.hero h1 {
  margin: 0;
  font-size: 82px;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: 23px;
  line-height: 1.45;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-2);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--lobster);
  border-color: var(--lobster);
  color: var(--paper);
}

.button-quiet:hover {
  border-color: var(--swim);
  color: var(--swim);
}

.hero-media {
  margin: 0;
  position: relative;
  align-self: stretch;
  height: 430px;
  overflow: hidden;
  background: var(--paper-2);
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  padding: 5px 8px;
  background: var(--paper);
  color: var(--ink-3);
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: 13px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
}

.status-strip > div {
  min-width: 0;
  padding: 26px 22px 24px;
  border-right: 1px solid var(--rule);
}

.status-strip > div:last-child {
  border-right: 0;
}

.status-strip span,
.mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}

.status-strip strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head .code-caption {
  grid-column: 1 / -1;
  margin: 0 0 -18px;
}

.section-head h2 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.section-head p:last-child {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
}

.event-list {
  border-top: 2px solid var(--ink);
}

.event-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.event-item time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lobster);
}

.event-item h3 {
  margin: 0;
  font-size: 31px;
  letter-spacing: 0;
}

.event-item p {
  max-width: 780px;
  margin: 8px 0 0;
}

.event-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}

.event-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-2);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.event-item > a:hover {
  border-color: var(--lobster);
  color: var(--lobster);
}

.is-featured {
  background: linear-gradient(90deg, rgba(224, 75, 42, 0.11), transparent 46%);
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product {
  min-width: 0;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.product-media,
.product-image img {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-bottom: 1px solid var(--rule-strong);
}

.product-media {
  display: grid;
  place-items: center;
  padding: 24px;
}

.product-media span {
  font-size: 42px;
  font-weight: 700;
  color: var(--paper);
}

.product-media-shirt {
  background:
    radial-gradient(circle at 50% 32%, rgba(224, 75, 42, 0.25), transparent 28%),
    var(--lobster);
}

.product-media-cap {
  background:
    linear-gradient(135deg, rgba(245, 241, 232, 0.14) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--swim);
}

.product-image img {
  object-fit: cover;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-body h3,
.post h3 {
  margin: 0;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: 0;
}

.product-body p {
  margin: 0;
}

.product-body strong {
  margin-top: auto;
  font-size: 27px;
  color: var(--ink);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}

.post {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}

.post-featured {
  grid-row: span 2;
  min-height: 360px;
  padding: 34px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
}

.post-featured h3 {
  font-size: 48px;
  color: var(--paper);
}

.post-featured p {
  color: #d6cfbd;
}

.post-featured .mono {
  color: #bfb5a0;
}

.post-featured a {
  margin-top: auto;
  color: var(--paper);
}

.post p {
  margin: 12px 0 0;
}

.newsletter {
  margin: 96px 0 72px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 540px);
  gap: 40px;
  align-items: center;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
}

.newsletter h2 {
  margin: 8px 0 0;
  font-size: 48px;
  letter-spacing: 0;
}

.signup-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.signup-row input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--ink);
}

.signup-row button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-2);
  background: var(--lobster);
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
}

.form-note {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--go);
  font-family: var(--font-mono);
  font-size: 13px;
}

.site-footer {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px 32px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}

.site-footer span:first-child {
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 20px 16px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main {
    padding: 0 20px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 36px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-lede {
    font-size: 20px;
  }

  .hero-media {
    height: 420px;
    border-left: 0;
  }

  .status-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-strip > div:nth-child(2) {
    border-right: 0;
  }

  .status-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 48px;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .event-item > a {
    justify-self: start;
  }

  .merch-grid,
  .blog-layout,
  .newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 48px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-media {
    height: 340px;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .status-strip > div:last-child {
    border-bottom: 0;
  }

  .section-head h2,
  .newsletter h2 {
    font-size: 39px;
  }

  .signup-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
