/* Meibo — meibomedia.com
   One stylesheet for every page. Change a colour here, not in three files.

   Colours are the APP's, not invented for the web. `lib/data/accent.dart`:
       const meiboSeed = Color(0xFFF69967);
   and its own comment records what Material 3 resolves that to under
   DynamicSchemeVariant.content: burnt orange #934A1F. So light mode uses the
   resolved primary and dark mode uses the seed itself — which is how the app
   looks on a phone. The pale ground is sampled from the app icon's own
   background.

   ⚠️ The accent is user-selectable in the app (Orange, Green, Teal, Blue,
   Indigo, Purple). These are the DEFAULT. The site is not trying to match
   whatever someone has picked. */

:root {
  color-scheme: light dark;

  --bg:        #fdf6f4;
  --surface:   #ffffff;
  --border:    #eddedb;
  --ink:       #241b19;
  --ink-soft:  #5c4d49;
  --ink-faint: #8b7a75;
  --accent:    #934a1f;
  --accent-bg: #fbe9e2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #171310;
    --surface:   #201a17;
    --border:    #382e29;
    --ink:       #f2e7e2;
    --ink-soft:  #bdaca6;
    --ink-faint: #8b7a75;
    --accent:    #f69967;
    --accent-bg: #2b201a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* ---- header ---- */

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

nav.site {
  margin-left: auto;
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}

nav.site a { color: var(--ink-soft); text-decoration: none; }
nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--accent); }

/* ---- type ---- */

main { padding: 2.6rem 0 3rem; }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.7rem;
  padding-top: 0.2rem;
}

h3 {
  font-size: 1rem;
  margin: 1.6rem 0 0.4rem;
}

p, li { color: var(--ink-soft); }

h1 + p.lead,
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 0;
}

a { color: var(--accent); }

ul { padding-left: 1.2rem; }
li { margin: 0.3rem 0; }

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

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

.hero {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
}

.hero img {
  width: 96px;
  height: 96px;
  border-radius: 21px;
  flex: none;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.10);
}

@media (max-width: 34rem) {
  .hero { flex-direction: column; gap: 1rem; }
  .hero img { width: 76px; height: 76px; border-radius: 17px; }
}

/* ---- feature list ---- */

.features {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 0;
}

.features b {
  color: var(--ink);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

/* ---- callout ---- */

.note {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.8rem 0;
}

.note p { margin: 0; color: var(--ink); }
.note p + p { margin-top: 0.6rem; }

/* ---- contact ---- */

.contact {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

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

footer.site {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0 2.6rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

footer.site a { color: var(--ink-faint); }
footer.site p { margin: 0.3rem 0; color: var(--ink-faint); }

.updated {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.65rem; }
  nav.site { margin-left: 0; width: 100%; gap: 1rem; }
}
