:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #21302a;
  --muted: #65736d;
  --line: #dfe4dc;
  --green: #6f9859;
  --green-dark: #6f9859;
  --blue: #79a561;
  --gold: #b9873d;
  --shadow: 0 18px 42px rgba(45, 61, 53, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 228, 220, 0.86);
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-dark);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(
      180deg,
      rgba(247, 245, 239, 0.2) 0%,
      rgba(247, 245, 239, 0.42) 48%,
      rgba(247, 245, 239, 0.94) 100%
    ),
    url("/assets/welcome_window_watercolor_v1.png") center 42% / cover no-repeat;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: #42544b;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--green);
  color: white;
  font-weight: 760;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 253, 248, 0.82);
  color: var(--green-dark);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.section.narrow {
  width: min(820px, calc(100% - 32px));
}

.section-header {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-header h2,
.content h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-header p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.tile {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tile h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  gap: 34px;
  align-items: center;
}

.image-panel {
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 248, 0.1),
      rgba(255, 253, 248, 0.24)
    ),
    url("/assets/family_home_profile_watercolor_v1.png") center / cover
      no-repeat;
  box-shadow: var(--shadow);
}

.content {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.content p,
.content li {
  color: #44574e;
}

.content h2 {
  margin: 34px 0 10px;
  font-size: 1.45rem;
}

.content h3 {
  margin: 24px 0 8px;
  font-size: 1.12rem;
}

.content ul,
.content ol {
  padding-left: 22px;
}

.notice {
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
  background: #fff7e6;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-strong);
}

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

.status-page {
  min-height: calc(100vh - 128px);
}

.status-hero {
  margin-bottom: 28px;
}

.status-summary {
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface);
}

.status-summary.is-degraded {
  border-left-color: var(--gold);
  background: #fff7e6;
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
}

.status-card,
.incident-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.status-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff7e6;
  color: #875d20;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-operational {
  background: #e8f1e2;
  color: var(--green-dark);
}

.status-pill.is-degraded {
  background: #fff7e6;
  color: #875d20;
}

.incident-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

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

.status-error {
  min-height: 20px;
  margin-top: 18px;
  color: #9a2f2f;
  font-weight: 760;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.field label {
  font-weight: 720;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cfd7cf;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #44574e;
  font-size: 0.96rem;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 720;
}

.form-status[data-type="success"] {
  color: var(--green-dark);
}

.form-status[data-type="error"] {
  color: #9a2f2f;
}

.form-status[data-type="loading"] {
  color: var(--muted);
}

.button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

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

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    gap: 12px;
  }

  .hero {
    min-height: 74vh;
    background-position: 48% 36%;
  }

  .hero-inner {
    padding: 72px 0 48px;
  }

  .grid,
  .split,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .image-panel {
    min-height: 300px;
  }
}
