/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4
 * macrostructure: Workbench · existing Koala system · pink · N1b navigation · Ft5 statement
 * Real app captures, original sample lesson, roman Montserrat, no simulated chrome.
 */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --font-body: "Montserrat", Arial, sans-serif;
  --font-korean:
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif;
  --color-paper: #fffdfb;
  --color-white: #ffffff;
  --color-blush: #fff0f6;
  --color-pink: #ffdeeb;
  --color-pink-strong: #fcc2d7;
  --color-accent: #c2255c;
  --color-accent-ink: #ffffff;
  --color-accent-dark: #a61e4d;
  --color-ink: #34252d;
  --color-muted: #6a5b62;
  --color-rule: #e4d6dc;
  --color-dark: #3e2031;
  --color-dark-muted: #e0cbd5;
  --color-dark-rule: #765969;
  --color-mat: #f5e6ec;
  --color-shadow: #4a1c3014;
  --page-gutter: clamp(24px, 5vw, 88px);
  --page-width: 1320px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --space-section: clamp(80px, 8vw, 128px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font: 400 16px/1.7 var(--font-body);
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 5px;
  border-radius: 3px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-style: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 0;
}
h1 {
  font-size: clamp(38px, 4.25vw, 66px);
  line-height: 1.13;
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(34px, 3.7vw, 53px);
  line-height: 1.16;
  letter-spacing: -0.055em;
}
h3 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
::selection {
  color: var(--color-ink);
  background: var(--color-pink-strong);
}
.wrap {
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.text-link-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.link-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--ease-out);
}
.text-link:hover .link-arrow,
.text-link:focus-visible .link-arrow {
  transform: translate(3px, -2px);
}
.text-link[href^="#"]:hover .link-arrow,
.text-link[href^="#"]:focus-visible .link-arrow {
  transform: translateY(3px);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 56px;
  padding: 14px 24px;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}
.button:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(1px);
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--color-white);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-blush);
  border-bottom: 1px solid var(--color-rule);
}
.nav-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 27px;
  letter-spacing: -1.5px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-light {
  font-weight: 400;
}
.brand-mascot {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: left center;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.desktop-nav a:hover {
  color: var(--color-accent);
}
.nav-cta {
  display: inline-flex;
  flex-shrink: 0;
  gap: 24px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--color-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.hero {
  position: relative;
  background: var(--color-blush);
  padding: 58px 0 0;
}
.hero-inner {
  min-height: 585px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-bottom: 60px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  animation: enter 500ms var(--ease-out) both;
}
.hero-copy h1 span {
  color: var(--color-accent);
}
.hero-description {
  max-width: 410px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.hero-art {
  position: relative;
  min-width: 0;
  padding-top: 8px;
  animation: enter 500ms 100ms var(--ease-out) both;
}
.phrase-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
}
.phrase-korean {
  color: var(--color-accent);
  font: 600 clamp(36px, 3.6vw, 58px)/1.25 var(--font-korean);
  letter-spacing: -0.06em;
}
.phrase-translation {
  margin-top: 8px;
  font-size: 11px;
  color: var(--color-muted);
}
.hero-screen {
  width: 108%;
  position: relative;
  transform: rotate(-2deg);
}
.hero-screen img {
  width: 100%;
  border: 1px solid var(--color-rule);
  border-radius: 9px;
  box-shadow: 0 20px 50px var(--color-shadow);
}
.hero-arrow {
  position: absolute;
  width: 80px;
  height: 88px;
  top: 70px;
  right: -36px;
  color: var(--color-accent);
  transform: rotate(-8deg);
}
.hero-arrow path {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connection {
  padding-block: var(--space-section);
  text-align: center;
}
.journey-art {
  width: 100%;
  margin-top: 44px;
  color: var(--color-accent);
}
.art-paper,
.art-tint {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  fill: var(--color-paper);
}
.art-tint,
.art-highlight {
  fill: var(--color-pink);
}
.art-line,
.art-arrow {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-arrow {
  stroke-dasharray: 3 5;
}
.art-word {
  fill: var(--color-ink);
  font: 500 24px var(--font-korean);
  letter-spacing: -0.04em;
}
.art-sentence {
  font-size: 22px;
}
.word-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.word-journey li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 32px;
  border-left: 1px solid var(--color-rule);
}
.word-journey li:first-child {
  border: 0;
  padding-left: 0;
}
.word-journey li:last-child {
  padding-right: 0;
}
.journey-number {
  color: var(--color-accent);
  font-size: 12px;
  margin-bottom: 14px;
  font-weight: 600;
}
.word-journey strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.reading-section {
  padding-block: var(--space-section);
  background: var(--color-white);
}
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: 100px;
  align-items: end;
  margin-bottom: 48px;
}
.section-description p {
  color: var(--color-muted);
  font-size: 14px;
  max-width: 440px;
}
.section-description .text-link {
  margin-top: 18px;
}
.image-mat {
  padding: 32px;
  background: var(--color-mat);
  border-radius: 12px;
}
.image-mat img {
  width: 100%;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
}
figcaption {
  font-size: 11px;
  line-height: 1.6;
}
.reader-figure figcaption {
  margin-top: 16px;
  color: var(--color-muted);
  text-align: right;
}

.remember-section {
  padding-block: var(--space-section);
  color: var(--color-paper);
  background: var(--color-dark);
}
.remember-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 100px;
}
.remember-copy {
  position: sticky;
  top: 150px;
  align-self: start;
  padding-block: 48px;
}
.remember-copy > p {
  max-width: 410px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--color-dark-muted);
}
.remember-copy .text-link {
  margin-top: 26px;
}
.remember-copy a:focus-visible {
  outline-color: var(--color-pink-strong);
}
.review-figure {
  padding: 12px 0;
  transform: rotate(2deg);
}
.review-figure img {
  border-radius: 12px;
  width: 100%;
  border: 1px solid var(--color-dark-rule);
}

.practice-section {
  padding-block: var(--space-section);
}
.practice-intro {
  max-width: 650px;
}
.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 80px;
  align-items: center;
  margin-top: 48px;
}
.writing-mat {
  background: var(--color-pink);
  padding: 28px;
  border-radius: 12px;
}
.writing-mat img {
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  width: 100%;
}
.practice-details {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.feature-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}
.practice-details p {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 14px;
  max-width: 340px;
}
.practice-details article + article {
  border-top: 1px solid var(--color-rule);
  padding-top: 28px;
}
.practice-details .text-link {
  align-self: flex-start;
}

.questions-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 100px;
  padding-block: 40px var(--space-section);
}
.questions-list {
  border-top: 1px solid var(--color-rule);
}
details {
  border-bottom: 1px solid var(--color-rule);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-block: 18px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
summary::-webkit-details-marker {
  display: none;
}
.question-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  transition: transform 180ms var(--ease-out);
}
details[open] .question-icon {
  transform: rotate(45deg);
}
details p {
  padding: 0 42px 24px 0;
  font-size: 13px;
  color: var(--color-muted);
}

.closing {
  padding-block: 90px;
  background: var(--color-pink);
  position: relative;
}
.closing-inner {
  position: relative;
  text-align: center;
}
.closing h2 {
  font-size: clamp(56px, 7.5vw, 112px);
  letter-spacing: -0.065em;
}
.closing .button {
  margin-top: 30px;
}
.closing-mark {
  position: absolute;
  left: 0;
  top: 30px;
  width: 142px;
  height: 142px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-accent);
  transform: rotate(-15deg);
}
.closing-mark span:first-child {
  font: 600 22px/1.5 var(--font-korean);
}
.closing-mark span:last-child {
  font-size: 8px;
  letter-spacing: 0.02em;
}
.site-footer {
  min-height: 134px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.footer-brand {
  font-size: 24px;
}
.site-footer > a:not(.brand) {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.copyright {
  font-size: 9px;
  color: var(--color-muted);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1600px) {
  .hero-inner {
    min-height: 660px;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 20px;
  }
  .brand {
    font-size: 24px;
  }
  .hero-inner {
    gap: 24px;
    min-height: 550px;
  }
  .hero-arrow {
    right: -24px;
    width: 64px;
  }
  .section-intro,
  .remember-inner,
  .questions-section {
    gap: 56px;
  }
  .practice-layout {
    gap: 44px;
  }
  .closing-mark {
    width: 110px;
    height: 110px;
    left: -12px;
  }
  .closing-mark span:first-child {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .nav-inner {
    min-height: 76px;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-bottom: 52px;
  }
  .hero-copy {
    max-width: 650px;
  }
  .hero-copy h1 {
    font-size: clamp(44px, 7.5vw, 64px);
  }
  .hero-description {
    max-width: 510px;
  }
  .hero-art {
    max-width: 620px;
    width: 100%;
    justify-self: center;
    padding-top: 0;
  }
  .hero-screen {
    width: 100%;
    margin-left: 0;
    transform: rotate(-2deg);
  }
  .phrase-heading {
    align-items: flex-start;
    padding-bottom: 18px;
    padding-left: 12px;
  }
  .phrase-korean {
    font-size: 32px;
  }
  .phrase-translation {
    font-size: 10px;
    margin-top: 4px;
  }
  .hero-arrow {
    top: -5px;
    right: 10%;
    transform: rotate(25deg);
    width: 56px;
    height: 70px;
  }
  .section-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .section-description p {
    max-width: 570px;
  }
  .remember-inner {
    gap: 36px;
  }
  .remember-copy {
    position: static;
    padding-block: 0;
  }
  .practice-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .practice-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .practice-details article + article {
    border: 0;
    padding: 0;
  }
  .questions-section {
    gap: 36px;
  }
  .closing-mark {
    display: none;
  }
  .site-footer {
    gap: 20px;
    padding-block: 32px;
  }
  .copyright {
    width: 100%;
  }
}

@media (max-width: 600px) {
  :root {
    --page-gutter: 24px;
    --space-section: 72px;
  }
  html {
    scroll-padding-top: 84px;
  }
  .nav-inner {
    min-height: 72px;
    gap: 12px;
  }
  .brand {
    gap: 7px;
    font-size: 23px;
  }
  .brand-mascot {
    width: 38px;
    height: 38px;
  }
  .nav-cta {
    gap: 12px;
    font-size: 10px;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-copy h1 {
    font-size: clamp(34px, 8.7vw, 50px);
    line-height: 1.12;
  }
  .hero-description {
    margin-top: 20px;
    font-size: 13px;
    max-width: 350px;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 22px;
  }
  .button {
    font-size: 12px;
    min-height: 50px;
    padding: 12px 18px;
    gap: 24px;
  }
  .text-link {
    font-size: 12px;
    gap: 10px;
  }
  .hero-inner {
    gap: 32px;
    padding-bottom: 30px;
  }
  .hero-art {
    padding-top: 0;
  }
  .phrase-heading {
    display: none;
  }
  .hero-arrow {
    display: none;
  }
  .hero-screen {
    width: 108%;
    margin-left: -4%;
  }
  .connection {
    text-align: left;
  }
  .journey-art {
    margin-top: 28px;
    width: calc(100% + 20px);
    margin-left: -10px;
  }
  .word-journey {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 36px;
    gap: 0;
  }
  .word-journey li,
  .word-journey li:first-child {
    padding: 22px 0 22px 40px;
    border-left: 0;
    border-top: 1px solid var(--color-rule);
  }
  .journey-number {
    position: absolute;
    top: 23px;
    left: 0;
    font-size: 10px;
  }
  .word-journey strong {
    font-size: 14px;
  }
  .section-intro {
    margin-bottom: 30px;
  }
  .section-description p {
    font-size: 13px;
  }
  .image-mat {
    padding: 12px;
    margin-inline: -12px;
    border-radius: 8px;
  }
  .reader-figure figcaption {
    font-size: 9px;
  }
  .remember-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .remember-copy > p {
    font-size: 13px;
    margin-top: 20px;
  }
  .remember-copy .text-link {
    margin-top: 18px;
  }
  .review-figure {
    width: min(100%, 400px);
    justify-self: center;
  }
  .practice-layout {
    margin-top: 32px;
    gap: 36px;
  }
  .writing-mat {
    padding: 14px;
    margin-inline: -12px;
  }
  .practice-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .practice-details article {
    padding-left: 44px;
    position: relative;
  }
  .practice-details article + article {
    padding: 24px 0 0 44px;
    border-top: 1px solid var(--color-rule);
  }
  .feature-icon {
    position: absolute;
    left: 0;
    width: 25px;
    height: 25px;
  }
  .practice-details h3 {
    font-size: 21px;
  }
  .practice-details p {
    margin-top: 10px;
    font-size: 12px;
  }
  .questions-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 0;
  }
  .questions-intro h2 br {
    display: none;
  }
  summary {
    font-size: 12px;
    min-height: 72px;
    gap: 14px;
  }
  details p {
    font-size: 12px;
    padding-right: 24px;
  }
  .closing {
    padding-block: 64px;
  }
  .closing h2 {
    font-size: clamp(48px, 12vw, 70px);
  }
  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 18px;
  }
  .footer-brand {
    font-size: 24px;
  }
  .site-footer > a:not(.brand) {
    grid-column: 2;
    grid-row: 1;
    font-size: 10px;
  }
  .copyright {
    margin-top: 12px;
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  :root {
    --page-gutter: 20px;
  }
  .brand {
    font-size: 21px;
  }
  .hero-actions {
    gap: 16px;
  }
  .hero-actions .button {
    padding-inline: 16px;
    gap: 18px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .hero-copy h1 {
    font-size: 33px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
