:root {
  --ink: #0f1b2d;
  --ink-soft: #3b4a63;
  --paper: #fafaf7;
  --accent: #1c5d8a;
  --rule: #d9dee6;
  --warn: #b9551f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

header.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-name { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; }
nav.primary ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
nav.primary a { color: var(--ink-soft); font-size: 0.95rem; }
nav.primary a[aria-current="page"] { color: var(--ink); font-weight: 600; }

main { max-width: 860px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

section.hero {
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, #eaf0f6 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
}
section.hero h1 { font-size: 2.1rem; margin: 0 0 0.75rem; font-weight: 600; letter-spacing: -0.01em; }
section.hero p.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 40rem; margin: 0 auto 1.5rem; }

.cta {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
}
.cta:hover { background: var(--accent); text-decoration: none; color: #fff; }

h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; color: var(--ink-soft); }

p { margin: 0 0 1rem; }

ul.clean { list-style: none; padding: 0; }
ul.clean li { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
ul.clean li:last-child { border-bottom: 0; }

details { border-bottom: 1px solid var(--rule); padding: 0.85rem 0; }
details summary {
  font-weight: 500; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--ink-soft); font-size: 1.3rem; }
details[open] summary::after { content: "−"; }
details p { margin-top: 0.75rem; color: var(--ink-soft); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.gallery .tile {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #cdd8e3 0%, #eaf0f6 100%);
  border-radius: 4px;
  display: flex; align-items: flex-end;
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.embed-frame {
  border: 1px solid var(--rule);
  border-radius: 6px;
  min-height: 600px;
  background: #fff;
  padding: 1rem;
}

footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
footer.site-footer nav a { color: var(--ink-soft); margin: 0 0.5rem; }

.notice {
  background: #fff4ec;
  border-left: 3px solid var(--warn);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: #eef2f6; font-weight: 600; }

@media (max-width: 600px) {
  section.hero h1 { font-size: 1.65rem; }
  section.hero p.lede { font-size: 1rem; }
  main { padding: 1.5rem 1rem 3rem; }
  header.site-header { flex-direction: column; align-items: flex-start; }
  nav.primary ul { gap: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
