/* emilyngan.com — one tidy stylesheet, system fonts, no framework. */
/* Theme evolved from the 琴媽媽 avatar + banner — see theme.md.
   Heart red #ee1b24 (button #c81e24 for contrast), peach #ffb1a5,
   cream #f1dbc4, mauve-grey #6f5b6a, ink from avatar hair. */
:root {
  --ink: #2b1a1e;
  --muted: #6f5b6a;
  --line: #e8dac3;
  --bg: #fdf6ec;
  --card: #ffffff;
  --accent: #c81e24;
  --accent-ink: #ffffff;
  --peach: #ffb1a5;
  --radius: 12px;
  --measure: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .5rem .75rem;
}
.skip:focus { left: 0; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.site-header nav,
main,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
}
.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.site-header ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header a { color: var(--ink); }
.site-header a:hover { color: var(--accent); }

main { padding-block: 1.5rem 3rem; }
section + section { margin-top: 3rem; }

.banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 1.5rem;
  border: 3px solid var(--line);
}
.eyebrow {
  margin: 1rem 0 .25rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
}
h1 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.2;
}
h2 {
  margin: 0 0 .75rem;
  font-size: 1.6rem;
  line-height: 1.3;
}
h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.25rem; color: var(--muted); }

.button {
  display: inline-block;
  margin-top: .5rem;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
}
.button:hover, .button:focus-visible { filter: brightness(1.1); }

.cards {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.cards p { margin: 0; color: var(--muted); }
.icon {
  width: 44px;
  height: 44px;
  display: block;
  margin-bottom: .75rem;
  padding: 8px;
  border-radius: 12px;
  background: #ffe9e4;
  color: var(--accent);
}

.videos { margin: 1rem 0 0; padding-left: 1.25rem; }
.videos li { margin-bottom: .75rem; }
.videos a { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem 2rem;
  color: var(--muted);
  font-size: .95rem;
}
.site-footer a { color: var(--muted); }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2e9e4;
    --muted: #c9b8bd;
    --line: #3f2f33;
    --bg: #221a1e;
    --card: #2e2226;
    --accent: #ffb1a5;
    --accent-ink: #2b1a1e;
  }
  .icon { background: #3f2a2e; }
}
