:root {
  --bg: #f4efe6;
  --paper: rgba(255, 252, 247, 0.92);
  --ink: #1a2230;
  --muted: #5f6877;
  --accent: #0c7c59;
  --accent-strong: #085b41;
  --border: rgba(26, 34, 48, 0.1);
  --shadow: 0 18px 40px rgba(34, 42, 54, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(12, 124, 89, 0.15), transparent 35%),
    radial-gradient(circle at bottom right, rgba(189, 111, 62, 0.18), transparent 30%),
    linear-gradient(135deg, #efe7d8 0%, #f8f4ec 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.brand-lockup {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.brand-mark {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 22px;
  box-shadow: 0 14px 24px rgba(26, 34, 48, 0.12);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-strong);
}

h1, h2, h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
  margin-bottom: 0.8rem;
}

.hero-copy {
  max-width: 50rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.topnav {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--ink);
  text-decoration: none;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 1.4rem;
  backdrop-filter: blur(10px);
}

.welcome-panel,
.notice-panel {
  margin-bottom: 1.5rem;
}

.narrow-panel {
  max-width: 40rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.status-stack {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chip,
.primary-button,
.ghost-button {
  border-radius: 999px;
  padding: 0.75rem 1rem;
}

.chip {
  background: rgba(12, 124, 89, 0.08);
  border: 1px solid rgba(12, 124, 89, 0.16);
}

.primary-button,
.ghost-button,
button {
  font: inherit;
  cursor: pointer;
}

.primary-button,
button.primary-button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--accent), #16956c);
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

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

.stack-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  color: var(--ink);
}

.action-cell {
  display: flex;
  gap: 0.6rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.2rem;
}

.info-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(12, 124, 89, 0.06);
  border: 1px solid rgba(12, 124, 89, 0.12);
}

.info-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.1rem 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(26, 34, 48, 0.12);
}

.footer-part {
  min-width: 0;
}

.footer-center {
  text-align: center;
}

.footer-center a {
  color: var(--accent-strong);
  text-decoration: none;
}

.footer-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 840px) {
  .hero,
  .two-up,
  .info-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .brand-lockup {
    align-items: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right,
  .footer-center {
    text-align: center;
  }
}
