:root {
  --bg: #f7f4ee;
  --bg-strong: #f2eee6;
  --panel: #ede7dc;
  --panel-soft: #f3efe6;
  --text: #171512;
  --muted: #5e574d;
  --border: rgba(23, 21, 18, 0.12);
  --border-strong: rgba(23, 21, 18, 0.2);
  --accent: #171512;
  --shadow-soft: 0 10px 30px rgba(23, 21, 18, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
  font:
    16px/1.6 ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 21, 18, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 75%);
}

.shell {
  position: relative;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 88px;
}

.hero {
  padding: 64px 0 52px;
  border-top: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
}

.lede {
  max-width: 36rem;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 28px 30px 32px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--border-strong);
}

.card h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.card p,
.note p,
.legal p,
.legal li {
  color: var(--muted);
}

.note {
  margin-top: 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}

.note p {
  margin: 0;
}

.note-link {
  margin-top: 10px;
}

.legal {
  max-width: 760px;
  padding-top: 22px;
}

.legal h1 {
  max-width: none;
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 10px;
}

.legal h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 1.65rem;
}

.effective-date {
  margin: 0 0 20px;
  color: var(--muted);
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.back-link::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--border-strong);
}

.back-link:hover,
a:hover {
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

strong {
  color: var(--text);
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button-primary {
  background: var(--text);
  color: #f7f4ee;
}

.button-primary:hover {
  color: #f7f4ee;
  opacity: 0.92;
}

.button-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
}

.auth-shell {
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.auth-panel {
  width: min(760px, 100%);
  padding: 54px 0;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.auth-note {
  max-width: 42rem;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.auth-note h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.dashboard-shell {
  padding-top: 28px;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
}

.dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.dashboard-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18));
  box-shadow: var(--shadow-soft);
}

.dashboard-card-large {
  grid-column: span 2;
}

.dashboard-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.dashboard-card p {
  margin: 0;
  color: var(--muted);
}

.dashboard-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

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

@media (max-width: 800px) {
  .shell {
    width: min(100% - 28px, 1100px);
    padding: 20px 0 48px;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card-large {
    grid-column: span 1;
  }
}
