:root {
  --paper: #fbf6ec;
  --paper-deep: #f3e9d6;
  --ink: #3f3328;
  --ink-soft: #6e5f50;
  --accent: #9a5a2e;
  --leaf: #6f8a55;
  --line: #e4d6bd;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #2a241e;
    --paper-deep: #221d18;
    --ink: #f1e7d6;
    --ink-soft: #c9b9a2;
    --accent: #e0a46f;
    --leaf: #a9c08c;
    --line: #463b30;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(214, 182, 132, 0.12), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(150, 170, 120, 0.10), transparent 50%);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.site-header .home {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-header .home img { width: 36px; height: 36px; border-radius: 9px; }

.site-header nav { display: flex; gap: 18px; font-family: var(--sans); font-size: 15px; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* Home */
.hero {
  position: relative;
  margin: 8px -20px 0;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: url("/assets/meadow.jpg") center 70% / cover no-repeat;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--paper));
}

.hero img {
  position: relative;
  z-index: 1;
  width: min(360px, 78%);
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 14px rgba(80, 55, 30, 0.18));
}

.tagline {
  text-align: center;
  font-size: 24px;
  font-style: italic;
  color: var(--ink);
  margin: 16px auto 8px;
  max-width: 30ch;
}

.lede { text-align: center; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 32px; }

.notes {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 32px 0;
}

.notes p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.notes strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }

.soon {
  text-align: center;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
}

/* Documents */
h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
  margin: 24px 0 4px;
}

.updated { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin: 0 0 28px; }

h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

h3 { font-size: 18px; margin: 24px 0 4px; }

.summary {
  background: var(--paper-deep);
  border-left: 3px solid var(--leaf);
  border-radius: 4px 14px 14px 4px;
  padding: 16px 20px;
  margin: 0 0 8px;
}

.summary p:first-child { margin-top: 0; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

ul { padding-left: 1.2em; }
li { margin: 6px 0; }

.contact {
  font-size: 22px;
  margin: 8px 0 24px;
}

details {
  border-bottom: 1px dashed var(--line);
  padding: 12px 0;
}

summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 4px; color: var(--ink-soft); }

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .site-header .home span { display: none; }
  .hero { min-height: 320px; }
  h1 { font-size: 28px; }
}
