:root{
  --washi:#F7F3EC; --washi-deep:#EFE7D8; --sumi:#1A1E1C; --sumi-soft:#3A403D;
  --shu:#EB471F; --ai:#2A4B7C; --kin:#C9A227; --hairline:#E2DACA; --card:#FFFDF8;
  --radius-card:16px; --radius-pill:999px;
  --sans:"Zen Kaku Gothic New","Noto Sans JP",system-ui,sans-serif;
  --serif:"Shippori Mincho","Noto Serif JP",serif;
}
@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/shippori-mincho-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/shippori-mincho-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/zen-kaku-gothic-new-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/zen-kaku-gothic-new-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/zen-kaku-gothic-new-700.woff2') format('woff2');
}
/* Miyu marketing site — washi / sumi / shu-iro.
   The `:root` token block and any `@font-face` rules are prepended by
   scripts/build-landing.mjs from packages/design/src/index.ts and the font files
   present in landing-src/assets/fonts. Do not redefine them here. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

p,
ul,
ol,
dl,
table,
figure {
  margin: 0 0 1.1em;
}

:where(p, li, dd):last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--sumi);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sumi-soft);
}

a {
  color: var(--ai);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ai);
  outline-offset: 2px;
  border-radius: 4px;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ---------- shell ---------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--sumi);
  color: var(--washi);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sumi);
  margin-right: auto;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.brand span {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--sumi-soft);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--sumi);
  border-bottom-color: var(--hairline);
}

.site-nav a[aria-current='page'] {
  color: var(--sumi);
  border-bottom-color: var(--shu);
}

.nav-disclosure {
  display: none;
  position: relative;
}

.nav-disclosure > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--hairline);
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.9rem;
}

.nav-disclosure > summary::-webkit-details-marker {
  display: none;
}

.nav-disclosure nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 48px -32px rgba(26, 30, 28, 0.28);
}

.nav-disclosure nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--sumi);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-disclosure nav a:hover {
  background: var(--washi-deep);
}

main {
  display: block;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section--edge {
  border-top: 1px solid var(--hairline);
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head p {
  color: var(--sumi-soft);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ai);
  margin-bottom: 18px;
}

.muted {
  color: var(--sumi-soft);
}

.small {
  font-size: 0.875rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--sumi);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--sumi-soft);
}

.btn--primary {
  background: var(--sumi);
  border-color: var(--sumi);
  color: var(--washi);
}

.btn--primary:hover {
  background: #0f1211;
}

.btn--on-sumi {
  background: var(--washi);
  border-color: var(--washi);
  color: var(--sumi);
}

.btn--on-sumi:hover {
  background: var(--washi-deep);
}

.text-link {
  color: var(--ai);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--ai) 35%, transparent);
  padding-bottom: 2px;
}

.text-link::after {
  content: ' →';
  transition: transform 160ms ease;
  display: inline-block;
}

.text-link:hover {
  border-bottom-color: var(--ai);
}

.text-link:hover::after {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.microcopy {
  color: var(--sumi-soft);
  font-size: 0.875rem;
  margin-top: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li {
  border: 1px solid var(--hairline);
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--sumi-soft);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 80px);
  background:
    radial-gradient(90% 70% at 8% 0%, rgba(239, 231, 216, 0.9), rgba(247, 243, 236, 0) 62%),
    radial-gradient(80% 70% at 100% 100%, rgba(239, 231, 216, 0.75), rgba(247, 243, 236, 0) 60%),
    var(--washi);
}

.hero::before {
  content: '美';
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  top: -0.18em;
  font-family: var(--serif);
  font-size: clamp(260px, 34vw, 520px);
  line-height: 1;
  color: var(--sumi);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero__copy {
  max-width: 34rem;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--sumi-soft);
  max-width: 34rem;
  margin-bottom: 32px;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 360px;
}

.study-stack {
  position: relative;
  width: min(360px, 100%);
  margin: 20px 0;
}

.study-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(26, 30, 28, 0.03),
    0 24px 48px -32px rgba(26, 30, 28, 0.28);
  background-image:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 253, 248, 0.9)),
    repeating-linear-gradient(115deg, rgba(26, 30, 28, 0.035) 0 1px, transparent 1px 7px);
}

.study-card--back {
  position: absolute;
  inset: 0;
  transform: rotate(-4deg) translate(-14px, -18px);
  z-index: 0;
  opacity: 0.45;
}

.study-card--mid {
  position: absolute;
  inset: 0;
  transform: rotate(2.5deg) translate(12px, -9px);
  z-index: 1;
  opacity: 0.7;
}

.study-card--front {
  z-index: 2;
}

.study-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sumi-soft);
  margin-bottom: 18px;
}

.study-card__term {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.study-card__pinyin {
  color: var(--shu);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.study-card__meaning {
  color: var(--sumi-soft);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.study-card__grades {
  display: flex;
  gap: 10px;
}

.grade {
  flex: 1;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 10px 8px;
  font-size: 0.875rem;
  background: var(--washi);
}

.grade--good {
  background: var(--sumi);
  border-color: var(--sumi);
  color: var(--washi);
}

.due-pill {
  position: absolute;
  right: -14px;
  bottom: -22px;
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.85rem;
  box-shadow: 0 18px 32px -26px rgba(26, 30, 28, 0.5);
}

.due-pill strong {
  font-weight: 700;
}

/* ---------- proof strip ---------- */

.proof {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--washi-deep);
}

.proof ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  list-style: none;
  margin: 0;
  padding: 18px 0;
  font-size: 0.9rem;
  color: var(--sumi-soft);
}

.proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proof li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--shu);
  border-radius: 50%;
  flex: none;
}

/* ---------- cards & grids ---------- */

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(26, 30, 28, 0.03),
    0 24px 48px -32px rgba(26, 30, 28, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(26, 30, 28, 0.03),
    0 32px 56px -32px rgba(26, 30, 28, 0.34);
}

.card h3 {
  margin-bottom: 10px;
}

.card h3 a {
  color: var(--sumi);
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.card p {
  color: var(--sumi-soft);
  font-size: 0.97rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sumi-soft);
  margin-bottom: 14px;
}

.card__footer {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.9rem;
}

.card--flat {
  box-shadow: none;
}

.card--flat:hover {
  transform: none;
  box-shadow: none;
}

/* numbered steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--shu);
  margin-bottom: 12px;
}

.steps h3 {
  font-size: 1.15rem;
}

.steps p {
  color: var(--sumi-soft);
  font-size: 0.97rem;
}

/* split panel */

.panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(28px, 4vw, 44px);
}

.panel__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.panel__list li {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.panel__list strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}

.panel__list span {
  color: var(--sumi-soft);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 52rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 4px 24px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.2rem;
  color: var(--shu);
  flex: none;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details > p {
  padding-bottom: 20px;
  color: var(--sumi-soft);
  max-width: 68ch;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--sumi);
  color: var(--washi);
  padding: clamp(56px, 8vw, 96px) 0;
}

.cta-band h2 {
  color: var(--washi);
  max-width: 20ch;
}

.cta-band p {
  color: color-mix(in srgb, var(--washi) 78%, transparent);
  max-width: 46ch;
  margin-bottom: 28px;
}

.cta-band .microcopy {
  color: color-mix(in srgb, var(--washi) 70%, transparent);
}

/* ---------- page header / breadcrumbs ---------- */

.page-head {
  padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--hairline);
}

.page-head h1 {
  margin-bottom: 18px;
  max-width: 26ch;
}

.page-head .lede {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--sumi-soft);
  max-width: 62ch;
}

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--sumi-soft);
  margin-bottom: 20px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--hairline);
}

.breadcrumbs a {
  color: var(--sumi-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ai);
  text-decoration: underline;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- catalog ---------- */

.catalog-group {
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--hairline);
}

.catalog-group:first-of-type {
  border-top: 0;
}

.catalog-group > h2 {
  margin-bottom: 8px;
}

.catalog-group__intro {
  color: var(--sumi-soft);
  max-width: 60ch;
  margin-bottom: 28px;
}

.series-card {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.series-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: baseline;
  justify-content: space-between;
}

.series-card__head h3 {
  margin: 0;
  font-size: 1.4rem;
}

.series-card__head h3 a {
  color: var(--sumi);
  text-decoration: none;
}

.course-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.course-links li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
}

.course-links li:first-child {
  border-top: 0;
}

.course-links .num {
  font-family: var(--serif);
  color: var(--shu);
  min-width: 1.6em;
}

.course-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.course-links a:hover {
  border-bottom-color: currentColor;
}

.course-links .tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sumi-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- course page ---------- */

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  padding-top: 8px;
  margin-top: 0;
}

.prose h2::before {
  content: '';
  display: block;
  width: 48px;
  border-top: 1px solid var(--shu);
  margin-bottom: 18px;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.15em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose > p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.course-header {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: start;
}

.course-aside {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.course-aside h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sumi-soft);
  margin: 0;
}

.course-aside p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sumi-soft);
}

.course-section {
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--hairline);
}

.course-section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.course-section__head h2 {
  margin: 0;
}

.course-section__head h2::before {
  display: none;
}

.course-section__summary {
  color: var(--sumi-soft);
  max-width: 60ch;
  margin: 8px 0 0;
}

.section-link {
  font-size: 0.85rem;
  white-space: nowrap;
}

.vocab-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 12px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-size: 0.95rem;
}

.vocab-table th,
.vocab-table td {
  text-align: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.vocab-table thead th {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sumi-soft);
  background: var(--washi-deep);
}

.vocab-table tbody tr:last-child th,
.vocab-table tbody tr:last-child td {
  border-bottom: 0;
}

.vocab-table .term {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
  white-space: nowrap;
}

.vocab-example {
  color: var(--sumi-soft);
  font-size: 0.9rem;
  margin: 0 0 24px;
  padding-left: 18px;
  border-left: 2px solid var(--hairline);
}

.tip {
  background: color-mix(in srgb, var(--kin) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--kin) 32%, var(--hairline));
  border-radius: var(--radius-card);
  padding: 24px;
  margin: 20px 0;
}

.tip h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.tip p {
  margin: 0;
  color: var(--sumi-soft);
}

.notice {
  background: var(--washi-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  margin: 24px 0;
}

.notice p + p {
  margin-top: 8px;
}

.series-line {
  font-size: 0.9rem;
  color: var(--sumi-soft);
  margin: 0 0 4px;
}

.series-outline {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.series-outline li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
}

.series-outline li::before {
  content: counter(step);
  font-family: var(--serif);
  color: var(--shu);
  min-width: 1.4em;
}

/* ---------- feature / guide pages ---------- */

.feature-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.feature-hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--sumi-soft);
  max-width: 40ch;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.82rem;
  color: var(--sumi-soft);
  margin-top: 18px;
}

.guide-body {
  max-width: 68ch;
}

.guide-body h2 {
  margin-top: clamp(36px, 5vw, 52px);
}

.guide-body h2::before {
  content: '';
  display: block;
  width: 48px;
  border-top: 1px solid var(--shu);
  margin-bottom: 18px;
}

.guide-body p,
.guide-body li {
  font-size: 1.02rem;
  line-height: 1.78;
}

.guide-body ul,
.guide-body ol {
  padding-left: 1.2em;
}

.guide-body li {
  margin-bottom: 0.5em;
}

.pull {
  border-left: 2px solid var(--shu);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--sumi);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--washi-deep);
  padding: clamp(44px, 6vw, 72px) 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  color: var(--sumi-soft);
  max-width: 28ch;
  margin: 12px 0 0;
}

.footer-grid h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sumi-soft);
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: var(--sumi);
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--sumi-soft);
  font-size: 0.82rem;
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center start;
  padding: clamp(64px, 10vw, 120px) 0;
}

.not-found p {
  color: var(--sumi-soft);
  max-width: 44ch;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero__inner,
  .panel,
  .course-header,
  .feature-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__art {
    min-height: 0;
    margin-top: 8px;
  }

  .study-stack {
    width: min(340px, 100%);
  }

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

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

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .site-header__actions .btn {
    display: none;
  }

  .nav-disclosure {
    display: block;
  }

  .grid--2,
  .grid--3,
  .steps,
  .course-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-links li {
    gap: 4px 10px;
  }

  .section {
    padding: clamp(48px, 9vw, 72px) 0;
  }

  .vocab-table th,
  .vocab-table td {
    padding: 12px 12px;
    font-size: 0.9rem;
  }

  .vocab-table .term {
    font-size: 1.1rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero__art {
    margin-top: 24px;
  }

  .study-stack {
    width: min(300px, 100%);
  }

  .study-card {
    padding: 22px;
  }

  .proof ul {
    gap: 8px 18px;
    font-size: 0.82rem;
  }

  .due-pill {
    right: 6px;
    bottom: -16px;
  }

  .card,
  .steps li,
  .course-aside,
  .notice,
  .tip {
    padding: 20px;
  }

  .actions .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }

  .text-link:hover::after {
    transform: none;
  }
}

/* small layout utilities used by generated pages */
.actions--spaced {
  margin-top: 28px;
}

.prose--spaced {
  margin-top: 20px;
}

.panel--spaced {
  margin-top: clamp(36px, 5vw, 56px);
}

.course-outline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.course-outline > li {
  min-width: 0;
}
