@font-face {
  font-family: Pretendard;
  src: url("fonts/Pretendard.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --review-paper: #f4f3f0;
  --review-surface: #fff;
  --review-ink: #272a2b;
  --review-muted: #60635e;
  --review-line: #d4d5ce;
  --review-focus: #355964;
  --review-selected: #e4e9e8;
  font-family: Pretendard, sans-serif;
  color: var(--review-ink);
  background: var(--review-paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 15px; line-height: 1.5; }
button, select, a { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { text-underline-offset: .22em; }
button, select { border-radius: 6px; }
button { border: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--review-selected); color: var(--review-ink); }
:focus-visible { outline: 2px solid var(--review-focus); outline-offset: 4px; }
* { scrollbar-color: #9b9f98 var(--review-paper); scrollbar-width: thin; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 16px; padding: 12px 16px; background: var(--review-surface); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.overview { max-width: 1640px; margin: 0 auto; padding: 0 clamp(22px, 4vw, 72px) 56px; }
.review-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; border-bottom: 1px solid var(--review-line); }
.review-name { display: flex; align-items: baseline; gap: 15px; margin: 0; font-size: 14px; }
.review-name [lang="ko"] { font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
.review-name > span:last-child, .review-note { color: var(--review-muted); }
.review-note { margin: 0; font-size: 12px; }
.overview-intro { padding: 46px 0 32px; }
.overview-intro h1 { margin: 0; font-size: clamp(28px, 2.65vw, 38px); line-height: 1.15; font-weight: 550; letter-spacing: -.035em; text-wrap: balance; }
.overview-intro p { margin: 14px 0 0; color: var(--review-muted); }
.examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 36px); }
.example { min-width: 0; }
.example-preview { display: block; text-decoration: none; }
.capture { position: relative; aspect-ratio: 1.44; overflow: hidden; border: 1px solid var(--review-line); background: var(--review-surface); transition: border-color 160ms ease-out; }
.capture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.capture-fallback { display: grid; align-content: center; height: 100%; margin: 0; padding: 24px; color: var(--review-muted); font-size: 14px; text-align: center; }
.capture-fallback span { display: block; margin-top: 8px; color: var(--review-ink); }
.example-copy { padding: 23px 0 0; }
.example-copy h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.example-copy p { margin: 10px 0 0; color: var(--review-muted); font-size: 14px; min-height: 42px; max-width: 35ch; }
.preview-action { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 15px; font-weight: 550; font-size: 14px; }
.example-preview:hover .capture { border-color: var(--review-ink); }
.example-preview:hover h2 { text-decoration: underline; text-underline-offset: .22em; }
.standalone-link { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; margin-top: 2px; font-size: 12px; color: var(--review-muted); text-decoration: none; }
.standalone-link svg { width: 16px; height: 16px; }
.standalone-link:hover { color: var(--review-ink); text-decoration: underline; }
.no-script { margin-top: 32px; color: var(--review-muted); }

body.preview-open { overflow: hidden; }
.viewer { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.preview-toolbar { display: flex; align-items: center; gap: 24px; flex: none; min-height: 78px; padding: 14px 24px; background: var(--review-surface); border-bottom: 1px solid var(--review-line); }
.back-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 0; background: transparent; font-size: 13px; }
.back-button:hover span { text-decoration: underline; text-underline-offset: .22em; }
.example-switcher { min-width: 0; }
.example-switcher select { min-height: 44px; width: 214px; max-width: 100%; padding: 0 30px 0 12px; border: 1px solid var(--review-line); background: var(--review-surface); font-size: 14px; }
.viewer-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.device-controls { display: flex; gap: 3px; }
.device-controls button { min-height: 44px; padding: 0 16px; background: transparent; font-size: 13px; }
.device-controls button[aria-pressed="true"] { background: var(--review-ink); color: var(--review-surface); }
.device-controls button[aria-pressed="false"]:hover { background: var(--review-selected); }
.open-example { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12px; text-decoration: none; }
.open-example:hover { text-decoration: underline; }
.open-example svg { width: 17px; height: 17px; }
.preview-stage { display: grid; place-items: center; flex: 1 1 auto; min-height: 0; min-width: 0; padding: 22px; overflow: hidden; }
.frame-holder { position: relative; flex: none; background: var(--review-surface); box-shadow: 0 5px 24px rgb(39 42 43 / .09); }
.frame-holder iframe { display: block; border: 0; transform-origin: top left; background: var(--review-surface); }
.viewer-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 16px; min-height: 36px; padding: 6px 24px 10px; flex: none; color: var(--review-muted); font-size: 12px; }
.viewer-footer output { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (min-width: 1700px) { .overview-intro { padding-top: 62px; padding-bottom: 42px; } }
@media (max-width: 1000px) {
  .preview-toolbar { gap: 16px; padding-inline: 18px; }
  .viewer-actions { gap: 14px; }
  .example-switcher select { width: 202px; }
  .open-example { font-size: 12px; }
}
@media (max-width: 760px) {
  .overview { padding-inline: 22px; }
  .review-header { min-height: 98px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 5px; }
  .review-name { gap: 12px; }
  .review-note { font-size: 12px; }
  .overview-intro { padding-block: 32px 25px; }
  .overview-intro h1 { font-size: 30px; }
  .overview-intro p { font-size: 14px; max-width: 31ch; }
  .examples-grid { grid-template-columns: 1fr; gap: 36px; }
  .example-copy { padding-top: 18px; }
  .example-copy p { min-height: auto; max-width: none; }
  .preview-action { margin-top: 8px; }
  .standalone-link { margin-top: 0; }
  .preview-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 10px 14px; }
  .back-button { justify-self: start; }
  .example-switcher { justify-self: end; }
  .example-switcher select { width: 194px; font-size: 13px; }
  .viewer-actions { grid-column: 1 / -1; justify-content: space-between; margin: 0; }
  .device-controls button { padding-inline: 18px; }
  .open-example { font-size: 12px; }
  .preview-stage { padding: 14px; }
  .viewer-footer { padding-inline: 14px; font-size: 12px; gap: 2px 10px; }
}
@media (max-width: 380px) {
  .back-button { font-size: 12px; gap: 5px; }
  .example-switcher select { width: 178px; font-size: 12px; padding-left: 8px; }
  .preview-toolbar { column-gap: 8px; padding-inline: 10px; }
  .viewer-footer { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
