:root {
  color-scheme: light;
  --bg: #f4efe7;
  --bg-alt: #e7ddd0;
  --panel: #fffaf3;
  --text: #20170f;
  --muted: #5e4d3d;
  --brand: #9a5a27;
  --brand-strong: #7c431c;
  --line: rgba(32, 23, 15, 0.12);
  --shadow: 0 18px 50px rgba(79, 45, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(154, 90, 39, 0.12), transparent 35%),
    radial-gradient(circle at bottom right, rgba(124, 67, 28, 0.1), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  min-height: 100vh;
}

a {
  color: var(--brand-strong);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  padding: 22px 0;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  box-shadow: var(--shadow);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 9px;
}

.brand h1 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  padding: 40px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.panel {
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 16px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero .lede {
  margin: 0;
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: white;
  box-shadow: 0 14px 28px rgba(154, 90, 39, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  border-color: var(--line);
}

.sidecard {
  padding: 26px;
}

.metric {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.metric:last-child {
  border-bottom: 0;
}

.metric strong {
  font-size: 1.06rem;
}

.metric span {
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 34px;
}

.card {
  padding: 24px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

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

.page {
  padding: 26px 0 54px;
}

.page article {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
}

.page h2 {
  margin-top: 0;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

.page h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

.page p,
.page li {
  color: var(--muted);
}

.footer {
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.field label {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.upload-box {
  padding: 24px;
}

.dropzone {
  border: 1.5px dashed rgba(154, 90, 39, 0.35);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  padding: 28px;
  text-align: center;
}

.dropzone strong {
  display: block;
  margin-bottom: 8px;
}

.status {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.note {
  background: rgba(154, 90, 39, 0.09);
  border: 1px solid rgba(154, 90, 39, 0.15);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-grid,
  .section-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .sidecard,
  .page article {
    padding: 24px;
  }
}
