:root {
  color-scheme: light;
  --background: #f0eee8;
  --surface: #fffdf9;
  --ink: #2d2633;
  --muted: #5a4c66;
  --line: #c6bbcc;
  --accent: #5c3b73;
  --wash: #ece0f3;
  font: 16px/1.55 "Instrument Sans", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--background); }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .22em; }
.mast { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; }
.intro { padding: 3.25rem 0 1.8rem; }
h1 { font: 700 clamp(2.8rem, 7vw, 5.5rem)/.97 "Instrument Serif", Georgia, serif; letter-spacing: -.05em; margin: 0; }
.intro p { color: var(--muted); max-width: 40rem; font-size: 1.12rem; margin: .85rem 0 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.1; letter-spacing: -.025em; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(.95rem, 2.6vw, 1.65rem); }
.parameters, .heading, .actions { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; }
.heading { justify-content: space-between; align-items: start; }
label { font-size: .9rem; font-weight: 730; display: block; }
input, select { display: block; background: white; color: var(--ink); border: 1px solid #9c84a7; border-radius: 5px; margin-top: .2rem; padding: .49rem .56rem; width: 100%; min-width: 0; min-height: 41px; font: inherit; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: .9rem 0; }
fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: .68rem .78rem .8rem; }
fieldset label + label { margin-top: .55rem; }
legend { font-weight: 780; padding: 0 .25rem; }
button { min-height: 41px; cursor: pointer; color: white; background: var(--accent); border: 1px solid var(--accent); border-radius: 5px; padding: .45rem .7rem; font: inherit; font-weight: 730; }
button:not(:disabled):hover { filter: brightness(.88); }
button:disabled { opacity: .45; cursor: default; }
.secondary { color: var(--accent); background: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.notice { color: var(--muted); font-size: .89rem; margin: .55rem 0 0; }
.result { margin-top: .85rem; }
.scroll { overflow: auto; margin-top: .65rem; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
caption { text-align: left; margin-bottom: .32rem; font-weight: 750; }
th, td { padding: .5rem; text-align: left; border: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
th { background: var(--wash); }
th[scope="row"] { white-space: normal; min-width: 8rem; }
.method { max-width: 49rem; color: var(--muted); padding: 2.25rem 0 3rem; }
.method h2 { color: var(--ink); }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 1.5rem); }
  .intro { padding-top: 2rem; }
  .cards { grid-template-columns: 1fr; }
}

.person { display: grid; grid-template-columns: 1.3fr .7fr 1fr auto; gap: .55rem; align-items: end; margin-block: .55rem; }
.intro h1 { font-family: "Instrument Sans", Inter, system-ui, sans-serif; }
@media (max-width: 600px) { .person { grid-template-columns: 1fr 1fr; }.person label:first-of-type { grid-column: 1 / -1; } }
