:root {
  color-scheme: light;
  --ink: #17372f;
  --body: #39564c;
  --accent: #225b49;
  --tint: #e4f0e9;
  --edge: #cadbd0;
  --paper: #fbfaf5;
  --warm: #fff0d4;
  font: 1rem/1.6 "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
.medio {
  --ink: #192f4b;
  --body: #3d5069;
  --accent: #285686;
  --tint: #e6eef9;
  --edge: #cad8eb;
}
* { box-sizing: border-box; }
body { margin: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
a { color: var(--accent); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #a96309; outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .5rem 1rem; background: white; z-index: 1; }
.skip:focus { top: .5rem; }
.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--edge); background: white; }
.nav, .brand, nav, .actions, .footer { display: flex; align-items: center; flex-wrap: wrap; }
.nav, .footer { justify-content: space-between; gap: .5rem 1.2rem; padding-block: .8rem; }
.brand { gap: .55rem; color: var(--ink); font-weight: 780; text-decoration: none; }
nav, .actions { gap: .55rem 1.3rem; }
nav a { color: var(--ink); font-size: .92rem; font-weight: 650; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 5.7rem); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font: 500 clamp(2.4rem, 6.8vw, 5.55rem)/1.03 "Instrument Serif", Georgia, serif; letter-spacing: -.055em; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h3 { font-size: 1.24rem; line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.35; }
p { color: var(--body); }
.eyebrow { margin-bottom: .65rem; color: var(--accent); font-size: .78rem; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.hero p:not(.eyebrow), .intro { max-width: 56ch; margin-top: .9rem; font-size: 1.06rem; }
.actions { margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1rem; background: var(--accent); border: 1px solid var(--accent); border-radius: .5rem; color: white; font-weight: 720; text-decoration: none; }
.button:hover { filter: brightness(.92); }
.example { margin: 0; min-width: 0; padding: clamp(1.25rem, 4vw, 2rem); border-radius: 1.35rem; background: var(--ink); color: white; }
.example figcaption { margin-top: 1rem; color: #edf4ee; font-size: .93rem; }
.example-label { color: #fff0cf; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.place-value { margin-top: 1rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; text-align: center; }
.place-value span { display: grid; gap: .18rem; background: #ffffff16; border-radius: .48rem; padding: .5rem .05rem; font-size: clamp(1.4rem, 5vw, 2.35rem); font-weight: 760; }
.place-value span:nth-child(2) { background: #ffdf94; color: #25362f; }
.place-value small { font-size: .69rem; font-weight: 620; }
.price-example { display: grid; gap: .7rem; margin-top: 1rem; }
.price-example div { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: .65rem; font-weight: 680; }
.price-example span { background: #ffffff1b; padding: .35rem .55rem; border-radius: .25rem; white-space: nowrap; }
.price-example div:last-child span { width: 80%; color: #192f4b; background: #ffdf94; }
.section { padding-block: clamp(2rem, 6vw, 4.4rem); border-top: 1px solid var(--edge); }
.section + .section { margin-top: 0; }
.year-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.group-title { margin-top: 1.8rem; }
.year-card { background: white; border: 1px solid var(--edge); border-top: 3px solid var(--accent); border-radius: .8rem; padding: 1rem; }
.year-card header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .45rem; }
.status { font-size: .77rem; font-weight: 740; padding: .1rem .55rem; border-radius: 1rem; background: var(--tint); }
.planned { background: var(--warm); color: #60410e; }
.year-card ol { padding-left: 1.3rem; margin: .8rem 0 0; }
.year-card li + li { margin-top: .65rem; }
.year-card li p { font-size: .92rem; }
.enem-card { margin-top: 1.2rem; max-width: 44rem; }
.lab { background: var(--tint); }
.lab-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.25rem, 5vw, 3rem); align-items: start; }
.interactive { background: white; border: 1px solid var(--edge); border-radius: .85rem; padding: clamp(1rem, 3.5vw, 1.6rem); min-width: 0; }
.interactive label { display: block; font-weight: 700; margin: .8rem 0 .25rem; }
.interactive input[type=range] { width: 100%; accent-color: var(--accent); }
.interactive output { display: block; margin-top: .6rem; font-size: 1.24rem; font-weight: 760; color: var(--accent); }
.interactive p { margin-top: .5rem; }
.lab-caption { margin-top: .8rem; font-size: .88rem; }
.routine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.routine article { border-left: 3px solid var(--accent); padding: .35rem .8rem; }
.routine p { margin-top: .45rem; }
.footer { border-top: 1px solid var(--edge); font-size: .9rem; }
@media (max-width: 780px) {
  .hero, .lab-grid { grid-template-columns: 1fr; }
  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 2rem); }
  .year-grid, .routine { grid-template-columns: 1fr; }
}
