* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: var(--fs-m) / 1.4 var(--font);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
a { color: inherit; }
.top, main, .foot { padding-left: var(--sp-4); padding-right: var(--sp-4); width: 100%; max-width: 560px; margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-4); padding-bottom: var(--sp-3); }
.brand { font-size: var(--fs-l); font-weight: 700; letter-spacing: 0.01em; }
nav { display: flex; gap: var(--sp-2); }
nav a { text-decoration: none; color: var(--muted); font-size: var(--fs-m); padding: var(--sp-2) var(--sp-3); border-radius: 999px; min-height: 36px; }
nav a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
main { flex: 1; padding-top: var(--sp-2); padding-bottom: var(--sp-4); }
.card { background: var(--surface); border-radius: var(--r-card); padding: var(--sp-4); box-shadow: var(--shadow); margin: 0 0 var(--sp-3); }
.hero { border-radius: var(--r-hero); padding: var(--sp-5) var(--sp-4); border-top: 4px solid var(--accent-weather); }
.hero h1 { margin: 0; font-size: var(--fs-xl); }
.place { color: var(--muted); font-size: var(--fs-m); margin: 0 0 var(--sp-3); }
.wx { display: flex; align-items: center; gap: var(--sp-4); }
.wx svg { width: 88px; height: 88px; flex: none; }
.temp { font-size: var(--fs-hero); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.cond { font-size: var(--fs-l); margin-top: var(--sp-1); }
.meta { color: var(--muted); font-size: var(--fs-s); margin: var(--sp-3) 0 0; }
.hilo { display: flex; gap: var(--sp-5); margin-top: var(--sp-4); font-size: var(--fs-l); }
.hilo span { color: var(--muted); font-size: var(--fs-s); display: block; }
.notice { color: var(--danger); font-size: var(--fs-s); margin: var(--sp-3) 0 0; }
.sun-fill { fill: var(--accent-weather); } .sun-line { stroke: var(--accent-weather); stroke-width: 3; stroke-linecap: round; fill: none; }
.cloud-fill { fill: var(--muted); opacity: 0.85; } .moon-fill { fill: var(--accent-news); }
.drop { stroke: var(--accent-news); stroke-width: 3; stroke-linecap: round; fill: none; }
.bolt { fill: var(--accent-weather); }
label { display: block; font-weight: 600; margin: 0 0 var(--sp-2); }
input, select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-3); min-height: 44px; }
.field { margin-bottom: var(--sp-4); }
.btn { display: inline-block; font: inherit; font-weight: 600; background: var(--accent-news); color: #fff; border: 0; border-radius: 999px; padding: var(--sp-3) var(--sp-5); min-height: 44px; text-decoration: none; cursor: pointer; }
.btn[disabled] { opacity: 0.6; }
.hint { color: var(--muted); font-size: var(--fs-s); margin: var(--sp-2) 0 0; }
.foot { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding-top: var(--sp-3); padding-bottom: var(--sp-4); color: var(--muted); font-size: var(--fs-s); }
.chip { font: inherit; font-size: var(--fs-s); font-weight: 600; background: var(--accent-calendar); color: #08210f; border: 0; border-radius: 999px; padding: var(--sp-2) var(--sp-4); min-height: 36px; cursor: pointer; }
.chip[hidden] { display: none; }
.skeleton { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: rise var(--t-slow) ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
