/* Hallmark · shape: split study preview · genre: editorial · theme: custom · job: try · idea: "Choose a level and study Japanese in rounds" · vibe: "quiet warm paper and winter blue"
 * paper: #f5edde · accent: #a13d30 · display: system Korean · body: system Korean · hero: two columns · nav: wordmark and links · footer: single line · imagery: existing product art · signature: Japanese sample card against pixel Fuji
 * axes: light/grotesk-heavy/warm · posture: split · v2.0.0 */
/* Hallmark · pre-emit critique: keep the visual study aid subordinate to the first action and use native details for the sample. */
/* Hallmark · waive 77 · user requested "심플한 웹" · The sample card and level selector cover the complete entry flow. */
:root {
  --paper: #f5edde;
  --paper-light: #fffcf5;
  --ink: #292523;
  --muted: #61564e;
  --accent: #a13d30;
  --accent-active: #782c23;
  --border: #d4c6b5;
  --blue: #284c75;
  --sky: #8ec2f4;
  --caption: #fffdf8;
  --shadow: #1a31554d;
  --sans: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --japanese: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --measure: 67.5rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 0.75rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-padding-block-start: 1.25rem; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  word-break: keep-all;
}
h1, h2, p, figure, ul { margin: 0; }
h1, h2 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap {
  inline-size: min(calc(100% - var(--gutter) * 2), var(--measure));
  margin-inline: auto;
}

.site-header { border-block-end: 1px solid var(--border); }
.nav, .footer-content { display: flex; align-items: center; justify-content: space-between; }
.nav { gap: 1rem; min-block-size: 4.25rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  text-decoration: none;
}
.brand img { border-radius: 0.38rem; }
.nav-links { display: flex; align-items: center; gap: clamp(0.65rem, 3vw, 1.65rem); }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-links a:hover, .site-footer a:hover { color: var(--accent); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(1.75rem, 3vw, 2.625rem);
}
.hero h1 {
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.07em;
}
.hero-copy p { margin-block: 1.25rem 1.65rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.primary {
  display: inline-flex;
  min-block-size: 3rem;
  align-items: center;
  justify-content: center;
  padding-inline: 1.35rem;
  border-radius: 0.42rem;
  background: var(--accent);
  color: var(--paper-light);
  text-decoration: none;
  font-weight: 700;
}
.primary:hover, .primary:active { background: var(--accent-active); }

.preview {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  justify-items: end;
  align-items: end;
  gap: 1.25rem;
  min-block-size: clamp(21rem, 38vw, 29rem);
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius);
  overflow: clip;
  background: var(--sky);
}
.preview-landscape {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  image-rendering: pixelated;
}
.preview figcaption {
  justify-self: start;
  align-self: start;
  padding: 0.34rem 0.65rem;
  border-radius: 0.32rem;
  background: var(--blue);
  color: var(--caption);
  font-size: 0.82rem;
}
.preview-card {
  display: grid;
  inline-size: min(100%, 16rem);
  min-block-size: 12rem;
  align-content: center;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  border-radius: calc(var(--radius) / 2);
  background: var(--paper-light);
  box-shadow: 0 0.6rem 1.75rem var(--shadow);
}
.preview-level { font-size: 0.84rem; color: var(--muted); }
.preview-word {
  font-family: var(--japanese);
  font-size: clamp(2.65rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1.08;
}
.preview-card summary {
  padding-block: 0.45rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.preview-answer { font-size: 0.92rem; }
.preview-answer span { margin-inline-end: 0.4rem; font-weight: 700; }

.levels {
  background: var(--paper-light);
  border-block: 1px solid var(--border);
  padding-block: clamp(2rem, 3vw, 2.5rem) clamp(2rem, 3.5vw, 3.25rem);
}
.section-heading h2 {
  font-size: clamp(1.6rem, 3.7vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}
.section-heading p { margin-block: 0.25rem 1.5rem; color: var(--muted); }
.level-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.level-list li + li { border-inline-start: 1px solid var(--border); }
.level-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 0.45rem;
  min-block-size: 4.5rem;
  padding: 0.8rem clamp(0.75rem, 2vw, 1.3rem);
  text-decoration: none;
}
.level-list a:hover, .level-list a:focus-visible { background: var(--paper); color: var(--accent); }
.level-list strong { font-size: 1.6rem; line-height: 1.25; }
.level-list span { color: var(--muted); font-size: 0.88rem; }
.footer-content { gap: 0.5rem 1rem; flex-wrap: wrap; padding-block: 1.25rem; color: var(--muted); font-size: 0.88rem; }
.site-footer a { text-underline-offset: 0.2em; }

@media (max-width: 42rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4rem); }
  .wide-only { display: none; }
  .preview { min-block-size: 19rem; }
  .preview-card { inline-size: min(100%, 13.4rem); min-block-size: 10.75rem; }
  .level-list { grid-template-columns: minmax(0, 1fr); }
  .level-list li + li { border-inline-start: 0; border-block-start: 1px solid var(--border); }
  .level-list a { align-items: center; min-block-size: 3.5rem; }
}

@media (max-width: 24rem) {
  .nav { flex-wrap: wrap; gap: 0; padding-block: 0.5rem; }
  .nav-links { gap: 0.8rem; }
}
