:root { color-scheme: light; --ink: #182944; --paper: #f5f1e8; --muted: #5f6b76; --ochre: #98753d; }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 16px/1.75 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px dashed var(--ochre); outline-offset: 6px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header, .chapters, main, footer { max-width: 1240px; margin-inline: auto; padding-inline: clamp(22px, 5vw, 72px); }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 30px; gap: 20px; }
.wordmark { font: 36px/1 Georgia, serif; text-decoration: none; letter-spacing: -.03em; }
.wordmark span { display: block; margin-top: 9px; font: 9px/1.5 system-ui, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.back-link { font-size: 12px; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.language-switch { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.language-switch a { padding-block: 8px; text-decoration: none; color: var(--muted); }
.language-switch a[aria-current] { color: var(--ink); border-bottom: 1px solid var(--ochre); }
.language-switch span { color: var(--ochre); }
.chapters { display: flex; gap: 32px; border-top: 1px solid #18294418; border-bottom: 1px dashed #18294435; }
.chapters a { position: relative; padding-block: 17px; font-size: 12px; color: var(--muted); text-decoration: none; }
.chapter-index { margin-right: 9px; font-size: 10px; color: var(--ochre); }
.chapters a[aria-current] { color: var(--ink); }
.chapters a[aria-current]::after { content: ''; height: 3px; background: var(--ochre); position: absolute; bottom: -2px; left: 0; right: 0; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding-block: 70px 76px; }
.eyebrow { font: 10px/1.8 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .16em; color: var(--ochre); margin: 0 0 25px; }
h1 { font: 400 clamp(42px, 5.2vw, 70px)/1.06 Georgia, serif; letter-spacing: -.05em; margin: 0 0 28px; }
h1 em { font-weight: 400; }
.intro { max-width: 34em; color: #4d5966; font-size: 16px; margin: 0; }
.era { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.app-store-cta { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 48px; padding: 13px 22px; background: var(--ink); color: var(--paper); font: 13px/1.6 system-ui, sans-serif; text-decoration: none; border: 1px solid var(--ink); border-radius: 4px; }
.app-store-cta:hover { background: #2d4563; color: #fff; }
.app-store-cta span { font-size: 18px; }
.app-invitation { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; margin-bottom: 60px; padding: clamp(26px, 4vw, 48px); background: #eae5da; border-top: 2px solid #c0a573; }
.app-invitation h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.25; }
.app-invitation p:not(.eyebrow) { max-width: 42em; color: #4d5966; }
.app-invitation .eyebrow { margin-bottom: 18px; }
.app-features { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 24px 0 0; font-size: 11px; }
.app-features li::before { content: '+'; color: var(--ochre); margin-right: 8px; }
.app-invitation-action { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.app-invitation-action > span { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.collection-jump { font-size: 12px; padding-block: 12px; }
.pattern-collections { padding-block: 58px 64px; border-top: 1px dashed #18294435; scroll-margin-top: 24px; }
.collection-intro { max-width: 650px; margin-bottom: 40px; }
.collection-intro h2 { font-size: clamp(32px, 4vw, 48px); }
.collection-intro > p:not(.eyebrow), .collection-heading > p { color: #4d5966; }
.collection-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: baseline; gap: 32px; margin-block: 32px 22px; }
.collection-heading h3 { font: 400 22px/1.5 Georgia, serif; margin: 0; }
.collection-heading p { margin: 0; font-size: 13px; max-width: 42em; }
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.collection-card { border-top: 1px solid #c0a573; padding: 22px 0; }
.collection-number { font-size: 10px; letter-spacing: .12em; color: var(--ochre); }
.collection-card h4 { font: 400 26px/1.4 Georgia, serif; margin: 12px 0; }
.collection-card p { font-size: 13px; color: #4d5966; margin: 0; }
.collection-card .collection-examples { font-size: 10px; color: var(--ochre); margin-top: 18px; }
.motif-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.motif-card { margin: 0; display: grid; grid-template-columns: 42% 1fr; background: #eee9de; }
.motif-card img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.motif-card figcaption { padding: 24px; font: 13px/1.7 system-ui, sans-serif; }
.motif-card figcaption span { color: var(--ochre); font-size: 9px; letter-spacing: .06em; text-transform: none; }
.motif-card h4 { font: 400 27px/1.4 Georgia, serif; margin: 0 0 10px; }
.motif-card p { color: #4d5966; margin: 0; }
.collection-browse { display: inline-block; padding-block: 14px; margin-top: 20px; font-size: 13px; }
.breadcrumbs { padding-top: 24px; font-size: 10px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs > span { margin-inline: 6px; }
.story-links { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-block: 18px; border-top: 1px dashed #18294435; font-size: 12px; }
.questions { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 5vw, 64px); padding-block: 56px 64px; border-top: 1px dashed #18294435; scroll-margin-top: 24px; }
.question-intro h2 { line-height: 1.35; }
.question-links { display: grid; gap: 14px; font-size: 12px; margin-top: 28px; }
.question-links a { text-decoration: none; color: var(--muted); }
.question-links a:hover { color: var(--ochre); }
.question-answer { scroll-margin-top: 28px; margin-bottom: 34px; padding-bottom: 30px; border-bottom: 1px solid #18294418; }
.question-answer h3 { font: 400 24px/1.4 Georgia, serif; margin: 0 0 14px; }
.question-answer p { margin: 0; color: #4d5966; }
.question-answer .app-answer { margin-top: 18px; padding-left: 18px; border-left: 2px solid #c0a573; font-size: 13px; }
.app-answer strong { color: var(--ink); font-weight: 500; }
.related-answers { display: grid; gap: 14px; font-size: 12px; }
.cloth-study { margin: 0; background: #1c304e; color: #e7deca; box-shadow: 10px 12px 0 #1829440a;  }
.cloth-study img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
figcaption { display: flex; flex-direction: column; padding: 22px 26px 23px; font: italic 18px/1.5 Georgia, serif; }
figcaption span { font: 9px/1.8 system-ui, sans-serif; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 7px; color: #d6b16e; }
.reading { display: grid; grid-template-columns: 1fr 3fr; gap: 60px; padding-block: 56px 70px; border-top: 1px dashed #18294435; }
.margin-note { font: italic 22px/1.4 Georgia, serif; color: var(--muted); margin: 0; }
.margin-note span { display: block; padding-top: 26px; color: var(--ochre); font-style: normal; }
.text-section { max-width: 650px; margin-bottom: 36px; }
h2 { font: 400 28px/1.25 Georgia, serif; margin: 0 0 14px; letter-spacing: -.02em; }
.text-section p { color: #4d5966; margin: 0; }
.observation { max-width: 650px; border-left: 2px solid #c0a573; padding: 6px 0 6px 24px; margin-top: 46px; }
.observation .eyebrow { margin-bottom: 9px; }
.observation > p:not(.eyebrow) { font: italic 22px/1.5 Georgia, serif; margin: 0; }
.observation a { display: inline-block; margin-top: 20px; font-size: 13px; }
.page-turn { border-top: 1px dashed #18294435; display: flex; align-items: center; justify-content: space-between; padding-block: 30px 60px; gap: 26px; }
.page-turn a { text-decoration: none; }
.previous { color: var(--muted); font-size: 12px; }
.next { font: 28px/1.4 Georgia, serif; }
.next span { display: block; font: 10px/1.8 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--ochre); margin-bottom: 10px; }
.next b { font-weight: 400; margin-left: 20px; }
a:hover { color: var(--ochre); }
footer { display: flex; gap: 25px; border-top: 1px solid #18294418; padding-block: 25px; color: var(--muted); font-size: 10px; }
footer span { margin-right: auto; }
html[lang="ja"] body { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif; line-height: 1.95; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] figcaption, html[lang="ja"] .margin-note, html[lang="ja"] .observation > p:not(.eyebrow), html[lang="ja"] .next { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-style: normal; }
html[lang="ja"] h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.55; letter-spacing: .01em; line-break: strict; }
html[lang="ja"] h1 em { font-style: normal; }
html[lang="ja"] h2 { font-size: 25px; line-height: 1.6; }
html[lang="ja"] .text-section p { line-break: strict; }
html[lang="ja"] .eyebrow, html[lang="ja"] .era { letter-spacing: .08em; }
html[lang="ja"] .collection-heading h3, html[lang="ja"] .collection-card h4, html[lang="ja"] .motif-card h4 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }
html[lang="ja"] .question-answer h3 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 22px; line-height: 1.6; }
@media (max-width: 700px) {
  .site-header { padding-block: 24px; }
  .wordmark { font-size: 30px; }
  .header-actions { flex-direction: column; align-items: flex-end; gap: 5px; }
  .chapters { gap: 15px; }
  .chapters a { font-size: 10px; flex: 1; }
  .chapter-index { display: block; }
  .hero { grid-template-columns: 1fr; padding-block: 42px 50px; gap: 34px; }
  h1 { font-size: clamp(39px, 9vw, 58px); }
  html[lang="ja"] h1 { font-size: clamp(29px, 7.3vw, 40px); }
  .cloth-study { max-width: 420px; width: 95%; margin-inline: auto; }
  .app-invitation { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .app-invitation-action { align-items: flex-start; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
  .collection-heading { grid-template-columns: 1fr; gap: 12px; }
  .motif-grid { grid-template-columns: 1fr; }
  .motif-card { grid-template-columns: 40% 1fr; }
  .motif-card figcaption { padding: 18px; }
  .motif-card h4 { font-size: 23px; }
  .pattern-collections { padding-block: 36px 44px; }
  .questions { grid-template-columns: 1fr; gap: 34px; padding-block: 36px 44px; }
  .question-links { gap: 12px; }
  .question-answer h3 { font-size: 22px; }
  .reading { grid-template-columns: 1fr; gap: 26px; padding-block: 35px 50px; }
  .margin-note { font-size: 18px; }
  .margin-note br { display: none; }
  .margin-note span { display: inline; padding-left: 10px; }
  .next { font-size: 22px; }
  .next b { margin-left: 6px; }
  footer { flex-wrap: wrap; gap: 14px; }
}
