:root {
  color-scheme: dark;
  --paper: #101012;
  --ink: #f5f4f6;
  --muted: #bebdc6;
  --line: #ffffff38;
  --accent: #dceafb;
  --surface: #19191d;
  --focus: #b8d9ff;
  --control-ink: #161619;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px 'Noto Sans KR', sans-serif;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('silver-wave.png') center / 100% 100% no-repeat;
  opacity: .8;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(1184px, calc(100% - 72px)); margin-inline: auto; }

header { border-bottom: 1px solid var(--line); }
header .wrap { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 24px Manrope, sans-serif; letter-spacing: -.055em; white-space: nowrap; }
.mark { display: block; flex: none; width: 36px; height: 36px; }
nav { display: flex; gap: clamp(12px, 3vw, 36px); font-size: 14px; font-weight: 700; }
nav a:hover, .sources a:hover { text-decoration: underline; text-underline-offset: 4px; }
.outline, .pill {
  border: 1px solid var(--line); background: transparent; border-radius: 50px;
  padding: 9px 16px; color: var(--ink); font-size: 14px; font-weight: 700;
}
.outline:hover, .pill:hover { border-color: #b2afb9; }
#saved { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
#count { display: grid; place-items: center; min-width: 21px; height: 21px; border-radius: 20px; background: #3a3a41; color: var(--ink); font: 800 13px Manrope, sans-serif; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e9ebed;
  color: #f4f7fa;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 70%;
  z-index: -2;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0d141ef7, #0d141ed4 23%, #10182955 43%, transparent 61%);
  pointer-events: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: clamp(500px, 56.25vw, 920px);
  gap: 16px;
  padding-block: 22px 34px;
}
.cover-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #adc0d74d;
  color: #161c26;
  font-size: 14px;
  font-weight: 800;
}
.cover-top > * { padding: 5px 10px; border-radius: 4px; background: #eef4fb; }
.cover-top a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-copy { align-self: center; justify-self: start; max-width: 360px; }
.hero h1 {
  margin: 0;
  font: 800 clamp(3rem, 7.3vw, 6.6rem)/.95 Manrope, sans-serif;
  letter-spacing: -.08em;
}
.feature-summary { max-width: 23ch; margin: 17px 0 19px; color: #edf1f6; line-height: 1.6; word-break: keep-all; }
.browse { display: inline-block; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-weight: 700; }
.browse:hover { color: #c6dcf5; }
.hero :focus-visible { outline-color: #fff; }
.cover-bottom {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 23px;
  justify-self: start;
  max-width: 100%;
  border-top: 1px solid #d5e5f56b;
  padding-top: 13px;
}
.cover-bottom p { margin: 0 0 4px; font: 800 13px Manrope, sans-serif; letter-spacing: .16em; color: #d6e8fb; }
.cover-bottom h2 { margin: 0; font: 800 clamp(1.7rem, 4.1vw, 3.7rem)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.cover-action {
  border: 1px solid #dceafb;
  border-radius: 4px;
  background: #dceafb;
  color: #111824;
  padding: 8px 13px;
  font-weight: 800;
  font-size: 14px;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.cover-action:hover { background: #fff; box-shadow: 0 3px 16px #c6ddff43; }
.cover-action:focus-visible { outline-color: #fffdf3; }
.cta { border: 0; border-radius: 4px; background: var(--accent); color: var(--control-ink); padding: 12px 19px; font-weight: 800; }
.cta:hover { background: #fff; }

.reviews { padding: 51px 0 76px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.review-heading { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 15px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.065em; margin: 0; }
.search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #17171bd9; padding: 9px 13px; border-radius: 4px; }
.search svg { width: 18px; flex: none; color: var(--muted); }
.search input { width: 210px; border: 0; background: transparent; color: var(--ink); }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: none; }
.filters[hidden] { display: none; }
.filters[hidden] + .grid { margin-top: 22px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 17px 0 22px; }
.pill[aria-pressed=true], #saved[aria-pressed=true] { background: var(--accent); color: var(--control-ink); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
@media (min-width: 801px) {
  .grid:has(.card:nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid:has(.card:nth-child(5)) .card { grid-column: span 2; }
  .grid:has(.card:nth-child(5)) .card:nth-child(-n+2) { grid-column: span 3; }
  .grid:has(.card:nth-child(5)) .card:nth-child(-n+2) .product-image { aspect-ratio: 1.23; }
}
.card { position: relative; min-width: 0; }
.product-image {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #454438;
  color: #fffdf4;
}
.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #12140fa8, transparent 25%, transparent 46%, #15160fe8);
}
.card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.product-image[data-product=headphones] img { object-position: 55% 40%; }
.product-image[data-product=keyboard] img { object-position: 52% center; }
.product-image[data-product=coffee] img { object-position: 44% center; }
.product-image[data-product=camera] img { object-position: 16% center; }
.product-image[data-product=speaker] img { object-position: 57% center; }
.card:hover img { transform: scale(1.035); }
.card-category {
  position: absolute;
  inset: 18px 21px auto;
  padding-bottom: 9px;
  border-bottom: 1px solid #fff9e9a1;
  font-size: 14px;
  font-weight: 700;
}
.card h3 {
  margin: 0 21px 19px;
  font: 900 clamp(1.65rem, 3.4vw, 3.4rem)/1.09 Manrope, 'Noto Sans KR', sans-serif;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.card button { border: 0; background: none; padding: 0; text-align: left; color: inherit; font: inherit; letter-spacing: inherit; }
.card button span { display: block; margin-bottom: 5px; font: 700 14px 'Noto Sans KR', sans-serif; letter-spacing: .02em; }
.card button::after { content: ''; position: absolute; inset: 0; }
.product-image:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card:focus-within h3, .card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.card-summary { margin: 11px 0 3px; color: var(--muted); line-height: 1.55; word-break: keep-all; }
@media (prefers-reduced-motion: reduce) { .card img { transition: none; } }
.empty { grid-column: 1/-1; text-align: center; padding: 30px; border: 1px dashed var(--line); border-radius: 12px; }
.empty button { margin-top: 10px; }
footer { background: #101012aa; border-top: 1px solid var(--line); padding: 23px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }

dialog {
  width: min(1120px, calc(100% - 40px));
  max-height: 93dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface) linear-gradient(135deg, #1a1a1f, #101012);
  overscroll-behavior: contain;
}
dialog::backdrop { background: #070709cc; }
dialog form { position: sticky; top: 0; height: 0; z-index: 2; }
.close { position: absolute; inset: 12px 12px auto auto; background: var(--paper); box-shadow: 0 2px 9px #141a121a; }
.review-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.review-cover {
  position: relative;
  isolation: isolate;
  min-height: 490px;
  overflow: hidden;
  background: #475448;
  color: #fffdf3;
}
.review-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.review-cover[data-product=headphones] img { object-position: 55% center; }
.review-cover[data-product=keyboard] img { object-position: 51% center; }
.review-cover[data-product=coffee] img { object-position: 44% center; }
.review-cover[data-product=camera] img { object-position: 16% center; }
.review-cover[data-product=speaker] img { object-position: 57% center; }
.review-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #17191196, transparent 22%, transparent 43%, #171911e6);
}
.review-cover-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 3.3vw, 38px); }
.review-cover-category { margin: 0; padding-bottom: 10px; border-bottom: 1px solid #fff9e9a1; font-size: 14px; font-weight: 700; }
.review-cover h2 {
  margin: 0;
  font: 800 clamp(2rem, 4.6vw, 4.15rem)/1.04 Manrope, 'Noto Sans KR', sans-serif;
  letter-spacing: -.062em;
  overflow-wrap: anywhere;
}
.review-cover h2 span { display: block; margin-bottom: 8px; font: 700 16px 'Noto Sans KR', sans-serif; letter-spacing: .02em; }
.detail { padding: clamp(24px, 3.5vw, 42px); padding-top: 49px; }
.review-deck { margin: 0 0 19px; font-size: clamp(1.15rem, 2.3vw, 1.5rem); font-weight: 800; line-height: 1.42; letter-spacing: -.05em; word-break: keep-all; }
.review-summary { margin: 0; border-top: 1px solid var(--line); }
.review-summary > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-summary dt { margin-bottom: 5px; color: #dbd8e5; font-size: 14px; font-weight: 800; }
.review-summary dd { margin: 0; line-height: 1.58; word-break: keep-all; }
.review-summary .review-fit { margin-top: 12px; padding: 12px 14px; border: 0; background: #2a2931; }
.review-fit dd { font-weight: 700; }
.review-quick, .review-explanation > summary { display: none; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 0; }
.detail .note { margin: 7px 0 13px; font-size: 13px; color: var(--muted); }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  header .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  header nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 1px 13px;
  }
  header nav a { flex: none; }
  header .wrap { min-height: 64px; }
  .hero-layout { min-height: 475px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 16px; }
}
@media (max-width: 680px) {
  dialog { width: calc(100% - 20px); }
  .review-spread { grid-template-columns: minmax(0, 1fr); }
  .review-cover { min-height: 0; height: clamp(215px, 71vw, 363px); }
  .review-cover-category { margin-right: 54px; }
  .review-cover h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .detail { padding: 16px 17px 20px; }
  .review-deck { margin-bottom: 13px; line-height: 1.4; }
  .review-quick { display: block; }
  .review-quick > div {
    display: grid;
    grid-template-columns: minmax(70px, auto) 1fr;
    align-items: baseline;
    gap: 8px;
    padding: 9px 0;
  }
  .review-quick dt { margin: 0; }
  .review-quick dd { font-size: .9375rem; line-height: 1.46; }
  .review-quick .review-fit { margin-top: 7px; padding: 9px 7px; }
  .review-explanation { margin-top: 11px; }
  .review-explanation > summary {
    display: list-item;
    cursor: pointer;
    padding-block: 8px;
    font-size: 14px;
    font-weight: 700;
  }
}
@media (max-width: 360px) {
  header .wrap { gap: 9px; }
  header .logo { gap: 6px; font-size: 17px; }
  header .mark { width: 26px; height: 26px; }
  #saved { gap: 5px; padding-inline: 8px; font-size: 13px; }
  .review-cover { height: clamp(205px, 70vw, 250px); }
  .review-cover-copy { padding: 15px; }
  .review-cover h2 { font-size: clamp(1.7rem, 8.5vw, 2rem); }
  .detail { padding: 12px 13px 16px; }
  .review-deck { margin-bottom: 9px; font-size: 1rem; }
  .review-quick > div { grid-template-columns: 65px minmax(0, 1fr); gap: 6px; padding-block: 7px; }
  .review-quick dd { line-height: 1.38; }
  .review-quick .review-fit { margin-top: 5px; padding: 7px 5px; }
}
@media (max-width: 640px) {
  .hero { background: #10141c; }
  .hero > img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
  .hero::before { display: none; }
  .hero-layout { min-height: 0; grid-template-rows: auto auto auto; gap: 18px; padding-block: 17px 24px; }
  .cover-top { padding-bottom: 7px; color: var(--muted); }
  .cover-top > * { background: transparent; padding: 0; }
  .hero h1 { font-size: clamp(2.1rem, 8.5vw, 3.25rem); }
  .hero h1 br { display: none; }
  .feature-summary { max-width: none; margin: 8px 0 10px; }
  .cover-bottom { width: 100%; justify-content: space-between; }
  .cover-bottom h2 { font-size: clamp(1.4rem, 6.3vw, 2.25rem); }
  .reviews { padding-top: 31px; }
  .grid { grid-template-columns: 1fr; gap: 23px; }
  .product-image { aspect-ratio: 1.12; }
  .card h3 { font-size: clamp(1.9rem, 7.8vw, 3rem); }
  .search { width: 100%; }
  .search input { width: 100%; }
}
@media (max-width: 430px) {
  .wrap { width: calc(100% - 32px); }
  .pill { padding-inline: 13px; }
  .card-category { inset: 15px 16px auto; }
  .card h3 { margin: 0 16px 15px; }
}

/* The covers stay readable while the photography moves independently. */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  height: 3px;
  background: linear-gradient(90deg, #7c99bb, #dceafb);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
header { background: #101012df; }
header nav a { position: relative; }
header nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -6px;
  border-bottom: 1px solid #cac6d4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
header nav a:hover, header nav a:focus-visible { text-decoration: none; }
header nav a:is(:hover, :focus-visible, [aria-current=true])::after { transform: scaleX(1); }

#results { flex: none; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.pill { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.pill:active { transform: scale(.94); }
.search { transition: border-color .2s ease, box-shadow .2s ease; }
.search:focus-within { box-shadow: 0 4px 14px #24271b14; }
.product-image { border-radius: 5px; box-shadow: inset 0 0 0 1px #ffffff2b; }
.product-image { transition: box-shadow .3s ease; }
.product-image::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid #fffdf45c;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.card-caption {
  cursor: pointer;
  min-height: 57px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.card-caption .card-summary { margin: 0; }
.card-caption:hover span { text-decoration: underline; text-underline-offset: 4px; }
.card-caption span { flex: none; color: #c3d9f1; font-size: 13px; font-weight: 700; }
.card h3 span { transition: color .25s ease, transform .28s ease; }
.card:hover h3, .card:focus-within h3 { text-decoration: none; }
.hero > img, .card img { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .product-image { box-shadow: 0 12px 30px #0008; }
  .card:hover .product-image::after { opacity: 1; }
  .card:hover h3 span { color: #e9e5f3; transform: translateY(-3px); }
  .card:hover img, .hero:hover > img { transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(1.085); }
}
@media (max-width: 640px) {
  .card-caption { min-height: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: rise-in .65s cubic-bezier(.2,.7,.2,1) both; }
  .hero > img { animation: cover-in .85s cubic-bezier(.2,.7,.2,1) both; }
  .hero .cover-bottom { animation: rise-in .68s .16s cubic-bezier(.2,.7,.2,1) both; }
  .card.revealed { animation: rise-in .62s var(--entry-delay, 0ms) cubic-bezier(.2,.7,.2,1) both; }
  .card.revealed:focus-within { animation: none; }
  dialog[open] { animation: review-in .27s cubic-bezier(.2,.7,.2,1) both; }
  dialog[open]::backdrop { animation: fade-in .25s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { display: none; }
  *, *::before, *::after { transition: none !important; }
  .card:hover img, .card:hover h3 span, .hero:hover > img, .pill:active { transform: none; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(23px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cover-in { from { opacity: 0; clip-path: inset(3% 0 6%); } to { opacity: 1; clip-path: inset(0); } }
@keyframes review-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.photo-credit { font-size: 13px; }
.photo-credit a { text-decoration: underline; text-underline-offset: 3px; }
