/* Match Play and Show Me Chord practice guides. Same tokens, type and components as /matchplay/. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500..700&family=Inter:wght@400..700&display=swap");

:root {
  --ink: #1c140d;
  --ink-soft: #3a3731;
  --muted: #6b655c;
  --line: #efe3dc;
  --rule: rgba(31, 31, 31, 0.12);
  --tomato: #ff5a36;
  --tomato-deep: #c8421f;
  --blush: #ffe3d8;
  --blush-line: #f7c9b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f2 0, #fffdfb 900px) no-repeat, #fffdfb;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 3px; border-radius: 3px; }

.skip-link { position: absolute; top: -80px; left: 12px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--blush); color: #1f1f1f; font-size: 14px; font-weight: 650; }
.skip-link:focus { top: 10px; }

.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* Header, as on the Match Play page */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 18px; }
.brand { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; width: 244px; max-width: 100%; padding: 0 22px; text-decoration: none; }
.brand-logo { display: block; width: 200px; max-width: 100%; height: auto; }
.brand-tagline { display: block; width: 100%; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center; text-wrap: balance; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 560; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* Language menu, as on the Match Play page */
.language-menu { position: relative; }
.language-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid rgba(31, 31, 31, 0.14); border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, 0.86); font: inherit; font-size: 14px; font-weight: 560; box-shadow: 0 10px 24px rgba(90, 60, 40, 0.06); cursor: pointer; }
.language-button svg { width: 17px; height: 17px; }
.language-options { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; display: none; min-width: 168px; padding: 6px; border: 1px solid rgba(31, 31, 31, 0.12); border-radius: 8px; background: #ffffff; box-shadow: 0 18px 38px rgba(90, 60, 40, 0.12); }
.language-menu.is-open .language-options { display: grid; }
.language-option { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 10px; border-radius: 6px; color: var(--ink); font-size: 14px; text-decoration: none; }
.language-option:hover, .language-option[aria-current] { background: #fff3ec; }
.language-option:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 1px; }

/* Current section, on screens where the contents list is not beside the article */
.guide-now { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: none; padding: 10px 16px; border-bottom: 1px solid var(--rule); color: var(--ink); background: rgba(255, 253, 251, 0.96); font-size: 14px; font-weight: 650; line-height: 1.4; }

/* Article heading */
.guide-head { max-width: 860px; padding: 22px 0 30px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 26px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.5; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b9b0a6; }
.crumbs a { text-underline-offset: 3px; }
.section-label { margin: 0 0 10px; color: #1f1f1f; font-size: 15px; font-weight: 650; letter-spacing: 0.1em; line-height: 1.45; text-transform: uppercase; }
h1, h2 { font-family: Fraunces, Georgia, serif; letter-spacing: 0; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; line-height: 1.1; overflow-wrap: break-word; }
h2 { margin: 0 0 14px; font-size: clamp(25px, 2.6vw, 32px); font-weight: 580; line-height: 1.16; }
.lede { margin: 16px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.byline { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Reading column and contents */
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 64px; align-items: start; }
.guide-body { min-width: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.guide-body p { margin: 0 0 16px; }
.guide-body section { margin-top: 46px; scroll-margin-top: 20px; }
.guide-body h2 { color: var(--ink); }
.guide-body h3 { margin: 26px 0 8px; color: var(--ink); font-size: 18px; font-weight: 650; line-height: 1.35; }
.guide-body strong { color: var(--ink); font-weight: 650; }
.guide-body ul { margin: 0 0 16px; padding-left: 20px; }
.guide-body li { margin-bottom: 9px; }
.guide-body a { text-underline-offset: 3px; }

.short-answer { padding: 2px 0 2px 20px; border-left: 3px solid var(--tomato); }
.short-answer p:last-child { margin-bottom: 0; }
.note-label { margin: 0 0 6px !important; color: #1f1f1f; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; line-height: 1.45; text-transform: uppercase; }

.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; margin: 0; padding: 20px 0 6px 50px; border-top: 1px solid var(--rule); counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; top: 20px; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #1f1f1f; background: var(--blush); font-size: 15px; font-weight: 700; }
.steps h3 { margin: 3px 0 8px; }

.example { margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.example p:last-child { margin-bottom: 0; }

.table-wrap { margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
caption { padding-bottom: 8px; color: var(--muted); font-size: 14px; text-align: left; }
th, td { padding: 10px 8px 10px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th { border-top: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
tbody th { color: var(--ink); font-weight: 560; }
.yes { color: var(--ink); font-weight: 650; }
.no { color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 580px; margin: 26px 0 8px; }
.shots img { border: 1px solid rgba(31, 31, 31, 0.08); border-radius: 8px; box-shadow: 0 12px 32px rgba(90, 60, 40, 0.08); }
.shots figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.guide-contents { position: sticky; top: 24px; padding-top: 14px; border-top: 1px solid #1f1f1f; font-size: 15px; line-height: 1.45; }
.guide-contents ol { margin: 0; padding: 0; list-style: none; }
.guide-contents a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
.guide-contents a.is-active { border-left-color: var(--tomato); color: var(--ink); font-weight: 650; }
.guide-contents a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* One line pointing to the other app's guides */
.cross-link { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.cross-link a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
.related .cross-link { margin-top: 18px; }

/* /guides/: one section per app */
.app-guides { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--rule); }
.app-guides:first-of-type { margin-top: 0; }
.app-guides h2 a { text-decoration: none; }
.app-guides h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.app-guides-copy { max-width: 720px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.app-guides .byline { margin-top: 6px; }

/* Related guides */
.related { margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--rule); }
.guide-list { margin: 18px 0 0; padding: 0; list-style: none; }
.guide-list li { padding: 18px 0; border-top: 1px solid var(--rule); }
.guide-list a { display: inline-block; color: var(--ink); font-size: 19px; font-weight: 650; line-height: 1.35; text-underline-offset: 3px; }
.guide-list p { max-width: 720px; margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Closing block, as on the Match Play page */
.final-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 50px; padding: 36px; border: 1px solid rgba(31, 31, 31, 0.08); border-radius: 8px; background: linear-gradient(135deg, rgba(255, 90, 54, 0.08), rgba(255, 227, 216, 0.45)); }
.final-cta > * { min-width: 0; }
.final-cta h2 { margin: 0; }
.final-cta p { max-width: 620px; margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.launch-lockup { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.launch-lockup > img { width: 72px; height: 72px; margin-right: 6px; border-radius: 16px; box-shadow: 0 12px 26px rgba(90, 60, 40, 0.14); }
.web-app-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; max-width: 100%; padding: 10px 20px; border: 1px solid var(--blush-line); border-radius: 999px; color: #1f1f1f; background: var(--blush); font-size: 15px; font-weight: 650; text-decoration: none; }
.web-app-button:hover { background: #ffd8ca; }
.web-app-button svg { flex: 0 0 auto; width: 19px; height: 19px; }
.store-badge-link { display: inline-flex; line-height: 0; }
.store-badge-link img { display: block; width: auto; height: 44px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.legal-links a { text-underline-offset: 3px; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 34px 0 42px; color: var(--muted); font-size: 13px; }

/* Japanese pages, same approach as the Match Play page */
html:lang(ja) h1 { font-size: clamp(27px, 3.3vw, 40px); line-height: 1.32; }
html:lang(ja) h2 { line-height: 1.35; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }
html:lang(ja) .section-label, html:lang(ja) .note-label { letter-spacing: 0.04em; }
html:lang(ja) .guide-body { line-height: 1.85; }
html:lang(ja) thead th, html:lang(ja) .yes, html:lang(ja) .no { white-space: nowrap; }
html:lang(ja) .lede, html:lang(ja) .guide-list p, html:lang(ja) .final-cta p { line-height: 1.75; }

/* Korean pages: break lines between words, and set headings in sans as Korean sites do. */
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3 { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Inter, sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
html:lang(ko) .guide-body { line-height: 1.8; }
html:lang(ko) .lede, html:lang(ko) .guide-list p, html:lang(ko) .final-cta p { line-height: 1.7; }

@media (max-width: 980px) {
  .guide-layout { display: flex; flex-direction: column; gap: 30px; }
  .guide-contents { position: static; order: -1; width: 100%; padding-bottom: 8px; border-top-color: var(--rule); border-bottom: 1px solid var(--rule); }
  .guide-body { width: 100%; }
  .guide-body section { scroll-margin-top: 56px; }
  .guide-now.is-visible { display: block; }
  .final-cta { grid-template-columns: 1fr; }
  .launch-lockup { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .page { width: min(100% - 32px, 1180px); }
  .topbar { padding-top: 18px; }
  .brand { align-items: flex-start; width: 200px; padding: 0; }
  .brand-logo { width: 160px; }
  .brand-tagline { text-align: left; }
  .topbar-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .language-options { right: auto; left: 0; max-width: calc(100vw - 24px); }
  .lede { font-size: 17px; }
  .guide-body { font-size: 16px; }
  .steps > li { padding-left: 42px; }
  .steps > li::before { width: 28px; height: 28px; font-size: 14px; }
  .shots { gap: 12px; }
  .final-cta { margin-top: 40px; padding: 24px 20px; }
  table { font-size: 14px; }
}

@media (min-width: 961px) {
  body { zoom: 0.9; }
}

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