:root {
  color-scheme: light;
  --ink: #17312b;
  --muted: #52635b;
  --green: #215a46;
  --line: #cbd9ce;
  --paper: #f8faf5;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.75 system-ui, "Microsoft JhengHei", sans-serif;
}
a { color: var(--green); text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.wrap { max-width: 1050px; margin-inline: auto; padding-inline: clamp(1rem, 5vw, 3rem); }
.skip { position: absolute; top: .5rem; left: .5rem; background: white; padding: .5rem; }
.skip:not(:focus) { transform: translateY(-150%); }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .07em; }
.brand span { display: block; font-size: .63rem; color: var(--muted); }
.intro, .article-head { padding-block: clamp(2.5rem, 8vw, 5rem) 2rem; }
.eyebrow { color: var(--green); font-size: .78rem; font-weight: 750; letter-spacing: .08em; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: .45em 0; font-size: clamp(2.1rem, 7vw, 4rem); letter-spacing: -.035em; }
h2 { margin-top: 2rem; }
h2 span, .quiet, footer { color: var(--muted); font-size: .93rem; }
.lead { font-size: clamp(1.1rem, 3vw, 1.35rem); max-width: 44rem; }
.feature {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
}
.feature h3 { font-size: clamp(1.4rem, 4vw, 2.1rem); margin: .5em 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
  border-radius: .45rem;
  padding: .5rem .9rem;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  font-weight: 650;
  text-decoration: none;
}
.button.secondary { background: white; color: var(--green); }
.comparison {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: .75rem;
  background: #e5eee3;
  color: var(--green);
}
.comparison strong { font-size: clamp(1.6rem, 5vw, 2.8rem); }
.comparison span { font-size: .84rem; }
.reading { max-width: 800px; }
.article-head { border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.callout { background: #e5eee3; border-radius: .75rem; padding: 1rem 1.25rem; margin-top: 2rem; }
.callout p { margin: .25em 0; }
.back { margin-top: 2rem; }
footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 1rem; }

button { font: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; font-weight: 650; margin-top: .85rem; }
input, textarea {
  display: block;
  width: min(100%, 32rem);
  margin: .25rem 0 1rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 7rem; resize: vertical; }
.comments { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.comment-entry { border: 1px solid var(--line); padding: .85rem 1rem; margin-block: .75rem; border-radius: .65rem; background: white; }
.comment-entry p, .comment-entry h3 { margin: .35rem 0; }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
th, td { text-align: left; padding: .35rem 1rem .35rem 0; border-bottom: 1px solid var(--line); }
details { margin-block: 1.25rem; }
summary { cursor: pointer; font-weight: 650; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.compare-card { background: white; border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; }
.compare-card h3 { margin: .45rem 0; }
.dimm-slots { display: flex; gap: .25rem; margin-block: 1rem; }
.dimm-slots span { flex: 1; height: 2rem; border-radius: .18rem; background: #e5eee3; border: 1px solid var(--line); }
.dimm-slots span.filled { background: var(--green); animation: unfurl .27s ease-out backwards; animation-delay: var(--delay); }
.lane-bar { height: .7rem; background: #e5eee3; border-radius: .5rem; overflow: hidden; }
.lane-bar span { display: block; width: var(--usage); height: 100%; background: var(--green); transform-origin: left; animation: lane-fill .55s ease-out; }
@keyframes lane-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.map-layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1.8fr); gap: 1.4rem; align-items: start; }
.map-paper { background: #f0eddd; border: 1px solid #dbd3b7; border-radius: .8rem; padding: 1rem; }
.map-paper svg { width: 100%; max-height: 340px; display: block; }
.map-trace { stroke-dasharray: 1; animation: trace .45s ease-out; }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.map-step { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .8rem; background: white; animation: unfurl .27s ease-out; }
@keyframes unfurl { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: translateY(0); } }
.map-choices { display: grid; gap: .6rem; margin-block: 1rem; }
.map-choices button { text-align: left; }
@media (prefers-reduced-motion: reduce) {
  .lane-bar span, .map-trace, .map-step, .dimm-slots span.filled { animation: none; }
}

@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; }
  .comparison { flex-direction: row; justify-content: space-around; gap: .5rem; }
  .compare-grid, .map-layout { grid-template-columns: 1fr; }
  .map-paper svg { max-height: 220px; }
}
