@font-face { font-family: Poppins; src: url('media/poppins-extrabold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
:root { color-scheme: light; --paper: #f8f6ef; --ivory: #f1ebdd; --ink: #20221f; --muted: #56544b; --line: #ded8cb; --coral: #f45b69; --deep: #a82b3f; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.07rem/1.65 Arial, Helvetica, sans-serif; }
h1, h2 { margin: 0; font-family: Poppins, Arial, sans-serif; font-weight: 800; letter-spacing: -.042em; line-height: 1.12; }
h1 { max-width: 46rem; font-size: clamp(2.4rem, 6vw, 4.65rem); line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); text-wrap: balance; }
p { margin: .95rem 0 0; }
a { color: var(--deep); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--deep); outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption { margin-top: .8rem; color: var(--muted); font-size: .92rem; }
.shell { max-width: 74rem; margin-inline: auto; width: calc(100% - 3rem); }
.narrow { max-width: 46rem; margin-inline: auto; width: calc(100% - 3rem); }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.header-row { min-height: 65px; flex-wrap: wrap; gap: .55rem; padding-block: .55rem; }
.header-row .wordmark { margin-inline-end: auto; }
.header-row .language-control { margin-inline-start: auto; }
.wordmark { font: 800 2rem/1 Poppins, Arial, sans-serif; letter-spacing: -.095em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--deep); }
.footer-row a { color: var(--ink); font-size: .92rem; font-weight: 700; }
.skip { position: absolute; z-index: 3; left: 1rem; top: -6rem; padding: .5rem; background: white; }
.skip:focus { top: .5rem; }
.intro { padding-block: clamp(2.25rem, 7vw, 5rem) clamp(1.6rem, 4vw, 2.7rem); }
.intro p { max-width: 41rem; font-size: clamp(1.12rem, 2vw, 1.33rem); line-height: 1.52; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.35rem); }
.example { border-radius: 1.15rem; background: var(--ivory); padding: clamp(.75rem, 2vw, 1.45rem); border: 1px solid var(--line); }
.matched { border-color: var(--deep); background: #fae9e7; }
.example h2 { font-size: clamp(1.18rem, 2vw, 1.57rem); margin: 0 0 .9rem; text-wrap: pretty; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.28rem, 1.15vw, .8rem); }
.step-card { background: #fffdf9; border-radius: .65rem; border: 1px solid var(--line); padding: .55rem .32rem .62rem; text-align: center; }
.step-card strong { display: block; font-size: clamp(.71rem, 1.25vw, .95rem); line-height: 1.22; text-wrap: balance; }
.icon-stage { position: relative; height: clamp(3.65rem, 8vw, 6.7rem); margin-bottom: .6rem; }
.icon-stage img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: auto; height: 85%; max-width: 92%; object-fit: contain; object-position: center bottom; }
.matched .step-card:first-child img { height: 72%; }
.matched .step-card:nth-child(2) img { height: 87%; }
.matched .step-card:nth-child(3) img { height: 80%; }
.mixed .step-card:first-child img { height: 91%; }
.mixed .step-card:nth-child(2) img { bottom: 22%; height: 53%; }
.mixed .step-card:nth-child(3) img { bottom: auto; top: 0; height: 98%; }
.reading { padding-top: clamp(2rem, 5vw, 3.8rem); }
.contents { border: 1px solid var(--line); background: var(--ivory); border-radius: .85rem; padding: 1rem 1.35rem; margin-bottom: 2.8rem; }
.contents ul { margin: .35rem 0 0; padding-left: 1.25rem; }
.reading section { margin-bottom: 2.8rem; scroll-margin-top: 1rem; }
.reading ol { padding-left: 1.4rem; margin: .9rem 0 0; }
.reading li + li { margin-top: .55rem; }
.angles { margin: 1.45rem 0; }
.angle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.4rem, 2vw, .95rem); }
.angle-grid > div > span { display: block; font-size: clamp(.74rem, 1.55vw, .92rem); line-height: 1.25; margin-top: .45rem; }
.zoom { cursor: zoom-in; display: grid; place-items: center; position: relative; width: 100%; aspect-ratio: 1; background: var(--ivory); border: 1px solid var(--line); border-radius: .8rem; padding: 13%; }
.zoom img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.zoom-mark { position: absolute; right: .3rem; top: .3rem; color: var(--ink); font-size: .92rem; background: var(--paper); border: 1px solid var(--line); border-radius: .35rem; width: 1.45rem; height: 1.45rem; line-height: 1.32rem; }
.swap-demo { margin-block: 1.45rem; padding: clamp(.85rem, 3vw, 1.4rem); background: var(--ivory); border: 1px solid var(--line); border-radius: .9rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, .75fr); align-items: center; gap: .85rem 1.3rem; }
.swap-title { margin: 0 0 .45rem; font-weight: 700; }
.swap-controls label { display: block; font-size: .9rem; font-weight: 700; margin: .55rem 0 .15rem; }
.swap-controls :is(select,input) { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #827d70; border-radius: .5rem; padding: .3rem .55rem; background: #fffdf9; color: var(--ink); font: inherit; }
.swap-controls :is(select,input):focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.swap-card { display: grid; justify-items: center; align-content: start; gap: 12px; min-height: 10rem; padding: 16px; background: #fffdf9; border: 1px solid var(--line); border-radius: .65rem; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.swap-slot { position: relative; width: 96px; height: 96px; }
.swap-slot img { position: absolute; inset: auto 11% 0; width: 78%; height: 82%; object-fit: contain; object-position: center bottom; }
.swap-demo figcaption { grid-column: 1 / -1; margin: 0; }
.reading .action { border: 1px solid var(--line); background: var(--ivory); border-radius: 1rem; padding: clamp(1.15rem, 3.4vw, 2rem); margin: 2rem 0 4rem; }
.action h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.action-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.button { display: inline-flex; padding: .6rem .9rem; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--coral); border-radius: 6px; background: var(--coral); color: var(--ink); font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; }
.button:hover { background: #fa7280; border-color: #fa7280; }
.button-compact { background: var(--ink); border-color: var(--ink); color: #f8f8f2; font-size: .92rem; }
.button-compact:hover { background: var(--muted); border-color: var(--muted); }
.button-secondary { background: transparent; border-color: var(--ink); }
.button-secondary:hover { background: var(--paper); border-color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { min-height: 72px; }
.viewer { max-width: min(90vw, 640px); width: 100%; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; background: var(--paper); color: var(--ink); }
.viewer::backdrop { background: #20221fc4; }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.viewer-header p { margin: 0; font-weight: 700; }
.viewer img { width: 100%; max-height: 67vh; margin-top: .8rem; object-fit: contain; }
.close { border: 1px solid var(--deep); background: white; color: var(--ink); font: inherit; border-radius: .45rem; padding: .3rem .6rem; min-height: 44px; cursor: pointer; }
.step-card strong, .button, .viewer-header p { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .example { max-width: 34rem; width: 100%; margin-inline: auto; }
  .icon-stage { height: clamp(3.65rem, 16vw, 6rem); }
}
@media (max-width: 430px) {
  .shell, .narrow { width: calc(100% - 2rem); }
  h1 { font-size: clamp(2rem, 8.6vw, 2.65rem); }
  .step-card { padding-inline: .24rem; }
  .icon-stage { margin-bottom: .42rem; }
  .swap-demo { grid-template-columns: minmax(0, 1fr); }
  .action-buttons { flex-direction: column; }
}
