:root {
  --bg: #f6f2e8;
  --bg-accent: #ece4d2;
  --panel: rgba(255, 253, 248, 0.9);
  --text: #132318;
  --muted: #586252;
  --line: rgba(19, 35, 24, 0.14);
  --brand: #0d3a2d;
  --brand-soft: #cfe0d5;
  --brand-strong: #08271f;
  --danger: #8c2b2b;
  --danger-soft: #f7dfdf;
  --shadow: 0 24px 60px rgba(27, 40, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: radial-gradient(circle at top left, #fdf9f0 0%, var(--bg) 45%, #e8ddc7 100%);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
}

.background-grid {
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  position: fixed;
  background-image:
    linear-gradient(to right, rgba(13, 58, 45, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 58, 45, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 92%);
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1100px;
  padding: 1.4rem 1.2rem 0.8rem;
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: white;
  display: inline-flex;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 56px;
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.brand-copy small,
.meta,
.label {
  color: var(--muted);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.nav-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-strong);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(13, 58, 45, 0.08);
  border-color: rgba(13, 58, 45, 0.34);
  transform: translateY(-1px);
}

.page-shell {
  display: grid;
  gap: 1.2rem;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0.4rem 1.2rem 3rem;
}

.page-shell > section {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero {
  background:
    linear-gradient(160deg, rgba(13, 58, 45, 0.96), rgba(8, 39, 31, 0.96)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 42%);
  color: #f7f4ed;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  inset: auto -4rem -5rem auto;
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.65;
}

.eyebrow {
  color: rgba(247, 244, 237, 0.78);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  margin: 0.2rem 0 0.8rem;
}

.lead {
  font-size: 1.08rem;
  margin: 0;
  max-width: 48rem;
}

h2 {
  font-size: 1.45rem;
  margin-top: 0;
}

p,
li,
label,
input,
textarea,
select,
button {
  font-size: 1rem;
}

ul.checklist,
ol.steps {
  margin: 0;
  padding-left: 1.2rem;
}

ul.checklist li,
ol.steps li {
  margin: 0.45rem 0;
}

.alert {
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

.alert.error {
  background: var(--danger-soft);
  border: 1px solid rgba(140, 43, 43, 0.16);
  color: var(--danger);
}

.alert ul {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.status-card {
  background: linear-gradient(165deg, rgba(207, 224, 213, 0.86), rgba(255, 255, 255, 0.9));
}

.status-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1rem 0 1.2rem;
}

.status-grid strong {
  display: block;
  margin-top: 0.15rem;
}

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

.request-form label {
  display: grid;
  gap: 0.45rem;
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.request-form span {
  color: var(--brand-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

.request-form input,
.request-form textarea,
.request-form select {
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
}

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

.request-form button {
  appearance: none;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  justify-self: start;
  padding: 0.85rem 1.25rem;
}

.request-form button:hover {
  filter: brightness(1.05);
}

.site-footer {
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 1.2rem 2.4rem;
}

.site-footer p {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(19, 35, 24, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0;
  padding: 1rem 1.1rem;
}

code {
  background: rgba(13, 58, 45, 0.09);
  border-radius: 8px;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  padding: 0.15rem 0.35rem;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-shell > section {
    border-radius: 24px;
    padding: 1.15rem;
  }
}
