:root {
  color-scheme: light;
  --page: #f7f8f3;
  --paper: #fffefa;
  --ink: #152a27;
  --muted: #475d58;
  --line: #d8e0d8;
  --green: #185549;
  --green-dark: #123b34;
  --mint: #dbf4de;
  --focus: #156453;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.container { width: min(calc(100% - 2.5rem), 72rem); margin-inline: auto; }
.skip { position: fixed; inset: .6rem auto auto .6rem; transform: translateY(-150%); background: white; z-index: 2; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.header-row { min-height: 4.7rem; padding-block: .55rem; }
.brand { color: var(--ink); font-size: 1.15rem; display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; letter-spacing: -.045em; }
.brand span span, .footer-row .brand span { color: var(--green); }
.brand-mark, .card-icon { display: grid; place-items: center; flex: none; background: var(--mint); color: var(--green-dark); border-radius: .72rem; font-weight: 800; }
.brand-mark { width: 2rem; height: 2rem; font-size: 1.2rem; }
nav { display: flex; gap: .2rem clamp(.75rem, 3vw, 1.6rem); flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-weight: 620; font-size: .9rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--green-dark); text-decoration: underline; text-underline-offset: .3em; }
main { min-height: 68vh; padding-block: clamp(1.2rem, 4vw, 3.25rem) clamp(2.75rem, 7vw, 5rem); }
.hero {
  padding: clamp(1.45rem, 5.5vw, 4rem);
  border: 1px solid #d3e6d7;
  border-radius: clamp(1rem, 3vw, 2rem);
  background: radial-gradient(ellipse at 97% 5%, #c9eed1 0, transparent 57%), linear-gradient(125deg, #eff7ed, #e3f6e6);
}
.hero-compact { padding-block: clamp(1.5rem, 5vw, 3.2rem); }
.intro { max-width: 52rem; margin-bottom: 1.5rem; }
.hero-compact .intro { margin-bottom: 0; }
main > .intro { margin: 0 auto 1.5rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .85rem; max-width: 14ch; font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.075em; text-wrap: balance; }
h2 { font-size: clamp(1.1rem, 4vw, 1.65rem); letter-spacing: -.04em; margin-bottom: .5rem; }
.eyebrow { color: var(--green); font-size: .79rem; font-weight: 800; text-transform: uppercase; letter-spacing: .075em; margin-bottom: .6rem; }
.lede { color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); max-width: 58ch; margin-bottom: 0; }
.panel, .tool-card { border: 1px solid var(--line); background: var(--paper); border-radius: 1rem; }
.lookup-panel { max-width: 52rem; padding: clamp(.95rem, 3vw, 1.4rem); box-shadow: 0 15px 45px #1b513116; }
label { display: block; margin-bottom: .45rem; font-size: .88rem; font-weight: 700; }
.form-row { display: flex; flex-wrap: wrap; gap: .65rem; }
input, button, .direct {
  min-height: 3rem; padding: .65rem .9rem; border-radius: .67rem; border: 1px solid transparent; font: inherit;
}
input { flex: 1 1 16rem; width: 100%; min-width: 0; color: var(--ink); border-color: var(--line); background: var(--page); }
input::placeholder { color: #586d66; }
button, .direct { background: var(--green); color: white; font-weight: 700; }
button { flex: 1 0 auto; cursor: pointer; }
button:disabled { cursor: wait; }
button:not(:disabled):hover, .direct:hover { background: var(--green-dark); }
#lookup-status { margin: .6rem 0 0; color: var(--muted); }
#lookup-status:empty { margin: 0; }
#lookup-status.error { color: #a1263d; }
.result { display: flex; align-items: center; justify-content: space-between; gap: .55rem 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .85rem; margin-top: .85rem; }
.result h2 { font-size: 1rem; letter-spacing: 0; margin: 0; overflow-wrap: anywhere; }
.result audio { width: 100%; }
.export-button { flex: 0 0 auto; }
.direct { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.directory { margin-top: clamp(1.5rem, 4vw, 3.25rem); }
.directory > h2 { margin-bottom: 1.05rem; }
.platform-nav { margin-top: 1.5rem; gap: .4rem .65rem; }
.platform-nav a { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 2rem; min-height: 2.4rem; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: .9rem; }
.tool-card { color: var(--ink); padding: 1.2rem; text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; }
.tool-card:hover { border-color: #78a792; box-shadow: 0 10px 25px #1b513117; }
.card-icon { width: 2.4rem; height: 2.4rem; font-size: 1.22rem; margin-bottom: .75rem; }
.tool-card h3 { font-size: 1.11rem; letter-spacing: -.025em; margin-bottom: .27rem; }
.tool-card p { color: var(--muted); margin-bottom: 1rem; }
.article { max-width: 52rem; margin: 1.25rem auto 0; padding: clamp(1.2rem, 4vw, 2.35rem); }
.article p { color: var(--muted); margin-bottom: 0; }
.article section + section { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
.article .direct + p { margin-top: 1rem; }
.return-link { max-width: 52rem; margin: 1rem auto 0; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-row { padding-block: 1.3rem; }
.footer-row p { color: var(--muted); margin: .3rem 0 0; font-size: .85rem; }
@media (max-width: 34rem) {
  .header-row { align-items: flex-start; gap: .3rem; flex-direction: column; }
  .header-row .brand { margin-top: .2rem; }
  .container { width: calc(100% - 1.4rem); }
}
