/*
 * Name: style.css
 * Description: Shared style for wherespent.app. System fonts only, the app's "Midnight and sand" palette,
 * light and dark mode, scalable text, visible focus, reduced motion. No outside sources (0008).
 */

:root {
  color-scheme: light dark;
  --bg: #F4F2EE;
  --card: #FFFFFF;
  --text: #1C1F28;
  --muted: #545967;
  --accent: #2F3B55;
  --line: #DEDAD2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11131A;
    --card: #1C1F28;
    --text: #F4F2EE;
    --muted: #B4B7C0;
    --accent: #D6C6A5;
    --line: #2C303B;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: .5rem .75rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: .5rem;
}
.skip:focus { top: 1rem; }

header, main, footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

main { padding-bottom: 3rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 .5rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 .5rem; }

p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

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

.meta { color: var(--muted); }

.lang { margin: 0 0 1.5rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}

.steps { padding-left: 1.5rem; }
.steps li { padding-left: .25rem; margin-bottom: .6rem; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: .9375rem;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
