:root {
  --bg: #f7f1e3;
  --ink: #122620;
  --muted: #4b6358;
  --card: rgba(255, 251, 245, 0.9);
  --line: rgba(18, 38, 32, 0.14);
  --accent: #d56f3e;
  --accent-strong: #b74d1f;
  --accent-soft: #f3d1c1;
  --success: #1f7a57;
  --shadow: 0 18px 45px rgba(18, 38, 32, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 111, 62, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(31, 122, 87, 0.16), transparent 26%),
    linear-gradient(180deg, #fcf8ef 0%, var(--bg) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.brand {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-links a {
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero,
.panel,
.card,
.stats-grid article,
table {
  backdrop-filter: blur(10px);
}

.hero,
.panel,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 38px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  margin: 0 0 14px;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.hero ul,
.card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}

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

.panel,
.card {
  padding: 24px;
}

label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

input,
textarea,
button {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  font: inherit;
}

input,
textarea {
  padding: 13px 14px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.8);
}

button {
  padding: 14px 18px;
  background: var(--accent);
  color: white;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

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

.result,
.notice {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.success {
  color: var(--success);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.stats-grid article {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.stat-value {
  font-size: 2rem;
  margin: 8px 0 4px;
}

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

.actions a,
.inline-link {
  color: var(--accent-strong);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

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

.pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.88rem;
}

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

  .shell {
    width: min(100% - 20px, 1100px);
  }
}
