:root {
  --container: 1060px;
  --header-h: 64px;
  --radius: 3px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

html[data-theme='dark'] {
  --bg: #141210;
  --bg-2: #191612;
  --surface: #1d1a15;
  --text: #ece6db;
  --text-2: #a79d8e;
  --text-3: #7b7264;
  --line: #2b2721;
  --line-2: #3e382f;
  --accent: #d2643a;
  --accent-soft: rgba(210, 100, 58, .13);
}

html[data-theme='light'] {
  --bg: #f4f0e8;
  --bg-2: #efe9dd;
  --surface: #fbf8f2;
  --text: #191612;
  --text-2: #5c554b;
  --text-3: #857c6f;
  --line: #ddd4c4;
  --line-2: #c5bba7;
  --accent: #a8431d;
  --accent-soft: rgba(168, 67, 29, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
}

svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }

.skip-link {
  position: fixed; top: -80px; left: 20px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  transition: top .15s;
}
.skip-link:focus { top: 8px; }

.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; flex: none; }
.brand em { font-style: normal; color: var(--accent); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .02em;
  color: var(--text-3); padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); border-bottom-color: var(--accent); }

.head-right { display: flex; align-items: center; gap: 14px; flex: none; }

.tbtn {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: none; border: 0; color: var(--text-3); padding: 0;
}
.tbtn:hover { color: var(--accent); }
.tbtn svg { width: 16px; height: 16px; }
.tbtn .moon { display: none; }
html[data-theme='light'] .tbtn .sun { display: none; }
html[data-theme='light'] .tbtn .moon { display: block; }

.burger { display: none; width: 30px; height: 30px; background: none; border: 0; padding: 0; color: var(--text-2); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 16px; height: 1.5px; background: currentColor; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.hero { padding: 92px 0 84px; border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 1fr 232px; gap: 56px; align-items: start; }

.kicker { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 22px; }

.hero h1 { font-size: clamp(3.1rem, 8vw, 5.1rem); font-weight: 600; letter-spacing: -.03em; margin-bottom: 26px; }

.hero__lead { font-size: 1.16rem; max-width: 54ch; color: var(--text-2); }
.hero__lead strong { color: var(--text); font-weight: 500; }

.avail { display: flex; align-items: baseline; gap: 10px; font-size: .95rem; color: var(--text); margin: 30px 0 26px; }
.avail::before { content: ''; width: 7px; height: 7px; background: var(--accent); flex: none; translate: 0 -1px; }

.hero__links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--mono); font-size: .86rem; }
.hero__links a { border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.hero__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-2); }
.photo figcaption { font-family: var(--mono); font-size: .72rem; color: var(--text-3); margin-top: 10px; line-height: 1.55; }

.sec { padding: 84px 0; border-bottom: 1px solid var(--line); }
.sec--tint { background: var(--bg-2); }
.sec__label { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.sec__title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.sec__intro { color: var(--text-2); max-width: 60ch; margin: 0 0 52px; }
.sec__title + .rows, .sec__title + .prose, .sec__title + .sim { margin-top: 46px; }

.prose { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.prose p { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 500; }
.prose em { font-style: italic; color: var(--text); }
.prose > div > p:last-child { margin-bottom: 0; }

.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.spec dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.spec dd { margin: 0; color: var(--text); }
.spec dd small { display: block; color: var(--text-3); font-size: .82rem; }

.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 210px 1fr; gap: 34px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row > h3 { font-size: 1.24rem; font-weight: 600; }
.row__body p { margin-bottom: .7em; color: var(--text-2); }
.row__body p:last-child { margin-bottom: 0; }
.row__body strong { color: var(--text); font-weight: 500; }
.techs { font-family: var(--mono); font-size: .8rem; color: var(--text-3); line-height: 1.85; }
.techs b { color: var(--text-2); font-weight: 500; }

.row--year { grid-template-columns: 110px 1fr; gap: 34px; padding: 20px 0; }
.row--year .yr { font-family: var(--mono); font-size: .84rem; color: var(--accent); padding-top: 4px; letter-spacing: .02em; }
.row--year p { margin: 0; color: var(--text-2); }
.row--year p strong { color: var(--text); font-weight: 500; }

.does { columns: 2; column-gap: 46px; border-top: 1px solid var(--line); padding-top: 26px; }
.does li { break-inside: avoid; padding: 0 0 14px 20px; position: relative; color: var(--text-2); font-size: .97rem; }
.does li::before { content: ''; position: absolute; left: 0; top: 11px; width: 7px; height: 1px; background: var(--accent); }
.does li b { color: var(--text); font-weight: 500; }

.sim { display: grid; grid-template-columns: 1fr 316px; border: 1px solid var(--line-2); background: var(--surface); }
.sim__panel { padding: 32px; }
.sim__label { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 18px; }

.sim__units { display: flex; flex-wrap: wrap; border: 1px solid var(--line); width: fit-content; margin-bottom: 20px; }
.unit { padding: 8px 16px; border: 0; background: none; font-family: var(--mono); font-size: .8rem; color: var(--text-3); border-right: 1px solid var(--line); }
.unit:last-child { border-right: 0; }
.unit:hover { color: var(--text); }
.unit.is-active { background: var(--accent); color: #fff; }

.sim__row { display: flex; gap: 8px; margin-bottom: 20px; }
.stepper { width: 42px; flex: none; border: 1px solid var(--line-2); background: none; color: var(--text-2); font-size: 1.15rem; line-height: 1; border-radius: var(--radius); }
.stepper:hover { color: var(--accent); border-color: var(--accent); }
.sim__numwrap { flex: 1; position: relative; display: flex; align-items: center; }
.sim__numwrap input {
  width: 100%; padding: 12px 82px 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  font-family: var(--mono); font-size: 1.18rem;
  appearance: textfield; -moz-appearance: textfield;
}
.sim__numwrap input::-webkit-outer-spin-button, .sim__numwrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim__numwrap input:focus { outline: 0; border-color: var(--accent); }
.sim__unit { position: absolute; right: 14px; font-family: var(--mono); font-size: .82rem; color: var(--text-3); pointer-events: none; }

.sim__range { width: 100%; height: 3px; margin: 4px 0 0; -webkit-appearance: none; appearance: none; background: transparent; }
.sim__range::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--accent) var(--fill, 8%), var(--line-2) var(--fill, 8%)); }
.sim__range::-moz-range-track { height: 3px; background: var(--line-2); }
.sim__range::-moz-range-progress { height: 3px; background: var(--accent); }
.sim__range::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6px; background: var(--accent); border: 0; border-radius: 50%; cursor: grab; }
.sim__range::-moz-range-thumb { width: 15px; height: 15px; background: var(--accent); border: 0; border-radius: 50%; cursor: grab; }
.marks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--text-3); margin-top: 7px; }

.sim__tiers { margin-top: 28px; border-top: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 11px 0 11px 12px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
.tier b { font-family: var(--mono); font-size: .9rem; font-weight: 500; color: var(--text-2); }
.tier p { margin: 0; font-size: .84rem; color: var(--text-3); line-height: 1.6; }
.tier.is-active { border-left-color: var(--accent); background: var(--accent-soft); }
.tier.is-active b { color: var(--accent); }
.tier.is-active p { color: var(--text-2); }

.sim__base { font-family: var(--mono); font-size: .74rem; color: var(--text-3); margin: 20px 0 0; line-height: 1.7; }

.sim__out { padding: 32px 28px; border-left: 1px solid var(--line-2); background: var(--bg); display: flex; flex-direction: column; }
.sim__badge { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.sim__cap { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 6px; }
.sim__price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 24px; font-family: var(--serif); }
.sim__price span:first-child { font-size: 1.1rem; color: var(--text-2); }
#simTotal { font-size: clamp(2.3rem, 4.6vw, 2.9rem); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.sim__list { border-top: 1px solid var(--line); margin-bottom: 18px; }
.sim__list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.sim__list span { color: var(--text-3); }
.sim__list b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

.sim__hint { font-size: .82rem; line-height: 1.6; color: var(--text-3); padding-left: 12px; border-left: 1px solid var(--line-2); margin-bottom: 20px; }
.sim__hint:empty { display: none; }

.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: var(--radius); font-size: .92rem; font-weight: 500;
}
.act:hover { background: transparent; color: var(--accent); }
.act svg { width: 16px; height: 16px; flex: none; }
.act--block { width: 100%; }

.sim__fine { font-size: .76rem; color: var(--text-3); margin: 14px 0 0; line-height: 1.6; }

.links { border-top: 1px solid var(--line); }
.links a { display: grid; grid-template-columns: 118px 1fr auto; gap: 20px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.links a:hover { color: var(--accent); }
.links .lbl { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.links a:hover .lbl { color: var(--accent); }
.links .val { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links .ext { font-family: var(--mono); font-size: .78rem; color: var(--text-3); }
.links a:hover .ext { color: var(--accent); }

.foot { padding: 34px 0 44px; }
.foot__in { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: .76rem; color: var(--text-3); }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 44px; }
  .photo { max-width: 210px; }
  .prose { grid-template-columns: 1fr; gap: 40px; }
  .sim { grid-template-columns: 1fr; }
  .sim__out { border-left: 0; border-top: 1px solid var(--line-2); }
}

@media (max-width: 760px) {
  .burger { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 28px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; font-size: .88rem; border-bottom: 1px solid var(--line); }
  .nav a.on { border-bottom-color: var(--line); color: var(--accent); }
}

@media (max-width: 660px) {
  .sec { padding: 60px 0; }
  .hero { padding: 62px 0 58px; }
  .wrap { padding-inline: 22px; }
  .row, .row--year { grid-template-columns: 1fr; gap: 10px; }
  .row--year .yr { padding-top: 0; }
  .does { columns: 1; }
  .spec div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .sim__panel, .sim__out { padding: 24px 20px; }
  .tier { grid-template-columns: 1fr; gap: 3px; }
  .links a { grid-template-columns: 1fr auto; gap: 4px 14px; }
  .links .lbl { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .header, .sim__out .act, .skip-link { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sec, .hero { padding: 18px 0; }
}
