/* Jungfrau Valley Guide — minimal CSS
   Spec: docs/07-minimal-css.md
   < 15 KB, no frameworks, no animations */

/* reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* tokens */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #0a7d6b;       /* Swiss alpine green */
  --accent-soft: #e6f2ef;
  --warn: #d97706;         /* amber  */
  --warn-soft: #fdf3e3;
  --danger: #dc2626;       /* red    */
  --danger-soft: #fdeaea;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

body { min-height: 100vh; }

/* layout */
.container { max-width: 640px; margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 64px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; gap: 8px;
}
.brand { font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--text); }
.brand .ridge { color: var(--accent); }

/* language toggle */
.lang-toggle { display: flex; gap: 2px; }
.lang-toggle button {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 8px; font-size: 0.8rem; cursor: pointer; color: var(--muted);
  min-height: 30px; min-width: 34px;
}
.lang-toggle button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* verdict — the hero line */
.verdict {
  font-size: 1.75rem; font-weight: 600; line-height: 1.2;
  padding: 24px 0 8px;
}
.verdict small { display: block; font-size: 0.9rem; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* village chips */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 16px; -webkit-overflow-scrolling: touch; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--border); background: var(--bg);
  border-radius: 999px; padding: 8px 14px; font-size: 0.95rem; cursor: pointer;
  color: var(--text); text-decoration: none; min-height: 44px;
}
.chip.active, .chip[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* sections */
section { padding: 16px 0; }
h2 { font-size: 1.25rem; margin-bottom: 12px; }

/* cards */
.card {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
  margin-bottom: 10px;
}

/* status list (transport / lifts) */
.status-list { list-style: none; }
.status { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.status:last-child { border-bottom: none; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.status .name { flex: 1; }
.status .state { font-size: 0.85rem; font-weight: 600; }
.status.open      .dot { background: var(--accent); } .status.open      .state { color: var(--accent); }
.status.delay     .dot { background: var(--warn); }   .status.delay     .state { color: var(--warn); }
.status.closed    .dot { background: var(--danger); } .status.closed    .state { color: var(--danger); }

/* forecast mini-cards */
.forecast { display: flex; gap: 8px; }
.forecast .day {
  flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px;
  text-align: center; font-size: 0.85rem;
}
.forecast .day .t { font-weight: 600; font-size: 1.05rem; display: block; }

/* decision card */
.decision { border: 1px solid var(--accent); border-radius: 10px; padding: 16px; background: var(--accent-soft); }
.decision h2 { color: var(--accent); margin-bottom: 6px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 12px 20px; font-size: 1rem; cursor: pointer;
  text-decoration: none; margin-top: 10px; min-height: 44px;
}

/* alert strip — only when something is wrong */
.alert {
  border-radius: 8px; padding: 10px 14px; margin: 8px 0; font-size: 0.9rem;
  display: flex; gap: 8px; align-items: center;
}
.alert.warn  { background: var(--warn-soft);  color: var(--warn); }
.alert.danger{ background: var(--danger-soft); color: var(--danger); }

/* webcam */
.webcam img { width: 100%; border-radius: 10px; border: 1px solid var(--border); display: block; }
.webcam figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* news list */
.news-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.news-item .src { font-size: 0.8rem; color: var(--muted); }
.news-item .sum { font-size: 0.9rem; color: var(--muted); }

/* timestamps */
.updated { font-size: 0.8rem; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: 0.85rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer .row { margin-bottom: 6px; }

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

/* desktop: slightly wider, keep minimal */
@media (min-width: 768px) {
  .container { max-width: 720px; }
  .verdict { font-size: 2rem; }
}
