:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --ink: #181818;
  --muted: #66615b;
  --line: #ded9d0;
  --accent: #315f68;
  --accent-strong: #203f46;
  --paper: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: 56px 0 40px;
}

.brand-panel {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.identity {
  max-width: 560px;
}

.label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.tagline {
  margin: 24px 0 0;
  color: var(--accent-strong);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 650;
}

.summary {
  max-width: 36rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.home-link {
  display: inline-flex;
  margin-bottom: 42px;
  font-weight: 700;
  text-decoration: none;
}

.text-page {
  padding-top: 4px;
}

.text-page h1 {
  font-size: clamp(2.1rem, 6vw, 3.8rem);
}

.text-page h2 {
  margin: 38px 0 10px;
  font-size: 1.05rem;
}

.text-page p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.text-page .updated {
  margin-top: 12px;
  color: #817a70;
  font-size: 0.95rem;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer.compact {
  width: min(760px, calc(100% - 40px));
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(520px, calc(100% - 32px));
    padding-top: 36px;
  }

  .brand-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .logo {
    max-width: min(320px, 82vw);
  }

  .content-shell,
  .site-footer,
  .site-footer.compact {
    width: calc(100% - 32px);
  }

  .content-shell {
    padding-top: 40px;
  }
}
