/* The guide pages (What is taarof?, Thank you in Persian, The Persian alphabet, Teaching your child Persian):
   one readable column in the app's colors, the short answer first, then each question in the words people search with. */
:root {
  --bg: #f2f6f7; --surface: #ffffff; --ink: #13293a; --muted: #5a7282; --line: #d8e3e7;
  --band: #1c3780; --band-ink: #ffffff; --band-muted: #c3d0f0; --cta: #f2b23c; --lapis-text: #1f3d8a; --turq: #0a7170; --turq-soft: #dbeeed;
  --play: #1c3780; --play-ink: #ffffff;
  --font-ui: "Lexend", "Segoe UI", system-ui, sans-serif; --font-head: "Literata", "Iowan Old Style", Georgia, serif; --font-fa: "Vazirmatn", "Tahoma", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1820; --surface: #112430; --ink: #e4eef1; --muted: #8fa8b3; --line: #23404e; --band: #142a63; --band-muted: #aebde6; --lapis-text: #a3b8ff; --turq: #3bbfba; --turq-soft: #123a3c; --play: #a3b8ff; --play-ink: #0b1820; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-ui); }
.wrap { max-width: 42rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header { background: var(--band); color: var(--band-ink); padding-top: env(safe-area-inset-top, 0px); }
header .wrap { padding-block: 22px 24px; display: grid; gap: 8px; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: inherit; text-decoration: none; font-weight: 400; }
.brand b { font-family: var(--font-head); font-size: 1.4rem; }
.brand span { font-family: var(--font-fa); font-size: 1.6rem; color: var(--cta); }
header h1 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.9rem; line-height: 1.2; text-wrap: balance; }
header p { margin: 0; color: var(--band-muted); max-width: 60ch; }
main .wrap { padding-block: 24px 48px; display: grid; gap: 26px; }
.short { background: var(--turq-soft); border-radius: 14px; padding: 16px 18px; }
.short p { margin: 0; }
.short p + p { margin-top: 8px; }
section h2 { margin: 0 0 8px; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; line-height: 1.3; text-wrap: balance; }
section h3 { margin: 14px 0 2px; font-size: 1rem; }
section p, section ul, section ol { margin: 0 0 10px; max-width: 65ch; }
section ul, section ol { padding-left: 1.2em; }
section li + li { margin-top: 6px; }
a { color: var(--lapis-text); font-weight: 600; }
.fa { font-family: var(--font-fa); }
.muted { color: var(--muted); }
footer { color: var(--muted); font-size: 0.9rem; }
.trust { color: var(--muted); font-size: 0.92rem; }
.cta { display: inline-block; background: var(--cta); color: #13293a; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 12px; }
.cta:focus-visible, .play:focus-visible { outline: 3px solid var(--lapis-text); outline-offset: 2px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; justify-items: start; }
.box p { margin: 0; }

/* a phrase: the Persian, how to say it, what it means and when, and a button to hear it */
.say { display: grid; gap: 10px; margin: 4px 0 12px; padding: 0; list-style: none; }
.say li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; }
.say li + li { margin-top: 0; }
.say .p, .say .t, .say .m { grid-column: 1; }
.say .p { font-family: var(--font-fa); font-size: 1.45rem; line-height: 1.5; }
.say .t { font-weight: 700; }
.say .m { color: var(--muted); font-size: 0.95rem; }
.say .play { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.play { inline-size: 44px; block-size: 44px; border-radius: 50%; border: 0; background: var(--play); color: var(--play-ink); cursor: pointer; display: inline-grid; place-items: center; flex: none; padding: 0; }
.play svg { inline-size: 18px; block-size: 18px; margin-left: 3px; }
.play.on { background: var(--turq); }
.play.sm { inline-size: 34px; block-size: 34px; }
.play.sm svg { inline-size: 14px; block-size: 14px; }
.nosound { font-size: 0.85rem; color: var(--muted); }

/* the alphabet table: the letter, its name and sound, and a word that uses it */
.abc { inline-size: 100%; border-collapse: collapse; font-size: 0.95rem; }
.abc th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; padding: 6px; border-bottom: 1px solid var(--line); }
.abc td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.abc .g { font-family: var(--font-fa); font-size: 2rem; line-height: 1; text-align: center; inline-size: 3rem; }
.abc .l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.abc .l2 { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.abc .ex .fa { font-size: 1.25rem; }
.abc tr.new td { background: var(--turq-soft); }
@media (max-width: 420px) { .abc td, .abc th { padding-inline: 4px; } .abc .g { font-size: 1.75rem; inline-size: 2.4rem; } }
.letters { font-family: var(--font-fa); font-size: 1.5rem; letter-spacing: 0.25em; }

/* a second, small play button inside a phrase's note (the book form), and the start button at the top of a game page */
.say .m .play { grid-column: auto; grid-row: auto; vertical-align: middle; margin-inline-start: 6px; }
.box.start { justify-items: center; text-align: center; }
