:root {
  --bg: #1a1714;
  --bg-deep: #100e0c;
  --fg: #ece6dc;
  --muted: #8d857b;
  --dim: #5a544d;
  --ember: #e0784a;
  --ember-hot: #ffb27a;
  --rule: #2a2622;
  --glow: rgba(224, 120, 74, 0.14);
  --ring-glow: rgba(224, 120, 74, 0.45);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}
/* Light theme, chosen with the header switch. Dark is the default. */
:root[data-theme="light"] {
  --bg: #f4efe6;
  --bg-deep: #ebe3d6;
  --fg: #1f1b17;
  --muted: #645c52;
  --dim: #7f776c;
  --ember: #c4572a;
  --ember-hot: #a3441c;
  --rule: #dcd2c3;
  --glow: rgba(224, 120, 74, 0.16);
  --ring-glow: rgba(196, 87, 42, 0.3);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 12% 0%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--serif);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--ember); color: var(--bg); }
.mark .chev { stroke: var(--ember); }

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px 0;
}
.mark { width: 48px; height: 48px; flex: none; color: var(--fg); }
.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0 64px;
  align-items: end;
  align-content: center;
  padding: 72px 16px 64px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.eyebrow, .label, .status, .soon {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.aside { padding-bottom: 0.35em; }
.pour {
  grid-column: 1 / -1;
  height: 1px;
  width: 100%;
  margin: 48px 0 0;
  background: linear-gradient(90deg, var(--ember-hot), var(--ember), var(--dim));
  background-size: 300% 100%;
  background-position: 100% 0;
  animation: pour 8s ease-in-out infinite;
}
@keyframes pour {
  0%, 60%, 100% { background-position: 100% 0; opacity: 0.6; }
  20% { background-position: 0% 0; opacity: 1; }
}
.lede {
  margin: 0 0 24px;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 44ch;
}
.status { margin: 0; display: flex; align-items: center; gap: 12px; color: var(--fg); }
.ember {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
  animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 4px var(--ember); }
  50% { opacity: 1; box-shadow: 0 0 12px var(--ember-hot); }
}

.works {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 64px;
}
.label { margin: 0 0 20px; color: var(--muted); font-weight: 400; }
.works ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
  align-items: start;
}
.group {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--fg);
}
.works li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.works a, .works .name { font-size: 1.05rem; }
.works li > a { justify-self: start; border-bottom: 1px solid var(--dim); transition: border-color 0.2s, color 0.2s; }
.works li > a:hover, .works li > a:focus-visible { color: var(--ember-hot); border-bottom-color: var(--ember); }
.works .name { color: var(--fg); }
.desc { color: var(--muted); font-size: 0.95rem; }
.soon { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; order: 3; margin-top: 2px; }
.ring {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--ember);
  box-shadow: 0 0 6px var(--ring-glow);
  flex: none;
}
.channels {
  grid-column: 1 / -1;
  order: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.channels a {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.channels svg { width: 100%; height: 100%; }
.channels a:hover, .channels a:focus-visible { color: var(--ember-hot); }

.wordmark { margin-right: auto; }
.nav-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--ember-hot); border-bottom-color: var(--ember); }

.theme-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.theme-switch button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.theme-switch button::after { content: ""; position: absolute; inset: -7px 0; }
.theme-switch svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch button:hover { color: var(--ember-hot); }
.theme-switch button:focus-visible { outline-offset: 2px; }
.theme-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); cursor: default; }

.newsletter {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 64px;
  scroll-margin-top: 24px;
}
.nl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px 64px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.nl-copy { margin: 0; font-size: 1.3rem; line-height: 1.4; color: var(--fg); max-width: 30ch; }
.nl-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.nl-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--dim);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.2s;
}
.nl-form input[type="email"]::placeholder { color: var(--muted); }
.nl-form input[type="email"]:focus { outline: none; border-bottom-color: var(--ember); }
.nl-form button {
  padding: 10px 20px;
  border: 1px solid var(--ember);
  border-radius: 999px;
  background: transparent;
  color: var(--ember-hot);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.nl-form button:hover, .nl-form button:focus-visible { background: var(--ember); color: var(--bg); }
.nl-form button:disabled { opacity: 0.5; cursor: progress; }
.nl-msg { flex-basis: 100%; min-height: 1.4em; margin: 0; font-size: 0.95rem; color: var(--muted); }
.nl-fine { margin: 16px 0 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero--simple { display: flex; flex-direction: column; justify-content: center; }
.hero--simple .lede { margin-top: 24px; }
.back { color: var(--muted); border-bottom: 1px solid transparent; }
.back:hover, .back:focus-visible { color: var(--ember-hot); border-bottom-color: var(--ember); }

.closing {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 56px;
}
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.closing-line { margin: 0; font-size: 1.3rem; line-height: 1.4; color: var(--fg); max-width: 32ch; text-wrap: pretty; }
.cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ember);
  border-radius: 999px;
  color: var(--ember-hot);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}
.cta:hover, .cta:focus-visible { background: var(--ember); color: var(--bg); }

footer {
  padding: 24px 16px;
  text-align: left;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
footer p { margin: 0; }

@media (max-width: 560px) {
  .hero { padding-top: 56px; }
  .brand { padding-top: 32px; flex-wrap: wrap; row-gap: 12px; column-gap: 12px; }
  .nav-link { order: 3; flex-basis: 100%; letter-spacing: 0.14em; }
  .theme-switch .ts-label { display: none; }
  .theme-switch button { padding: 9px 11px; }
  .mark { width: 40px; height: 40px; }
  .wordmark { font-size: 1.35rem; }
}
@media (max-width: 760px) {
  .groups { grid-template-columns: 1fr; gap: 36px 0; }
  .nl-grid, .closing-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 32px 0; align-items: start; }
  .aside { padding-bottom: 0; }
  .pour { margin-top: 40px; }
}
@media (pointer: coarse) {
  .channels { gap: 26px; }
  .channels a { position: relative; }
  .channels a::after { content: ""; position: absolute; inset: -13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pour, .ember { animation: none; }
  .pour { background-position: 50% 0; opacity: 1; }
}
