:root {
  --page: #d8e1de;
  --card: #f6f5f1;
  --cream: #f6f5f1;
  --stitch: #748b85;
  --terracotta: #8b5134;
  --terracotta-deep: #6b3a24;
  --copper: #8b5d41;
  --sage: #2c5d54;
  --moss: #25504c;
  --slate: #2a4655;
  --dusk: #4f3258;
  --fog: #bed2d5;
  --ink: #162021;
  --ink-soft: #536160;
  --gold: #b08b49;
  --rail: #c3d1ce;
  --drape: #cedad8;
  --chip: #e3eae7;
  --danger: #9e3a2d;
  --radius: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.55;
  background:
    linear-gradient(
      168deg,
      rgba(37, 80, 76, 0.38) 0%,
      rgba(190, 210, 213, 0.55) 28%,
      var(--page) 62%,
      rgba(79, 50, 88, 0.28) 100%
    );
  background-attachment: fixed;
}

a {
  color: var(--terracotta);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--terracotta-deep); }

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand { min-width: 0; }

.kicker {
  margin: 0 0 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wordmark {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 5px;
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.nav a[aria-current="page"],
.nav a.primary {
  background: var(--terracotta);
  color: var(--cream);
}

.status {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 17px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(22, 32, 33, 0.12);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin: 0 0 14px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
}

.card p, .card li { color: var(--ink); }

.card p:last-child,
.card ul:last-child { margin-bottom: 0; }

.card ul {
  margin: 8px 0 0;
  padding-left: 1.15em;
}

.card li + li { margin-top: 6px; }

.hero {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  margin-bottom: 18px;
}

.hero .kicker { color: rgba(246, 245, 241, 0.72); }

.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 400;
}

.hero p {
  margin: 0;
  color: rgba(246, 245, 241, 0.82);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.btn-fill {
  background: var(--terracotta);
  color: var(--cream);
}

.btn-fill:hover { color: var(--cream); background: var(--terracotta-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(22, 32, 33, 0.18);
}

.meta {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}

.rule {
  height: 1px;
  background: rgba(22, 32, 33, 0.18);
  border: 0;
  margin: 22px 0;
}

@media (max-width: 560px) {
  .top { flex-direction: column; }
  .nav { justify-content: flex-start; }
  .wordmark { font-size: 32px; }
  .actions { grid-template-columns: 1fr; }
}
