:root {
  --ink: #162019;
  --paper: #f4f0e4;
  --paper-deep: #e7dfcb;
  --forest: #1f5134;
  --forest-dark: #123523;
  --leaf: #568c56;
  --gold: #ba8b3d;
  --line: rgba(31, 81, 52, 0.2);
  --muted: #657168;
  --white: #fffef8;
  --shadow: 0 18px 45px rgba(21, 38, 27, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(186, 139, 61, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8f5eb, var(--paper));
  font: 17px/1.7 Georgia, "Times New Roman", serif;
}
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0c2e1c; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 50; padding: .65rem 1rem; background: var(--white); }
.site-header { color: var(--white); background: linear-gradient(135deg, var(--forest-dark), #214d32 62%, #315f3d); border-bottom: 4px solid var(--gold); }
.header-inner { max-width: 1120px; margin: auto; padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; min-width: max-content; }
.brand img { width: 48px; height: 48px; }
.brand strong { display: block; font-size: 1.18rem; letter-spacing: .02em; }
.brand span { display: block; color: #d5ddcf; font-size: .75rem; font-family: system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.menu { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; font-family: system-ui, sans-serif; font-size: .87rem; }
.menu a { color: #eef3eb; text-decoration: none; padding: .45rem .62rem; border-radius: 999px; }
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255,255,255,.13); color: #fff; }

main { max-width: 1040px; margin: auto; padding: 3rem 1.25rem 4.5rem; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; min-height: 420px; }
.eyebrow { color: var(--forest); font: 700 .76rem/1.3 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.18; color: var(--forest-dark); }
h1 { margin: .45rem 0 1rem; font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.035em; }
h2 { margin-top: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }
.lede { font-size: 1.18rem; max-width: 48rem; color: #435047; }
.phrase { padding: 1.35rem 1.5rem; border-left: 4px solid var(--gold); background: rgba(255, 254, 248, .72); box-shadow: var(--shadow); }
.phrase strong { display: block; color: var(--forest); font-size: 1.25rem; }
.phrase small { color: var(--muted); }
.hero-mark { padding: 2rem; text-align: center; }
.hero-mark img { width: min(100%, 300px); filter: drop-shadow(0 24px 30px rgba(18,53,35,.2)); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.button { display: inline-block; border: 1px solid var(--forest); border-radius: 999px; padding: .68rem 1rem; font: 650 .9rem/1 system-ui, sans-serif; text-decoration: none; }
.button.primary { color: white; background: var(--forest); }
.button:hover { transform: translateY(-1px); }

.section { margin-top: 4rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.4rem; background: rgba(255, 254, 248, .74); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(21,38,27,.06); }
.card p:last-child { margin-bottom: 0; }
.card .index { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: white; background: var(--forest); font: 700 .78rem system-ui, sans-serif; }
.page-head { max-width: 760px; margin-bottom: 2.5rem; }
.page-head h1 { font-size: clamp(2.35rem, 5vw, 4.3rem); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.6rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.prose li { margin: .5rem 0; }
.notice { margin: 2rem 0; padding: 1.1rem 1.25rem; border: 1px solid rgba(186,139,61,.45); background: #fff8e8; border-radius: 10px; }
.timeline { border-left: 2px solid var(--line); margin-left: .55rem; padding-left: 1.7rem; }
.timeline article { position: relative; margin: 2rem 0; }
.timeline article::before { content: ""; position: absolute; left: -2.17rem; top: .42rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); }
.meta { color: var(--muted); font: .82rem/1.5 system-ui, sans-serif; }
.dictionary-tools { margin: 1.5rem 0; }
.dictionary-tools label { display: block; margin-bottom: .4rem; color: var(--muted); font: .82rem system-ui, sans-serif; }
.dictionary-tools input { width: 100%; max-width: 34rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.dictionary { width: 100%; border-collapse: collapse; background: rgba(255,254,248,.7); }
.dictionary th, .dictionary td { padding: .72rem .85rem; text-align: left; border-bottom: 1px solid var(--line); }
.dictionary th { color: var(--forest); font: 700 .78rem system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.dictionary td:first-child { width: 32%; color: var(--forest); font-weight: 700; }
.no-results { display: none; color: var(--muted); }

.site-footer { color: #dce5dc; background: #102b1d; border-top: 3px solid var(--gold); }
.footer-inner { max-width: 1040px; margin: auto; padding: 2.3rem 1.25rem; display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; }
.footer-inner p { margin: .35rem 0; }
.footer-inner nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-inner a { color: #dce5dc; }
.fine { color: #aab9ab; font: .78rem/1.55 system-ui, sans-serif; }

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .menu { margin-left: 0; justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-mark { order: -1; padding: 0; }
  .hero-mark img { width: 180px; }
  .grid, .footer-inner { grid-template-columns: 1fr; }
  main { padding-top: 2rem; }
  .dictionary { font-size: .94rem; }
}

