:root {
  --brand: #3a606e;
  --brand-deep: #2f505c;
  --brand-soft: #bfd2d8;
  --accent: #c4e456;
  --warm: #dd6031;
  --ink: #223a43;
  --text: #0f172a;
  --muted: #5b6b72;
  --page: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "SN Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--page); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: a page shorter than the viewport (open.html) otherwise leaves the
     footer floating mid-screen with blank page beneath it. svh rather than vh so mobile
     browser chrome cannot push it off. No effect on pages that already overflow. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.wrap { max-width: 760px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
/* Direct child only — .wrap is also the footer's inner container (.wrap.foot). */
body > .wrap { flex: 1 0 auto; width: 100%; }

header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: clamp(1.25rem, 3vw, 2rem);
}
.mark { display: inline-flex; align-items: baseline; gap: 0.05em; font-weight: 700;
  font-size: 1.6rem; color: var(--brand-deep); letter-spacing: -0.02em; text-decoration: none; }
.mark .mark-logo { height: clamp(3.5rem, 4.8vw, 4.0rem); width: auto; display: block; }
.mark .dot { color: var(--accent); }
.back { font-size: 0.95rem; color: var(--brand); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4em; }
.back:hover { color: var(--brand-deep); }
.back::before { content: "\2190"; }

article { padding-block: clamp(0.5rem, 2vw, 1.5rem) clamp(3rem, 7vw, 5rem); }
article h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; color: var(--ink);
  letter-spacing: -0.025em; line-height: 1.08; }
.updated { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; margin-bottom: 2.25rem; }
article h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 700; color: var(--ink);
  margin-top: 2.5rem; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
article h3 { font-size: 1.12rem; font-weight: 600; color: var(--brand-deep);
  margin-top: 1.5rem; margin-bottom: 0.4rem; }
article p { margin-bottom: 1rem; max-width: 68ch; }
article ul { margin: 0 0 1.1rem 1.3rem; max-width: 68ch; }
article li { margin-bottom: 0.55rem; }
article a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
article a:hover { color: var(--warm); }
.contact { background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.1rem 1.3rem; margin-bottom: 1.25rem; max-width: 68ch; }
.contact a { color: var(--brand); }

footer { background: var(--brand-deep); color: var(--brand-soft); margin-top: 2rem; }
.foot { padding-block: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  align-items: center; justify-content: space-between; }
.foot .fm { font-weight: 700; color: #fff; font-size: 1.25rem; }
.foot .fm .dot { color: var(--accent); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot a { color: var(--brand-soft); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.foot a:hover { color: var(--accent); }
.foot-logo { height: 3.4rem; width: auto; display: block; }
