:root {
  --byz-e-ink: #000000;
  --byz-e-white: #ffffff;
  --byz-e-line: #ebebeb;
  --byz-e-muted: #6d6d6d;
  --byz-e-red: #e72819;
  --byz-e-soft: #f8f8f8;
  --byz-e-bar-h: 35px;
  --byz-e-head-h: 101px;
  --byz-e-cate-h: 61px;
  --byz-e-hero-h: 510px;
  --byz-e-max: 1340px;
  --byz-e-dialog-backdrop: rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--byz-e-white);
  color: var(--byz-e-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--byz-e-red);
  outline-offset: 3px;
}

.e-skip {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 200;
  min-height: 44px;
  padding: 12px 16px;
  transform: translateY(-140%);
  background: var(--byz-e-white);
  font-weight: 800;
}

.e-skip:focus {
  transform: translateY(0);
}

.e-benefit {
  height: var(--byz-e-bar-h);
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  background: var(--byz-e-ink);
  color: var(--byz-e-white);
  font-size: 10px;
  font-weight: 700;
}

.e-benefit span:nth-child(2) {
  justify-self: center;
}

.e-benefit > span:last-child {
  justify-self: end;
}

.e-header {
  position: relative;
  z-index: 40;
  background: var(--byz-e-white);
}

.e-header-top {
  height: var(--byz-e-head-h);
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--byz-e-line);
}

.e-primary-nav,
.e-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.e-primary-nav a {
  min-width: 44px;
  min-height: 44px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.e-primary-nav a:hover {
  color: var(--byz-e-red);
}

.e-brand {
  justify-self: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.e-brand img {
  width: 154px;
}

.e-actions {
  justify-content: flex-end;
  gap: 2px;
}

.e-icon-button,
.e-dialog-head button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.e-icon-button:hover,
.e-dialog-head button:hover {
  background: var(--byz-e-line);
}

.e-icon-button svg,
.e-dialog-head svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.6;
}

.e-mobile-only {
  display: none;
}

.e-category-nav {
  height: var(--byz-e-cate-h);
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--byz-e-line);
  scrollbar-width: none;
}

.e-category-nav::-webkit-scrollbar {
  display: none;
}

.e-category-nav button {
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.e-category-nav button:hover,
.e-category-nav button[aria-pressed="true"] {
  color: var(--byz-e-red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.e-hero {
  position: relative;
  height: var(--byz-e-hero-h);
  overflow: hidden;
  background: var(--byz-e-soft);
}

.e-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.e-hero-copy {
  position: absolute;
  right: max(50px, calc((100vw - var(--byz-e-max)) / 2));
  top: 50%;
  z-index: 2;
  width: min(470px, 38vw);
  transform: translateY(-50%);
}

.e-hero-copy > p,
.e-section-head p,
.e-story-copy > p:first-child,
.e-guide header p {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.e-hero h1 {
  margin: 0;
  font-family: "Brygada 1918", Georgia, serif;
  font-size: 72px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
}

.e-hero-copy > strong {
  margin-top: 16px;
  display: block;
  font-family: "Brygada 1918", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
}

.e-hero-copy > a,
.e-story-copy > a,
.e-quick-view > a {
  min-height: 48px;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid var(--byz-e-ink);
  font-size: 11px;
  font-weight: 750;
}

.e-hero-copy > a svg,
.e-story-copy > a svg {
  width: 16px;
  height: 16px;
}

.e-ai-stamp {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  background: var(--byz-e-white);
  font-size: 9px;
  font-weight: 800;
}

.e-index-strip {
  min-height: 78px;
  padding: 0 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--byz-e-line);
}

.e-index-strip button {
  min-height: 78px;
  border: 0;
  border-right: 1px solid var(--byz-e-line);
  background: var(--byz-e-white);
  font-family: "Brygada 1918", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.e-index-strip button:first-child {
  border-left: 1px solid var(--byz-e-line);
}

.e-index-strip button:hover {
  background: var(--byz-e-red);
}

.e-shop {
  width: min(var(--byz-e-max), calc(100% - 100px));
  margin: 0 auto;
  padding: 94px 0 116px;
}

.e-section-head {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.e-section-head h2,
.e-story h2,
.e-guide h2 {
  margin: 0;
  font-family: "Brygada 1918", Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}

.e-shop-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.e-shop-tools p {
  margin: 0;
  color: var(--byz-e-muted);
}

.e-shop-tools button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--byz-e-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--byz-e-white);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.e-shop-tools button:hover {
  background: var(--byz-e-ink);
  color: var(--byz-e-white);
}

.e-shop-tools svg {
  width: 16px;
  height: 16px;
}

.e-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 54px 18px;
}

.e-product-card {
  min-width: 0;
  display: block;
}

.e-product-card[hidden] {
  display: none;
}

.e-product-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--byz-e-soft);
}

.e-product-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.e-product-card:hover figure img {
  opacity: 0.88;
}

.e-product-card figure span {
  position: absolute;
  top: 8px;
  left: 8px;
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  background: var(--byz-e-white);
  font-size: 9px;
  font-weight: 800;
}

.e-product-card > div {
  padding: 14px 0 0;
  border-top: 1px solid transparent;
}

.e-product-card:hover > div {
  border-top-color: var(--byz-e-ink);
}

.e-product-card small {
  color: var(--byz-e-red);
  font-size: 10px;
  font-weight: 700;
}

.e-product-card h3 {
  margin: 6px 0 4px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.e-product-card p,
.e-product-card strong {
  margin: 0;
  color: var(--byz-e-muted);
  font-size: 12px;
  font-weight: 400;
}

.e-product-card strong {
  margin-top: 6px;
  display: block;
  color: var(--byz-e-ink);
  font-weight: 650;
}

.e-story {
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--byz-e-red);
}

.e-story-copy {
  padding: 90px max(50px, calc((100vw - var(--byz-e-max)) / 2));
  padding-right: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.e-story h2 {
  font-size: 58px;
}

.e-story-copy > p:last-of-type {
  max-width: 470px;
  margin: 28px 0 0;
  font-size: 15px;
}

.e-story-images {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.e-story-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e-guide {
  width: min(var(--byz-e-max), calc(100% - 100px));
  margin: 0 auto;
  padding: 104px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 80px;
}

.e-guide-table {
  border-top: 2px solid var(--byz-e-ink);
}

.e-guide-table [role="row"] {
  min-height: 82px;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.4fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--byz-e-line);
}

.e-guide-table strong {
  font-size: 14px;
}

.e-guide-table span {
  color: var(--byz-e-red);
  font-weight: 700;
}

.e-guide-table small {
  color: var(--byz-e-muted);
}

.e-footer {
  padding: 72px max(50px, calc((100vw - var(--byz-e-max)) / 2));
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 58px;
  background: var(--byz-e-ink);
  color: var(--byz-e-white);
}

.e-footer-brand img {
  width: 160px;
}

.e-footer h2 {
  margin: 0 0 14px;
  font-size: 11px;
}

.e-footer p,
.e-footer a {
  margin: 0 0 8px;
  display: block;
  color: var(--byz-e-line);
  font-size: 12px;
  line-height: 1.7;
}

.e-footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.e-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0 26px 28px;
  border: 1px solid var(--byz-e-ink);
  border-radius: 0;
  background: var(--byz-e-white);
  color: var(--byz-e-ink);
}

.e-dialog::backdrop {
  background: var(--byz-e-dialog-backdrop);
}

.e-dialog-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--byz-e-line);
}

.e-dialog-head h2 {
  margin: 0;
  font-family: "Brygada 1918", Georgia, serif;
  font-size: 22px;
}

.e-dialog nav {
  padding-top: 18px;
}

.e-dialog nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--byz-e-line);
  font-weight: 700;
}

.e-dialog label {
  margin: 22px 0 8px;
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.e-dialog input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--byz-e-ink);
  border-radius: 0;
}

.e-filter-list {
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.e-filter-list button {
  min-height: 48px;
  border: 1px solid var(--byz-e-line);
  background: var(--byz-e-white);
  cursor: pointer;
}

.e-filter-list button:hover {
  border-color: var(--byz-e-ink);
  background: var(--byz-e-red);
}

.e-quick-view > img {
  width: 100%;
  max-height: 430px;
  margin-top: 20px;
  object-fit: cover;
  background: var(--byz-e-soft);
}

.e-quick-view > a {
  padding: 0 18px;
  border: 1px solid var(--byz-e-ink);
}

@media (max-width: 1120px) {
  .e-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .e-story {
    grid-template-columns: 1fr;
  }

  .e-story-copy {
    min-height: 430px;
    padding-right: 50px;
  }

  .e-story-images {
    min-height: 620px;
  }

  .e-guide {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .e-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --byz-e-bar-h: 32px;
    --byz-e-head-h: 64px;
    --byz-e-cate-h: 48px;
    --byz-e-hero-h: 560px;
  }

  .e-benefit {
    padding: 0 12px;
    grid-template-columns: 1fr auto;
    font-size: 9px;
  }

  .e-benefit span:nth-child(2) {
    display: none;
  }

  .e-benefit > span:last-child {
    justify-self: end;
  }

  .e-header-top {
    padding: 0 10px;
    grid-template-columns: 88px 1fr 88px;
    gap: 0;
  }

  .e-mobile-only {
    display: inline-grid;
  }

  .e-primary-nav {
    display: none;
  }

  .e-brand img {
    width: 126px;
  }

  .e-actions {
    gap: 0;
  }

  .e-category-nav {
    padding: 0 10px;
    justify-content: flex-start;
    gap: 2px;
  }

  .e-hero > img {
    object-position: 34% center;
  }

  .e-hero-copy {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 18px 16px 20px;
    transform: none;
    background: var(--byz-e-white);
  }

  .e-hero h1 {
    font-size: 48px;
  }

  .e-hero-copy > strong {
    margin-top: 8px;
    font-size: 22px;
  }

  .e-hero-copy > a {
    margin-top: 12px;
  }

  .e-ai-stamp {
    top: 8px;
    bottom: auto;
  }

  .e-index-strip {
    min-height: 60px;
    padding: 0;
  }

  .e-index-strip button {
    min-width: 0;
    min-height: 60px;
    font-size: 14px;
  }

  .e-shop {
    width: 100%;
    padding: 72px 16px 90px;
  }

  .e-section-head {
    display: block;
  }

  .e-section-head h2,
  .e-guide h2 {
    font-size: 32px;
  }

  .e-shop-tools {
    margin-top: 20px;
    justify-content: space-between;
  }

  .e-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 10px;
  }

  .e-product-card h3 {
    font-size: 13px;
  }

  .e-product-card p,
  .e-product-card strong {
    font-size: 11px;
  }

  .e-story-copy {
    min-height: 460px;
    padding: 72px 16px;
  }

  .e-story h2 {
    font-size: 42px;
  }

  .e-story-images {
    min-height: 520px;
  }

  .e-guide {
    width: 100%;
    padding: 72px 16px;
  }

  .e-guide-table [role="row"] {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .e-guide-table small {
    grid-column: 1 / 3;
  }

  .e-footer {
    padding: 60px 16px;
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
