﻿:root {
  --bg: #efe9de;
  --paper: rgba(255, 251, 247, 0.82);
  --ink: #18241c;
  --muted: #5d685f;
  --line: rgba(24, 36, 28, 0.1);
  --teal: #145f66;
  --forest: #184a36;
  --amber: #a25b17;
  --clay: #73452f;
  --shadow: 0 26px 70px rgba(24, 36, 28, 0.11);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Georgia, "Source Han Serif SC", "Noto Serif SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(20, 95, 102, 0.18), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(162, 91, 23, 0.15), transparent 20%),
    linear-gradient(180deg, #f5efe6, #ede6da);
}

svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 6px 0 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
}

.header-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font: 15px/1.2 "Segoe UI", "PingFang SC", sans-serif;
}

.site-nav a,
.header-actions a,
#auth-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.48);
}

.nav-icon,
.eyebrow-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  flex: 0 0 auto;
}

.nav-text {
  display: inline-flex;
  align-items: center;
}

.eyebrow-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-icon {
  width: 15px;
  height: 15px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-link,
.locale-chip,
.cta,
.chip,
.ghost-link {
  border-radius: 999px;
  padding: 10px 14px;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.auth-link {
  color: var(--muted);
}

.auth-link.hidden,
.hidden {
  display: none !important;
}

#auth-logout {
  border: 0;
  background: rgba(24,36,28,0.06);
  color: var(--ink);
  cursor: pointer;
}

.cta {
  background: var(--ink);
  color: #fff;
}

.cta.ghost,
.ghost-link {
  background: rgba(24,36,28,0.06);
  color: var(--ink);
}

.locale-toggle {
  position: relative;
}

.locale-select,
.locale-chip {
  border-radius: 12px;
  padding: 9px 38px 9px 14px;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.locale-select {
  min-width: 140px;
  min-height: 40px;
  border: 1px solid rgba(24,36,28,0.16);
  background: rgba(255, 251, 247, 0.96);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.locale-select:focus {
  outline: 2px solid rgba(0, 165, 106, 0.22);
  outline-offset: 2px;
}

.locale-chip.active,
.chip.active {
  background: var(--ink);
  color: #fff;
}

.locale-chip {
  border: 0;
  cursor: pointer;
  background: rgba(24,36,28,0.08);
  color: var(--ink);
}

.auth-status {
  color: var(--muted);
  font: 13px/1.4 "Segoe UI", "PingFang SC", sans-serif;
}

.hero-actions,
.section-head.inline,
.proof-item,
.community-item,
.task-meta,
.task-grid,
.thesis-grid,
.split,
.filter-row,
.proof-wall,
.community-feed,
.tool-filter-row,
.upload-grid {
  display: flex;
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  margin-top: 18px;
}

.page-hero.compact,
.page-hero.single-column { grid-template-columns: 1fr; }

.hero-copy,
.hero-panel,
.glass-card,
.form-shell {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 34px;
  background: linear-gradient(135deg, rgba(24,74,54,.92), rgba(20,95,102,.92));
  color: #f8f4ef;
}

.hero-copy .eyebrow,
.hero-copy .lede,
.hero-bullets { color: rgba(248,244,239,.84); }
.hero-panel,
.glass-card,
.form-shell { padding: 26px; }

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  color: var(--muted);
}

.hero h1,
.page-hero h1,
.section h2,
.form-shell h1 { margin: 0; line-height: .98; }
.hero h1 { font-size: clamp(42px, 7vw, 78px); max-width: 10ch; }
.page-hero h1,
.form-shell h1 { font-size: clamp(34px, 5vw, 58px); max-width: 14ch; }
.lede,
.form-lede {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.compact-actions { margin-top: 12px; }
.hero-bullets { margin: 20px 0 0; padding-left: 18px; line-height: 1.8; }
.hero-stat + .hero-stat,
.proof-item + .proof-item,
.community-item + .community-item { margin-top: 14px; }
.hero-stat { padding-top: 14px; border-top: 1px solid var(--line); }
.hero-stat:first-child { border-top: 0; padding-top: 0; }
.stat-label { font: 12px/1.4 "Segoe UI", "PingFang SC", sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.stat-value { font-size: 34px; font-weight: 700; margin-top: 6px; }
.stat-note { margin-top: 4px; color: var(--muted); font: 14px/1.6 "Segoe UI", "PingFang SC", sans-serif; }
.section { margin-top: 28px; }
.section-head { margin-bottom: 16px; }
.section-head.inline { justify-content: space-between; align-items: end; gap: 14px; }
.text-link { color: var(--teal); font-family: "Segoe UI", "PingFang SC", sans-serif; font-weight: 700; }
.thesis-grid,
.task-grid,
.split,
.proof-wall,
.community-feed,
.tool-filter-row,
.upload-grid { gap: 16px; }
.thesis-grid,
.task-grid,
.proof-wall,
.community-feed { flex-wrap: wrap; }
.task-grid > *,
.thesis-grid > * { flex: 1 1 280px; }
.split > * { flex: 1; }
.single-column { display: grid; }
.glass-card h3,
.task-card h3,
.proof-card h3,
.community-card h3 { margin: 0 0 10px; font-size: 28px; }
.glass-card p,
.task-card p,
.proof-copy,
.community-copy,
.tool-helper,
.form-note {
  margin: 0;
  color: var(--muted);
  font: 16px/1.7 "Segoe UI", "PingFang SC", sans-serif;
}
.task-card,
.proof-card,
.community-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  padding: 22px;
}
.task-card h3,
.proof-card h3,
.community-card h3 { font-size: 27px; }
.task-meta {
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
  font: 13px/1.4 "Segoe UI", "PingFang SC", sans-serif;
  color: var(--muted);
}
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24,36,28,0.06);
  color: var(--ink);
  font: 13px/1.3 "Segoe UI", "PingFang SC", sans-serif;
}
.chip {
  border: 0;
  cursor: pointer;
}
.proof-item,
.community-item { justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.proof-item:first-child,
.community-item:first-child { border-top: 0; padding-top: 0; }
.proof-amount { font: 700 26px/1 "Segoe UI", "PingFang SC", sans-serif; white-space: nowrap; }
.proof-meta,
.community-meta,
.task-id { color: var(--muted); font: 13px/1.5 "Segoe UI", "PingFang SC", sans-serif; }
.community-copy { margin-top: 8px; }
.filter-row,
.tool-filter-row { gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-label { margin-bottom: 10px; color: var(--muted); font: 12px/1.5 "Segoe UI", "PingFang SC", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.call-card { text-align: center; }
.call-card h2 { margin-bottom: 10px; }
.footer-note { margin-top: 20px; color: var(--muted); font: 13px/1.6 "Segoe UI", "PingFang SC", sans-serif; }

.tool-layout {
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 18px;
}
.tool-card h3 { font-size: 24px; }
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.upload-grid label,
.auth-form label {
  display: grid;
  gap: 8px;
  font: 14px/1.5 "Segoe UI", "PingFang SC", sans-serif;
}
.upload-grid .wide,
.auth-form .wide { grid-column: 1 / -1; }
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  padding: 12px 14px;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.tool-status {
  margin-top: 14px;
  color: var(--muted);
  font: 14px/1.6 "Segoe UI", "PingFang SC", sans-serif;
}

.auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
}
.form-shell {
  width: min(560px, 100%);
}
.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .header-cluster { flex-direction: column; align-items: flex-end; }
  .tool-layout { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .hero, .split { grid-template-columns: 1fr; display: grid; }
  .site-header { position: static; }
  .header-cluster { width: 100%; align-items: flex-start; }
  .site-nav { width: 100%; }
  .header-actions { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .site-shell { width: min(100% - 24px, 1180px); }
  .site-header { flex-direction: column; align-items: flex-start; }
  .header-cluster { margin-left: 0; }
  .hero h1, .page-hero h1, .form-shell h1 { max-width: none; }
  .proof-item, .community-item { flex-direction: column; }
  .upload-grid { grid-template-columns: 1fr; }
}
