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

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 340;
  font-display: swap;
  src: url("/static/fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/outfit.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --bg: #070d14;
  --bg-side: #071018;
  --raised: #0c1824;
  --card: #0e1c28;
  --ink: #eef4f8;
  --muted: #9aafc2;
  --dim: #7f96a8;
  --line: rgba(62, 230, 216, 0.18);
  --line-strong: rgba(62, 230, 216, 0.45);
  --cyan: #3ee6d8;
  --cyan-deep: #06201e;
  --danger: #ffb4b4;
  --ok: #9de8c8;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(62, 230, 216, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--cyan);
  color: var(--cyan-deep);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 1.4rem 1.1rem 1.4rem 1.25rem;
  background: var(--bg-side);
  border-right: 1px solid rgba(62, 230, 216, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.brand img {
  width: 168px;
  height: auto;
}

.brand-kicker,
.nav-kicker,
.kicker,
.q-kicker,
.context,
.badge {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-kicker {
  margin: 0.15rem 0 0.8rem 0.15rem;
  color: var(--cyan);
  font-size: 0.68rem;
}

.nav-kicker {
  margin: 0.4rem 0 0.35rem;
  color: var(--dim);
  font-size: 0.68rem;
}

#step-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.step-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.step-link .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.step-link.current {
  background: rgba(62, 230, 216, 0.1);
  border-color: var(--line-strong);
  color: var(--ink);
}

.step-link.current .num {
  color: var(--cyan);
}

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

.aside-note {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(62, 230, 216, 0.12);
  color: var(--dim);
  font-size: 0.86rem;
}

main {
  padding: 1.5rem 1.6rem 2.5rem;
  max-width: 1080px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.context {
  margin: 0;
  color: var(--cyan);
  font-size: 0.72rem;
}

.badge {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--cyan);
  font-size: 0.68rem;
  white-space: nowrap;
}

h1 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 1.4rem;
  max-width: 44rem;
  color: var(--muted);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 0.72rem;
}

.progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(62, 230, 216, 0.15);
  margin-bottom: 1.3rem;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--cyan);
  border-radius: inherit;
}

.card {
  background: linear-gradient(180deg, rgba(16, 36, 51, 0.92), rgba(12, 24, 36, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
  margin: 0 0 0.9rem;
  box-shadow: var(--shadow);
}

.q-kicker {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font-size: 0.7rem;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.hint,
.note,
.quiet {
  color: var(--muted);
}

.hint {
  margin: 0 0 0.8rem;
}

.note {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(62, 230, 216, 0.06);
  border: 1px solid var(--line);
}

textarea,
input[type="text"],
input[type="month"] {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 13, 20, 0.55);
  padding: 0.85rem 0.95rem;
  outline: none;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.choice,
.chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(7, 13, 20, 0.35);
  cursor: pointer;
}

.choice {
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  margin-top: 0.55rem;
}

.choice input,
.chip input {
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  border: 2px solid var(--muted);
  background: transparent;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.choice input {
  border-radius: 50%;
}

.chip input {
  border-radius: 4px;
  width: 0;
  height: 0;
  border: 0;
  position: absolute;
}

.choice input:checked {
  border-color: var(--cyan);
  background: radial-gradient(circle, var(--cyan) 45%, transparent 48%);
}

.choice:has(input:checked),
.chip:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(62, 230, 216, 0.08);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  position: relative;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.months label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-error {
  margin: 0.55rem 0 0;
  color: var(--danger);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--cyan);
  color: var(--cyan-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.toolbar .btn,
.linkish {
  min-height: 2.4rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.checkline {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.8rem;
  color: var(--muted);
}

.review-block {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.review-block h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.review-block p {
  margin: 0.2rem 0;
}

.review-block button.linkish {
  background: none;
  border: 0;
  color: var(--cyan);
  padding: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.theme {
  position: relative;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.theme input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.theme:focus-within .thumb {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.theme .thumb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 16px;
  border: 1px solid var(--line);
  min-height: 168px;
  padding: 0.85rem 0.9rem 0.95rem;
  position: relative;
  overflow: hidden;
}

.theme.selected .thumb {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

.theme h3 {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
}

.theme p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.theme .select-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.thumb-kicker,
.thumb-title,
.pills,
.rule {
  display: block;
  position: relative;
  z-index: 1;
}

.thumb-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.thumb-title {
  margin: 0.15rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
}

.pills {
  display: flex;
  gap: 0.4rem;
  width: 100%;
  margin-top: auto;
}

.pills i {
  display: block;
  height: 0.55rem;
  border-radius: 99px;
  width: 22%;
}

.thumb.dark {
  background: #07141c;
  color: #eef4f8;
}

.thumb.dark .pills i:first-child {
  background: #3ee6d8;
  width: 38%;
}

.thumb.dark .pills i {
  background: #1d3c4e;
}

.thumb.light {
  background: #f7f8fa;
  color: #102033;
}

.thumb.light .pills i:first-child {
  background: #102033;
  width: 34%;
}

.thumb.light .pills i {
  background: #e4e8ee;
}

.thumb.bold {
  background: #140e0c;
  color: #fff7f2;
}

.thumb.bold .pills i:first-child {
  background: #ff5c39;
  width: 46%;
  height: 0.85rem;
}

.thumb.bold .pills i {
  background: #3a241e;
}

.thumb.minimal {
  background: #f6f3ee;
  color: #1c1c1c;
}

.thumb.minimal .rule {
  height: 2px;
  width: 28%;
  background: #1c1c1c;
  margin: 0.2rem 0 0.7rem;
}

.downloads {
  display: grid;
  gap: 0.7rem;
}

.download {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.download strong {
  display: block;
  font-weight: 600;
}

.download span {
  color: var(--muted);
  font-size: 0.92rem;
}

.status {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.status.error {
  background: rgba(255, 180, 180, 0.08);
  border: 1px solid rgba(255, 180, 180, 0.4);
  color: var(--danger);
}

.status.ok {
  background: rgba(157, 232, 200, 0.08);
  border: 1px solid rgba(157, 232, 200, 0.35);
  color: var(--ok);
}

.disclaimer {
  margin: 2rem 0 0;
  color: var(--dim);
  font-size: 0.82rem;
  max-width: 52rem;
}

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

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(62, 230, 216, 0.12);
  }

  #step-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .step-link {
    width: auto;
    white-space: nowrap;
  }

  .aside-note {
    margin-top: 0.6rem;
  }

  .themes,
  .months {
    grid-template-columns: 1fr;
  }

  .actions,
  .topbar,
  .download {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
