:root {
  font: 100%/1.65 system-ui, "Apple SD Gothic Neo", sans-serif;
  color: #142731;
  background: #f1f6f6;
  --accent: #006454;
  --muted: #486068;
  --border: #c8d8d8;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid #087e6a; outline-offset: 4px; }
.shell { width: min(62rem, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { background: #142731; color: white; padding-block: 1rem; }
.brand { color: inherit; font-weight: 750; letter-spacing: .035em; text-decoration: none; }
.brand span { color: #a7edda; }
.brand:focus-visible { outline-color: #a7edda; }
main { padding-block: clamp(2.5rem, 7vw, 5rem); }
.intro { margin-bottom: 2.5rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.18; letter-spacing: -.045em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.15rem; }
p { color: var(--muted); }
.intro p { margin-top: .75rem; font-size: 1.05rem; }
.experiments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
}
.experiment, .panel {
  display: block;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: white;
  padding: 1.25rem;
  color: inherit;
}
.experiment { text-decoration: none; }
.experiment:hover { border-color: var(--accent); }
.experiment:hover h3 { text-decoration: underline; }
.area { color: var(--accent); font-weight: 700; font-size: .875rem; }
.experiment p, .panel p { margin-top: .4rem; }
.back { display: inline-block; margin-block: .5rem; }
.panel { max-width: 32rem; }
.panel strong { margin-inline-start: .5rem; color: #142731; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
button {
  font: inherit;
  font-weight: 650;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: .4rem;
  padding: .45rem .85rem;
  cursor: pointer;
}
button.secondary { background: white; color: var(--accent); }
button:disabled { background: #ebf0f0; color: var(--muted); border-color: var(--border); cursor: default; }

.header-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-button { background: transparent; border-color: #95aeae; font-size: .875rem; }
.header-button:focus-visible { outline-color: #a7edda; }
.login-panel { max-width: 26rem; margin: 0 auto; }
.login-panel h1 { font-size: 2rem; }
.login-form { display: grid; gap: .45rem; margin-top: 1.2rem; }
.login-form label { font-weight: 650; }
.login-form input {
  width: 100%;
  border: 1px solid #829b9d;
  border-radius: .4rem;
  padding: .55rem .65rem;
  font: inherit;
  color: inherit;
  background: white;
}
.login-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-form input + label, .login-form button { margin-top: .6rem; }
.login-panel .form-error { margin-top: .8rem; color: #962c27; }
