/* My Day public site. Plain CSS, no external resources (no fonts, trackers
   or scripts from third parties). Colours follow app/lib/core/theme/app_theme.dart. */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --text: #1E2633;
  --muted: #5A6270;
  --line: #E4E0D9;
  --accent: #4F7364;
  --accent-text: #FFFFFF;
  --warm: #FFF4E6;
  --warm-line: #F0D9B5;
  --todo: #FFE7A3;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181D;
    --surface: #1F2228;
    --text: #ECEAE6;
    --muted: #A9AEB8;
    --line: #2E323A;
    --accent: #9CC2B1;
    --accent-text: #16181D;
    --warm: #241F1A;
    --warm-line: #4A3B28;
    --todo: #5C4A12;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 1; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 8px; }
.lang, .pages { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.95rem; }
.pages { padding: 8px 0 10px; }
.lang a, .pages a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.lang a[aria-current], .pages a[aria-current] { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); }

main { padding-top: 24px; padding-bottom: 32px; }
h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.25; margin: 0.4em 0 0.5em; }
h2 { font-size: 1.2rem; line-height: 1.35; margin: 1.8em 0 0.5em; }
.lead { font-size: 1.08rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.92rem; margin-top: -0.4em; }
ul { padding-left: 1.25em; }
li { margin: 0.35em 0; }
.banner {
  margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--warm); border: 1px solid var(--warm-line); font-weight: 600;
}
mark.todo { background: var(--todo); color: inherit; padding: 0 4px; border-radius: 4px; font-size: 0.9em; }
.tag { font-size: 0.75rem; font-weight: 600; vertical-align: middle; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }

.hero h1 { margin-top: 0.2em; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cards li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.cards h2 { margin: 0 0 0.3em; font-size: 1.05rem; }
.cards p { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; }
.button {
  display: inline-block; margin: 4px 8px 4px 0; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600;
}
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
details > div { padding: 0 16px 6px; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding-top: 12px; padding-bottom: 24px; overflow-wrap: anywhere; }

.chooser { text-align: center; padding-top: 15vh; }
.chooser img { border-radius: 16px; }
.choices { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.choices a { display: block; min-width: 12rem; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; }
