:root {
  color-scheme: light;
  --ink: #142d30;
  --muted: #496265;
  --line: #d1dedd;
  --paper: #f4f8f7;
  --accent: #126255;
  font: 100%/1.55 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid #a35b13; outline-offset: 4px; }
.frame { width: min(100% - 2rem, 65rem); margin-inline: auto; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.15rem; }
.brand { color: var(--ink); font-weight: 720; text-decoration: none; }
nav a { font-size: .94rem; font-weight: 600; }
main { padding-block: clamp(2.25rem, 7vw, 5rem); min-height: 25rem; }
h1 { margin: 0 0 .7rem; font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.04em; line-height: 1.1; }
p { margin: 0 0 1.5rem; color: var(--muted); }
.intro { max-width: 39rem; padding-block: 1rem; }
.button { display: inline-block; border: 1px solid transparent; border-radius: .35rem; padding: .65rem 1rem; background: var(--accent); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button:hover { background: #0a4940; }
.catalog { overflow-x: auto; border: 1px solid var(--line); border-radius: .45rem; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .9rem clamp(.6rem, 3vw, 1.25rem); }
thead { font-size: .9rem; color: var(--muted); background: #e9f0ef; }
tbody tr { border-top: 1px solid var(--line); }
tbody th { font-weight: 600; }
tbody a { display: inline-block; font-weight: 620; }
.tier { display: inline-block; border-radius: .3rem; padding: .15rem .45rem; background: #e8efef; font-size: .9rem; font-weight: 650; }
.tier.restricted { color: #613814; background: #f6eadb; }
.back { display: inline-block; margin-bottom: 1rem; }
.summary { width: min(100%, 36rem); margin: 1.25rem 0; border-block: 1px solid var(--line); padding-block: .55rem; }
.summary div { display: grid; grid-template-columns: minmax(7rem, 1fr) 2fr; gap: 1rem; padding-block: .35rem; }
dt { color: var(--muted); }
dd { margin: 0; }
.reference { font-family: ui-monospace, monospace; letter-spacing: .035em; overflow-wrap: anywhere; }
form { display: grid; max-width: 28rem; justify-items: start; gap: .4rem; }
label { font-weight: 650; }
input, select { width: 100%; margin-bottom: .75rem; border: 1px solid #829c9a; border-radius: .3rem; padding: .6rem .7rem; background: #fff; color: var(--ink); font: inherit; }
details { width: 100%; margin-bottom: .65rem; }
details[open] summary { margin-bottom: .5rem; }
summary { color: var(--accent); cursor: pointer; }
.error { color: #8b2723; font-weight: 650; }
.footer { padding-block: 1rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
