:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202321;
  background: #f7f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #202321;
  --muted: #666d68;
  --line: #dedfd9;
  --paper: #fffefa;
  --green: #315b4b;
  --green-dark: #244536;
  --green-pale: #e9f0e9;
  --warning: #775922;
  --warning-pale: #f7efd9;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

a { color: var(--green-dark); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #a76f34; outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer {
  width: min(100% - 3rem, 1120px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 720;
  letter-spacing: -0.07em;
  text-decoration: none;
}
.wordmark span { color: var(--green); }

nav { display: flex; gap: clamp(1rem, 4vw, 2.5rem); }
nav a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { font-weight: 650; }

.page {
  width: min(100% - 3rem, 760px);
  margin-inline: auto;
  flex: 1;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.home-page { width: min(100% - 3rem, 880px); }
.eyebrow, .card-label {
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 570;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.intro {
  max-width: 660px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid #d3dfd4;
  border-radius: 0.8rem;
  background: var(--green-pale);
}
.notice-mark {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
}
.notice h2 { margin: 0; font-size: 1rem; line-height: 1.4; }
.notice p { margin: 0.35rem 0 0; color: #4d5c52; line-height: 1.55; }
.notice-draft { border-color: #e5d8b2; background: var(--warning-pale); }
.notice-draft .notice-mark { background: var(--warning); }
.notice-draft h2 { color: #4d3a16; }
.notice-draft p { color: #5c4c2c; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.link-card, .contact-card {
  position: relative;
  display: flex;
  min-height: 205px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}
.link-card:hover { transform: translateY(-2px); border-color: #9daea2; }
.link-card .card-label, .contact-card .card-label { margin-bottom: 1.25rem; color: var(--muted); letter-spacing: 0.08em; }
.link-card strong { font-size: 1.35rem; font-weight: 650; }
.card-detail { max-width: 250px; margin-top: 0.55rem; color: var(--muted); line-height: 1.5; }
.card-arrow { position: absolute; right: 1.4rem; bottom: 1.2rem; color: var(--green); font-size: 1.15rem; }

.site-footer {
  min-height: 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }

.back-link { display: inline-block; margin-bottom: 3rem; color: var(--muted); text-decoration: none; }
.document-page h1, .support-page h1 { font-size: clamp(2.5rem, 7vw, 3.75rem); }
.document-meta { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.9rem; }
.prose { margin-top: 3rem; }
.prose h2 { margin: 2.4rem 0 0.7rem; font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; }
.prose p { margin: 0.65rem 0; color: #424843; font-size: 1.04rem; line-height: 1.8; }
.prose strong { color: var(--ink); }
.last-updated { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

.contact-card { min-height: auto; margin-top: 2.5rem; }
.contact-card h2 { margin: 0; font-size: 1.35rem; font-weight: 650; }
.contact-card p:not(.card-label) { margin: 0.6rem 0 0; color: var(--muted); line-height: 1.55; }
.email-link { margin-top: 1.1rem; font-size: 1.15rem; font-weight: 650; }
.quiet-note, .privacy-prompt { color: var(--muted); line-height: 1.65; }
.quiet-note { margin-top: 1.5rem; font-size: 0.92rem; }
.privacy-prompt { margin-top: 2.4rem; }

@media (max-width: 600px) {
  .site-header, .site-footer { width: min(100% - 2rem, 1120px); }
  .site-header { min-height: 72px; }
  .page, .home-page { width: min(100% - 2rem, 760px); padding-block: 3.5rem; }
  .link-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 175px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0.4rem; padding-block: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
