/* MeteoWiden Portal – Local Fonts */
@font-face {font-family:'Saira';src:url('fonts/saira-v23-latin-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face {font-family:'Saira';src:url('fonts/saira-v23-latin-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap;}
@font-face {font-family:'Saira';src:url('fonts/saira-v23-latin-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;}
:root {
  color-scheme:dark;
  --background:#07111f; --surface:#0c192b; --surface-hover:#13263b;
  --text:#f3f7fb; --muted:#a0b0c4; --accent:#eac47b; --line:rgba(255,255,255,.10);
  --font-ui:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-data:'Saira',var(--font-ui);
  font-family:var(--font-ui);font-synthesis:none;
}
* {box-sizing:border-box;}
html {background:var(--background);}
body {min-height:100vh;margin:0;color:var(--text);background:radial-gradient(ellipse at 15% 0%,rgba(63,118,184,.15),transparent 36rem),var(--background);}
a {color:var(--accent);text-underline-offset:.25em;}
a:focus-visible {outline:2px solid var(--accent);outline-offset:5px;}
.portal {width:min(100% - 3rem,1080px);min-height:100vh;margin-inline:auto;padding:3rem 0 2rem;display:flex;flex-direction:column;}
/* Header */
.portal__header {display:flex;align-items:center;justify-content:space-between;gap:1.5rem;margin-bottom:2.5rem;}
.eyebrow {margin:0 0 .6rem;color:var(--muted);font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;}
.brand h1 {margin:0;font-family:var(--font-data);font-size:clamp(2.3rem,6vw,3.8rem);font-weight:700;line-height:1.1;letter-spacing:-.035em;}
.brand h1 span {color:var(--accent);}
.subtitle {margin:.5rem 0 0;color:var(--muted);font-size:.95rem;}
.datetime {display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0;font-family:var(--font-data);font-variant-numeric:tabular-nums;}
.current-date {color:var(--muted);font-size:.85rem;}
.clock {color:var(--accent);font-size:1.8rem;font-weight:600;}
.section-heading {display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.4rem;}
.section-heading h2 {margin:0;font-size:1.15rem;font-weight:600;}
.station-label {color:var(--muted);font-size:.8rem;}
/* Current weather */
.current-weather {padding:clamp(1.25rem,4vw,2rem);border:1px solid var(--line);border-radius:1.25rem;background:linear-gradient(135deg,#14263b,var(--surface) 75%);}
.weather-main {display:flex;align-items:center;gap:1.5rem;padding:0;}
.weather-symbol {width:180px;height:180px;flex-shrink:0;color:var(--accent);}
.weather-symbol svg {display:block;width:100%;height:100%;}
.temperature-group {min-width:0;}
#weather-condition {margin:0 0 .3rem;color:var(--accent);font-size:1.15rem;}
.temperature {display:flex;align-items:baseline;gap:.4rem;font-family:var(--font-data);font-size:clamp(3rem,7vw,5rem);font-weight:600;font-variant-numeric:tabular-nums;line-height:1.15;white-space:nowrap;}
.temperature-unit {color:var(--accent);font-size:.45em;}
.feels-like {margin:.25rem 0 0;color:var(--muted);font-family:var(--font-data);font-size:.95rem;}
.weather-status {display:flex;align-items:center;justify-content:flex-end;gap:.45rem;margin:.25rem 0 1rem;color:var(--muted);}
.weather-status small {font-size:.75rem;}
.status-dot {width:8px;height:8px;border-radius:50%;background:var(--muted);flex-shrink:0;}
[data-status="ok"] .status-dot {background:#4fe0a2;}
[data-status="stale"] .status-dot {background:var(--accent);}
[data-status="offline"] .status-dot,[data-status="error"] .status-dot {background:#f87171;}
/* Weather metrics */
.weather-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding-top:1.5rem;border-top:1px solid var(--line);}
.metric {padding:0 1.25rem;border-left:1px solid var(--line);}
.metric:first-child {padding-left:0;border-left:0;}
.metric dt {margin-bottom:.35rem;color:var(--muted);font-size:.8rem;}
.metric dd {margin:0;font-family:var(--font-data);font-size:clamp(1.2rem,3vw,1.9rem);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;}
.metric dd small {color:var(--accent);font-size:.55em;font-weight:400;}
/* Application cards */
.applications {margin-top:2.5rem;}
.dashboard {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.card {display:flex;flex-direction:column;align-items:flex-start;min-height:205px;padding:1.5rem;border:1px solid var(--line);border-radius:1rem;background:var(--surface);color:var(--text);text-decoration:none;transition:transform 180ms ease,border-color 180ms ease,background-color 180ms ease;}
.card__icon {width:32px;height:32px;margin-bottom:1rem;fill:none;stroke:var(--accent);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.card h3 {margin:0;font-size:1.25rem;font-weight:600;}
.card p {margin:.5rem 0 1.25rem;color:var(--muted);font-size:.9rem;line-height:1.6;}
.card__link,.card__links {margin-top:auto;color:var(--accent);font-size:.85rem;font-weight:500;}
.card__links {display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;}
.card__links a {text-decoration:none;}
.card__links a:hover {text-decoration:underline;}
.card:focus-within {border-color:var(--accent);}
@media (hover:hover) {.card:hover {transform:translateY(-3px);border-color:rgba(234,196,123,.45);background-color:var(--surface-hover);}}
/* Footer */
.portal__footer {display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-top:auto;padding-top:2.5rem;color:var(--muted);font-size:.75rem;line-height:1.6;}
.portal__footer nav {display:flex;flex-wrap:wrap;gap:1rem;}
.portal__footer a {color:var(--muted);text-decoration:none;}
.portal__footer a:hover {color:var(--accent);}
#date {display:block;}
/* Mobile layout */
@media (max-width:680px) {
  .portal {width:calc(100% - 1.5rem);padding-top:1.5rem;}
  .portal__header {flex-wrap:wrap;gap:.75rem;margin-bottom:1.5rem;}
  .eyebrow {font-size:.65rem;letter-spacing:.08em;}
  .datetime {align-items:flex-start;}
  .clock {font-size:1.4rem;}
  .weather-main {gap:.65rem;}
  .weather-symbol {width:clamp(85px,29vw,128px);height:clamp(85px,29vw,128px);}
  .temperature {font-size:clamp(2rem,11vw,3rem);gap:.25rem;}
  #weather-condition {font-size:1rem;overflow-wrap:anywhere;}
  .metric {padding:0 .65rem;}
  .metric dt {font-size:.7rem;overflow-wrap:anywhere;}
  .metric dd {font-size:clamp(.95rem,4.7vw,1.2rem);}
  .dashboard {grid-template-columns:1fr;}
  .card {min-height:180px;padding:1.25rem;}
  .portal__footer {flex-direction:column;}
}
@media (max-width:350px) {.weather-main {flex-wrap:wrap;}}
@media (prefers-reduced-motion:reduce) {.card {transition:none;}.card:hover {transform:none;}}

.humidity-short {display:none;}
@media (max-width:680px) {.humidity-full {display:none;} .humidity-short {display:inline;} .weather-status {flex-wrap:wrap;}}
