:root {
  color-scheme: light;
  --background: #f7f8f2;
  --foreground: #182923;
  --muted-foreground: #526359;
  --border: #cdd8cc;
  --surface: #fff;
  --accent: #1c5241;
  --blue: #275a9f;
  --orange: #a04a1b;
  --green: #23714c;
  --viz-series-1: var(--blue);
  --viz-series-2: var(--orange);
  --font-size-base: 1rem;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus { inset: .5rem auto auto .5rem; width: auto; height: auto; clip-path: none; z-index: 2; padding: .65rem; background: var(--surface); }
.masthead { border-bottom: 1px solid var(--border); }
.masthead-inner, .landing, .review-page {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.masthead-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .2rem 1.5rem;
  align-items: center;
  min-height: 4.25rem;
}

.masthead nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; }
.masthead a { text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; gap: .25rem; }
.masthead nav a[aria-current="page"] { text-decoration: underline; }
.wordmark { color: var(--accent); font-size: 1.08rem; font-weight: 750; letter-spacing: -.055em; }

h1, h2, h3 {
  color: var(--foreground);
  overflow-wrap: break-word;
  word-break: keep-all;
  letter-spacing: -.045em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4.4rem); font-weight: 780; }
h2 { font-size: clamp(1.43rem, 2.9vw, 2rem); font-weight: 730; }
h3 { font-size: 1.1rem; }
.category { color: var(--accent); font-size: .9rem; font-weight: 700; }
.text-small, .note, figcaption { font-size: .9rem; }
.text-muted, .note, figcaption { color: var(--muted-foreground); }

.landing { padding-block: clamp(2.7rem, 7vw, 6rem); }
.landing-intro { max-width: 37rem; display: grid; gap: 1.15rem; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.landing-intro p { color: var(--muted-foreground); font-size: clamp(1rem, 2vw, 1.17rem); max-width: 31rem; }
.featured {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  overflow: hidden;
}

.feature-story { padding: clamp(1.25rem, 4vw, 3rem); display: grid; gap: .9rem; align-content: center; justify-items: start; }
.feature-story p:not(.category) { color: var(--muted-foreground); max-width: 31rem; }
.feature-art { display: grid; align-content: center; padding: 1rem; background: #e8eee3; }
.feature-art img { width: 100%; border-radius: .55rem .55rem 0 0; }
.feature-art figcaption { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); text-align: center; padding: .65rem .2rem; border-top: 1px solid var(--border); border-radius: 0 0 .55rem .55rem; background: var(--surface); }
.primary-link { display: inline-flex; gap: .55rem; align-items: center; min-height: 2.75rem; padding: .45rem 1rem; margin-top: .2rem; border-radius: .45rem; background: var(--accent); color: white; text-decoration: none; font-weight: 700; }
.primary-link:hover { background: #133c2f; color: white; }

.review-page { padding-block: clamp(2.5rem, 6vw, 4.8rem) 4.5rem; }
.review-page article { max-width: 58rem; margin-inline: auto; }
.review-header { display: grid; gap: .65rem; padding-bottom: 1.3rem; }
.review-header h1 { max-width: 18ch; }
.lead { font-size: clamp(1.12rem, 2.8vw, 1.4rem); color: var(--muted-foreground); }
.disclosure { color: var(--accent); border-left: 3px solid var(--accent); padding: .55rem .85rem; margin-block-start: .55rem; background: #e8eee3; font-size: .93rem; }
.section-links { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; padding: .55rem 0; border-block: 1px solid var(--border); }
.section-links a { color: var(--accent); text-decoration: none; display: flex; align-items: center; min-height: 2.75rem; }
.section-links a:hover { text-decoration: underline; }
.review-body > section { padding-block: clamp(1.6rem, 4vw, 2.8rem); border-bottom: 1px solid var(--border); }
.review-body > section > * + * { margin-top: 1rem; }
.review-body > section > p { max-width: 45rem; }
.article-footer { margin-top: 2rem; }

.rack-fallback, .rack-interactive {
  padding: clamp(.85rem, 2.25vw, 1.45rem);
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: var(--surface);
  --background: var(--surface);
}

.rack-fallback img { margin-inline: auto; max-height: 39rem; object-fit: contain; }
.rack-fallback figcaption { margin-top: .65rem; }
.viz-controls, .viz-row { display: flex; flex-wrap: wrap; align-items: center; }
.form-select, .form-check-input, .form-range { accent-color: var(--accent); }
.form-select { max-width: 100%; color: var(--foreground); background: var(--surface); border: 1px solid var(--border); border-radius: .4rem; padding: .4rem .6rem; min-height: 2.75rem; font: inherit; }
.form-check { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .35rem; }
.form-check-input { inline-size: 1.05rem; block-size: 1.05rem; margin: 0; }
.form-check-input:disabled + span { opacity: .6; }

.table-scroll { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: .65rem; }
table { border-collapse: collapse; width: 100%; min-width: 33rem; font-size: .94rem; line-height: 1.45; }
th, td { padding: .75rem .74rem; border-bottom: 1px solid var(--border); text-align: left; }
thead th { background: #e8eee3; color: var(--accent); }
tbody th { min-width: 6.5rem; font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
.supported { color: #146045; font-weight: 750; }
.unsupported { color: #6d5346; }

.product-list { list-style: none; margin-bottom: 1rem; padding: 0; border-top: 1px solid var(--border); }
.product-list li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.product-heading { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline; justify-content: space-between; }
.product-heading strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.model { color: var(--muted-foreground); font-size: .9rem; margin-bottom: .45rem; }
.shop-link { display: inline-flex; align-items: center; gap: .32rem; min-height: 2.75rem; color: var(--accent); }

@media (max-width: 41rem) {
  .featured { grid-template-columns: minmax(0,1fr); }
  .feature-art { grid-row: 1; padding: .65rem; }
  .review-header h1 { max-width: none; }
  .masthead-inner { padding-block: .5rem; }
}
