:root {
  color-scheme: light;
  --ink: #143b33;
  --muted: #38564d;
  --line: #b7c8bb;
  --green: #145746;
  --paper: #fafbf7;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.06rem/1.58 system-ui, sans-serif; }
main, nav, footer { width: min(100% - 2.4rem, 55rem); margin-inline: auto; }
nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
nav img { display: block; width: 8rem; }
nav span { display: flex; flex-wrap: wrap; gap: .85rem; }
a { color: #075e50; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #a85808; outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-180%); background: white; padding: .5rem; } .skip:focus { transform: none; }
header { padding: clamp(2rem,6vw,4.2rem) 0 1.2rem; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.5rem,7vw,4.65rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.6rem,4vw,2.38rem); margin: 0 0 .8rem; letter-spacing: -.025em; }
h3 { margin: 0 0 .45rem; font-size: 1.13rem; }
p { max-width: 67ch; margin: .55rem 0 1rem; }
header p { font-size: clamp(1.15rem,2.7vw,1.42rem); }
section { padding: 1.8rem 0; border-top: 1px solid var(--line); }
figure { margin: 1.3rem 0; background: #eaf1e9; padding: clamp(.85rem,3vw,1.65rem); border-radius: .65rem; }
figure h3 { margin-bottom: 1rem; }
.tree { max-width: 38rem; margin-inline: auto; }
.title-node, .copy-node { display: block; padding: .65rem; border: 1px solid #839b90; border-radius: .45rem; background: white; text-align: center; }
.title-node { max-width: 19rem; margin: auto; background: #163f34; color: white; }
.title-node small, .copy-node span { display: block; }
.relationship { display: table; margin: auto; padding: .28rem .7rem; color: var(--muted); font-size: .9rem; }
.branches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; position: relative; }
.branches::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 1px; background: #6a8578; }
.copy-node { position: relative; margin-top: .75rem; }
.copy-node::before { content: ''; position: absolute; left: 50%; top: -.8rem; height: .75rem; width: 1px; background: #6a8578; }
.copy-node span { font-size: .95rem; }
.interaction { margin-top: 1.1rem; }
.state { display: block; padding: .85rem 1rem; border-left: .25rem solid #326c52; background: white; }
button, .action { display: inline-block; font: inherit; font-weight: 650; color: white; background: var(--green); border: 0; border-radius: .35rem; padding: .65rem 1rem; cursor: pointer; text-decoration: none; }
button[hidden] { display: none; }
dt { font-weight: 700; margin-top: .8rem; } dd { margin: .2rem 0 .8rem; max-width: 66ch; }
details { padding: .8rem 0; } summary { cursor: pointer; color: var(--green); font-weight: 650; } details p { margin-bottom: 0; }
footer { padding: 1rem 0 3rem; }
@media (max-width: 390px) { body { font-size: 1rem; } nav img { width: 6rem; } .branches { gap: .5rem; } }
