:root {
  --bg: #eee4d3;
  --bg-soft: #e1d5bf;
  --panel: rgba(255, 248, 236, 0.78);
  --panel-strong: rgba(255, 248, 236, 0.9);
  --panel-faint: rgba(255, 248, 236, 0.54);
  --ink: #18211d;
  --ink-soft: rgba(24, 33, 29, 0.77);
  --muted: #556057;
  --line: rgba(24, 33, 29, 0.14);
  --line-strong: rgba(24, 33, 29, 0.24);
  --forest: #31483d;
  --sage: #8da088;
  --signal: #8cab7b;
  --shadow: 0 20px 46px rgba(61, 46, 21, 0.08);
  --card-shadow: 0 14px 30px rgba(61, 46, 21, 0.08);
  --max-width: 1160px;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

body[data-theme="dusk"] {
  --bg: #101511;
  --bg-soft: #171f19;
  --panel: rgba(23, 31, 25, 0.8);
  --panel-strong: rgba(28, 38, 31, 0.92);
  --panel-faint: rgba(27, 36, 30, 0.62);
  --ink: #ece2cf;
  --ink-soft: rgba(236, 226, 207, 0.76);
  --muted: #b9b29f;
  --line: rgba(236, 226, 207, 0.12);
  --line-strong: rgba(236, 226, 207, 0.2);
  --forest: #d5d1b2;
  --sage: #9aab9d;
  --signal: #9dbb91;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  --card-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(147, 168, 155, 0.12), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(164, 141, 102, 0.1), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.024) 0,
      rgba(255, 255, 255, 0.024) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 38%);
  opacity: 0.42;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
input,
button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(100%, calc(var(--max-width) + 2.25rem));
  margin: 0 auto;
  padding: 0.95rem 1rem 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.1rem 0 0.95rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.82rem;
  height: 1.94rem;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-word {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.site-nav {
  display: inline-flex;
  gap: 0.8rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 0.42rem 0;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
}

.theme-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.top-grid,
.shift-section,
.join-section {
  margin-top: 1.05rem;
}

.top-grid {
  display: grid;
  gap: 1rem;
}

.masthead {
  padding-top: 0.2rem;
}

.eyebrow,
.article-date,
.pill-action,
.join-form input,
.join-form button {
  font-family: var(--mono);
}

.eyebrow {
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead h1,
.tagline,
.section-label,
.join-copy h2,
.article-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.masthead h1 {
  max-width: 8ch;
  font-size: clamp(3.3rem, 15vw, 6.9rem);
  line-height: 0.9;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.48rem;
  max-width: 14ch;
  color: var(--forest);
  font-size: clamp(1.38rem, 6vw, 2.5rem);
  line-height: 1;
}

.tagline-cursor {
  width: 0.45rem;
  height: 1.08em;
  border-radius: 1px;
  background: var(--signal);
  box-shadow: 0 0 14px color-mix(in srgb, var(--signal) 30%, transparent);
  animation: cursor-pulse 1.5s steps(1, end) infinite;
  flex: 0 0 auto;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pill-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.62rem 0.88rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 30rem;
}

.section-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--forest);
  font-size: clamp(1.28rem, 4.8vw, 1.85rem);
  line-height: 1;
}

.section-label::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 18px color-mix(in srgb, var(--signal) 30%, transparent);
  flex: 0 0 auto;
}

.article-list,
.shift-block,
.join-block {
  position: relative;
}

.article-cards {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.article-card {
  display: grid;
  gap: 0.42rem;
  padding: 0.86rem 0.9rem 0.96rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 58%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--card-shadow);
}

.article-card::before,
.shift-block::before,
.join-block::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 0.12rem;
  background: linear-gradient(90deg, var(--signal), transparent 72%);
  opacity: 0.48;
}

.article-date {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-card h3 {
  max-width: 21ch;
  font-size: clamp(1.4rem, 5.6vw, 2rem);
  line-height: 1.04;
}

.shift-section {
  padding-top: 0.34rem;
}

.shift-block,
.join-block {
  margin-top: 0.92rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 62%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: none;
}

.shift-description {
  max-width: 35rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.62;
}

.shift-grid {
  display: grid;
  gap: 0.66rem;
  margin-top: 0.92rem;
}

.shift-grid p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.join-section {
  padding-top: 0.3rem;
}

.join-copy p:last-child {
  margin-top: 0.68rem;
  max-width: 28rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.join-copy h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.9rem, 8vw, 3.55rem);
  line-height: 0.98;
}

.join-form {
  display: grid;
  gap: 0.72rem;
  margin-top: 1rem;
}

.join-form input,
.join-form button {
  width: 100%;
  min-height: 3rem;
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

.join-form input {
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  color: var(--ink);
}

.join-form input::placeholder {
  color: var(--muted);
}

.join-form button {
  border: 1px solid transparent;
  background: var(--forest);
  color: var(--bg);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.brand:hover,
.brand:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.pill-action:hover,
.pill-action:focus-visible,
.article-card:hover,
.article-card:focus-visible,
.join-form button:hover,
.join-form button:focus-visible {
  transform: translateY(-1px);
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.pill-action:hover,
.pill-action:focus-visible,
.article-card:hover,
.article-card:focus-visible {
  background-color: var(--panel-faint);
}

.join-form button:hover,
.join-form button:focus-visible {
  background: color-mix(in srgb, var(--forest) 84%, white 16%);
}

.brand:focus-visible,
.site-nav a:focus-visible,
.theme-toggle:focus-visible,
.pill-action:focus-visible,
.article-card:focus-visible,
.join-form input:focus-visible,
.join-form button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--signal) 60%, white 40%);
  outline-offset: 3px;
}

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

@keyframes cursor-pulse {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0.18;
  }
}

@media (min-width: 720px) {
  .page-shell {
    padding: 1rem 1.35rem 5rem;
  }

  .top-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(22rem, 1.04fr);
    align-items: start;
    gap: 1.6rem;
  }

  .shift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .join-block {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    gap: 1.35rem;
    align-items: center;
    padding: 1.2rem;
  }
}

@media (min-width: 980px) {
  .site-header {
    padding-bottom: 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .top-grid {
    gap: 1.95rem;
  }

  .masthead h1 {
    font-size: clamp(5rem, 10vw, 7.15rem);
  }

  .tagline {
    font-size: clamp(1.72rem, 2.45vw, 2.9rem);
  }

  .article-card h3 {
    font-size: 1.86rem;
  }

  .join-copy h2 {
    font-size: 2.68rem;
  }
}
