:root {
  --bg: #d8d1c4;
  --bg-deep: #e8e1d4;
  --ink: #161616;
  --muted: #5f5a53;
  --line: rgba(22, 22, 22, 0.12);
  --panel: rgba(255, 250, 241, 0.72);
  --panel-strong: rgba(248, 242, 231, 0.92);
  --accent: #8f5d34;
  --accent-soft: #c6a88b;
  --ok: #305f45;
  --wait: #8b6a2b;
  --shadow: 0 20px 60px rgba(46, 35, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  background:
    radial-gradient(circle at top left, rgba(143, 93, 52, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(48, 95, 69, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 22, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 22, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.25));
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.footer,
.hero,
.card,
.panel,
.page-header,
.timeline,
.status-board,
.auth-shell {
  backdrop-filter: blur(10px);
}

.topbar,
.footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255, 251, 244, 0.58);
  padding: 16px 18px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  border-radius: 18px;
  margin-bottom: 28px;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.brand-mark {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-text,
.nav a,
.eyebrow,
.card-kicker,
.status-row strong {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-text {
  font-size: 0.82rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.hero,
.page-header,
.card,
.panel,
.timeline,
.status-board,
.auth-shell {
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero,
.page-header {
  background: linear-gradient(145deg, rgba(255, 248, 237, 0.94), rgba(238, 228, 214, 0.86));
  padding: clamp(32px, 6vw, 72px);
}

.hero {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
}

h1,
h2,
p,
blockquote,
ul {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 10vw, 6.4rem);
  line-height: 0.95;
  margin-bottom: 18px;
  max-width: 10ch;
}

.page-header h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.card h2,
.panel h2,
.timeline-item h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

p,
li,
blockquote {
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.42);
}

.grid-three,
.grid-two,
.split {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-two,
.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.panel {
  background: var(--panel);
  padding: 26px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 460px);
  gap: 20px;
  padding: 20px;
  margin-top: 24px;
}

.auth-copy {
  background: linear-gradient(145deg, rgba(255, 248, 237, 0.94), rgba(238, 228, 214, 0.86));
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
}

.auth-copy p:last-child {
  margin-bottom: 0;
}

.auth-form-card {
  background: rgba(255, 251, 244, 0.86);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--line);
}

.auth-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 18px;
}

.auth-switch button,
.auth-form button[type="submit"] {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.auth-switch button:hover,
.auth-form button[type="submit"]:hover {
  transform: translateY(-1px);
}

.auth-switch button.is-active,
.auth-form button[type="submit"] {
  background: var(--ink);
  color: #f7f1e8;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.auth-note strong,
.auth-error {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field span {
  font-size: 0.8rem;
  color: var(--accent);
}

.field input {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(22, 22, 22, 0.14);
  background: rgba(255, 255, 255, 0.72);
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid rgba(143, 93, 52, 0.2);
  border-color: var(--accent);
}

.auth-note {
  margin: 8px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(143, 93, 52, 0.08);
}

.auth-note p,
.auth-error {
  margin: 0;
}

.auth-error {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(139, 42, 42, 0.1);
  color: #7a2626;
  font-size: 0.78rem;
}

.panel-strong {
  background: var(--panel-strong);
}

.feature-list {
  margin: 0;
  padding-left: 18px;
}

.feature-list li + li {
  margin-top: 8px;
}

.page {
  display: grid;
  gap: 24px;
}

.timeline {
  background: rgba(252, 247, 239, 0.78);
  padding: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-index {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
}

.quote {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
}

.status-board {
  background: rgba(252, 247, 239, 0.78);
  padding: 12px 18px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-ok {
  color: var(--ok);
}

.status-wait {
  color: var(--wait);
}

.footer {
  margin-top: 28px;
  border-radius: 24px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .grid-three,
  .grid-two,
  .split,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar {
    top: 10px;
    border-radius: 16px;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    padding: 14px;
  }
}
