:root {
  color-scheme: dark;
  --ground: #101716;
  --surface: #17221e;
  --line: #35443c;
  --text: #f1eee4;
  --muted: #b6c3b9;
  --accent: #b7d7bb;
  --heading: Georgia, "Noto Serif TC", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text); font: 16px/1.6 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .25em; }
button, input, select { font: inherit; }
button, select, input { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; background: var(--ground); color: var(--text); }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .54; }
button.primary { color: #102219; background: var(--accent); border-color: var(--accent); font-weight: 650; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 750; font-size: 1.18rem; text-decoration: none; letter-spacing: -.045em; color: var(--text); }
nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.2rem; }
nav a, .contract { font-size: .88rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-block: clamp(2.2rem, 6vw, 5rem); }
h1, h2 { font: 500 clamp(3.2rem, 7.5vw, 6.3rem)/.99 var(--heading); letter-spacing: -.065em; margin: 0 0 1.35rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.55rem); letter-spacing: -.04em; margin-bottom: .8rem; }
p { margin: 0 0 1.1rem; }
.intro { max-width: 32rem; font-size: clamp(1.02rem, 2vw, 1.24rem); }
.muted, .contract { color: var(--muted); }
.price { color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; }
.contract { margin: 1.2rem 0 0; overflow-wrap: anywhere; }
.art { margin: 0; max-width: 410px; width: 100%; justify-self: end; }
.art img { display: block; width: 100%; height: auto; aspect-ratio: 6/7; background: var(--surface); border-radius: 14px; box-shadow: 0 14px 40px #0004; }
.art figcaption { margin-top: .55rem; color: var(--muted); font-size: .8rem; }
.tools { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1rem; margin-bottom: 2rem; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.1rem, 3vw, 2rem); }
.controls { display: grid; grid-template-columns: 1.15fr 1fr .75fr; gap: .65rem; margin: 1rem 0; padding: 0; border: 0; min-width: 0; }
.controls label { min-width: 0; display: grid; gap: .3rem; font-size: .86rem; color: var(--muted); }
.controls input, .controls select { min-width: 0; width: 100%; }
.controls .toggle { display: flex; grid-column: 1/-1; align-items: center; gap: .5rem; margin: .25rem 0; }
.controls .toggle input { width: 1.15rem; min-height: 1.15rem; accent-color: var(--accent); }
.feedback { min-height: 1.5em; color: var(--accent); overflow-wrap: anywhere; }
.week { margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: .5rem 0; }
th:last-child, td:last-child { text-align: right; }
footer { border-top: 1px solid var(--line); padding: 1.1rem 0 2rem; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .hero, .tools { grid-template-columns: 1fr; }
  .hero { gap: 1.5rem; padding-block: 2rem; }
  .art { justify-self: start; max-width: 370px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .controls label:first-child { grid-column: 1/-1; }
}
