
.custom-page {
  color: var(--ink);
  padding-bottom: clamp(50px, 7vw, 106px);
}

.custom-page :where(h1, h2, h3, p, figure) { margin: 0; }
.custom-page :where(h1, h2, h3) {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -.035em;
}

html[lang="ko"] .custom-page :where(h1, h2, h3) { font-family: 'WayB Gowun', var(--serif); }
.custom-page h1 { font-size: clamp(43px, 5.25vw, 90px); }
.custom-page h2 { font-size: clamp(30px, 3.55vw, 52px); }
.custom-page h3 { font-size: clamp(20px, 1.85vw, 25px); }
.custom-page :where(p, li) { line-height: 1.82; }
.custom-page a:focus-visible,
.custom-page summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.custom-hero {
  background: radial-gradient(ellipse at 76% 43%, #faf7f1, #f4eee5 49%, var(--sand) 92%);
}

.custom-opening {
  min-height: clamp(450px, 43vw, 620px);
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.24fr);
  grid-template-rows: auto 1.22fr auto .78fr;
  grid-template-areas:
    "crumb artwork"
    "lead artwork"
    "actions artwork"
    ". artwork";
  column-gap: clamp(19px, 3.5vw, 58px);
  padding-block: clamp(21px, 3.2vw, 46px);
}

.custom-crumb {
  grid-area: crumb;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.custom-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.custom-hero-lead { grid-area: lead; align-self: end; }
.custom-hero-lead p {
  margin-top: 18px;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
}

.custom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 24px;
}
.custom-hero-actions { grid-area: actions; align-self: start; }

.custom-page :where(.button, .editorial-link) { min-height: 44px; }
.custom-page .button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.custom-page .arrow { flex: none; }
.custom-page .wayb-ui-icon { width: 13px; height: 13px; }

.custom-diagram {
  grid-area: artwork;
  align-self: center;
  justify-self: center;
  width: min(100%, 790px);
}
.custom-diagram-scene {
  position: relative;
  aspect-ratio: 3 / 2;
  isolation: isolate;
}
.custom-diagram-portrait {
  position: absolute;
  display: block;
  inset: 0 auto auto -1%;
  width: 52%;
  height: auto;
}
.custom-diagram-beam {
  position: absolute;
  inset: 11% 26% 13% 26%;
  clip-path: polygon(0 47%, 100% 0, 100% 100%, 0 55%);
  background: linear-gradient(90deg, #faf5ea12, #faf5ea24 32%, #eadbc6a6 72%, #d4c3ac70);
}
.custom-diagram-source {
  position: absolute;
  z-index: 2;
  left: 24.75%;
  top: 49%;
  width: 8.5%;
  aspect-ratio: 1;
  border: 1px solid #faf7f0;
  box-shadow: 0 0 0 1px #776651a8, inset 0 0 0 2px #faf7f05e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.custom-diagram-lens {
  position: absolute;
  z-index: 1;
  left: 47%;
  top: 9%;
  width: 51%;
  aspect-ratio: 1;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #b6a995;
  outline: 1px solid #fdfbf7;
  outline-offset: 4px;
  background: radial-gradient(circle at 30% 18%, #fffcf6, #eee4d6 90%);
}
.custom-diagram-lens img {
  position: absolute;
  top: 3%;
  left: -11%;
  width: 122%;
  max-width: none;
  height: auto;
  filter: saturate(.68) contrast(.96);
}
.custom-diagram figcaption {
  max-width: 65ch;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}
.custom-diagram-pins { margin: 0; padding: 0; list-style: none; }
.custom-diagram-pins li {
  position: absolute;
  top: var(--layer-y);
  left: 6%;
  width: 13%;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}
.custom-diagram-pins li::after { content: ''; flex: 1; border-top: 1px solid var(--olive); }
.custom-layer-number {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
}
.custom-diagram-pins .custom-layer-number {
  width: clamp(11px, 7cqi, 24px);
  height: clamp(11px, 7cqi, 24px);
  font-size: clamp(8px, 3.7cqi, 12px);
}

.custom-section { margin-top: clamp(38px, 5.8vw, 88px); }
.custom-section > p,
.custom-layer-spread > header > p { color: var(--muted); margin-top: 12px; max-width: 62ch; }

.custom-layer-spread {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: start;
  scroll-margin-block-start: 100px;
}
.custom-layer-spread > header { max-width: 35ch; }
.custom-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(15px, 3vw, 40px);
}
.custom-layer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  padding-block: 16px 20px;
  border-top: 1px solid var(--line);
  scroll-margin-block-start: 100px;
}
.custom-layer > .custom-layer-number { margin-top: 3px; }
.custom-layer p { margin-top: 5px; color: var(--muted); }

.custom-feature {
  margin-top: clamp(36px, 6vw, 92px);
  background: var(--ink);
  color: var(--paper);
}
.custom-steps {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "image intro" "image sequence";
  gap: 12px clamp(34px, 7vw, 104px);
  padding-block: clamp(36px, 6vw, 86px);
}
.custom-steps header { grid-area: intro; }
.custom-steps figure {
  grid-area: image;
  display: grid;
  place-items: center;
  min-height: 230px;
  margin: 0;
  background: radial-gradient(ellipse at center, #5a5146, transparent 73%);
}
.custom-steps img { width: min(92%, 342px); height: auto; max-height: 274px; object-fit: contain; }
.custom-steps-sequence { grid-area: sequence; }
.custom-steps ol {
  padding-inline-start: 22px;
  margin: 0 0 14px;
  color: #ded8ce;
}
.custom-steps li { border-bottom: 1px solid #f8f5ef38; padding: 9px 0; }
.custom-steps li::marker { color: var(--paper); }
.custom-feature .editorial-link { color: var(--paper); }

.custom-context,
.custom-reading {
  display: grid;
  gap: clamp(22px, 5vw, 80px);
}
.custom-context { grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); align-items: start; }
.custom-context h2,
.custom-reading h2 { font-size: clamp(27px, 3vw, 42px); }
.custom-reading { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }

.custom-context .custom-section,
.custom-reading .custom-section { min-width: 0; }
.custom-thickness { border-top: 1px solid var(--line); padding-top: 19px; scroll-margin-top: 100px; }
#comfort.custom-thickness { background: var(--sand); border: 0; padding: clamp(20px, 3.5vw, 44px); }
.custom-thickness .editorial-link { margin-top: 9px; }
.custom-related ul,
.custom-faq { margin: 18px 0 10px; padding: 0; }
.custom-related ul { list-style: none; }
.custom-related li,
.custom-faq-row { border-top: 1px solid var(--line); }

.custom-related li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
}
.custom-related li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.custom-faq-row summary { min-height: 44px; padding: 12px 20px 12px 0; cursor: pointer; }
.custom-faq-row p { padding-bottom: 14px; color: var(--muted); }
.custom-footer { margin-top: clamp(30px, 5vw, 62px); padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .custom-layer-spread { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .custom-layer-spread > header { max-width: 50ch; }
}

@media (max-width: 720px) {
  .custom-opening {
    min-height: unset;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "crumb" "lead" "artwork" "actions";
    gap: 14px;
    padding-bottom: 26px;
  }
  .custom-page h1 { font-size: clamp(36px, 9.4vw, 55px); }
  .custom-hero-lead p { margin-top: 10px; }
  .custom-diagram { width: calc(100% + 12px); }
  .custom-diagram figcaption { font-size: 12px; }
  .custom-hero-actions { margin-top: 4px; }
  .custom-layer-spread { gap: 17px; scroll-margin-block-start: 77px; }
  .custom-layer-grid,
  .custom-context,
  .custom-reading { grid-template-columns: minmax(0, 1fr); }
  .custom-layer { padding-block: 13px; }
  .custom-context, .custom-reading { gap: 0; }
  .custom-steps {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "intro" "image" "sequence";
  }
  .custom-steps figure { min-height: 150px; }
  .custom-steps img { max-height: 174px; }
}
