/*
Theme Name: Wasatch Daily
Theme URI: https://skiingsaltlake.com
Author: Alta
Description: A modern, responsive WordPress theme for one high-quality ski report per day. Built to shine without relying on hero images.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: wasatch-daily
*/

:root {
  --bg: #0b1220;
  --panel: #111a2b;
  --text: #ecf2ff;
  --muted: #98a7c7;
  --accent: #67d5ff;
  --accent-2: #80ffda;
  --warn: #ffd580;
  --border: #24324e;
  --max: 1040px;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(122, 164, 214, 0.08) 0%, rgba(11, 18, 32, 0) 28%),
    radial-gradient(circle at 20% -10%, #172744 0%, var(--bg) 40%) fixed;
  line-height: 1.7;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .28;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400'%3E%3Cpath d='M0 320 L120 250 L210 290 L340 180 L470 275 L610 140 L760 270 L900 165 L1030 255 L1200 210 L1200 400 L0 400 Z' fill='%231a2a45'/%3E%3Cpath d='M0 340 L95 290 L200 320 L330 215 L470 300 L620 175 L760 305 L920 205 L1045 292 L1200 250 L1200 400 L0 400 Z' fill='%23142238'/%3E%3C/svg%3E"),
    radial-gradient(circle at 80% 10%, rgba(128,255,218,0.18), transparent 22%);
  background-repeat: no-repeat, no-repeat;
  background-position: bottom center, 80% 12%;
  background-size: 1300px auto, 420px 420px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(var(--max), 92vw); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: 0.9rem 0; }
.site-title { font-size: 1.05rem; letter-spacing: .02em; font-weight: 800; color: var(--text); }
.tagline { color: var(--muted); font-size: .9rem; text-align: right; }

.main { padding: 1.4rem 0 3rem; }

.daily-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.2vw, 2rem);
  box-shadow: var(--shadow);
}

.daily-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='120' viewBox='0 0 1200 120'%3E%3Cpath d='M0 95 L90 70 L170 85 L285 38 L390 80 L520 28 L655 78 L795 25 L905 72 L1015 42 L1120 68 L1200 58' stroke='%2367d5ff' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #2c4667;
  color: var(--accent-2);
  font-size: .8rem;
  border-radius: 999px;
  padding: .25rem .65rem;
  margin-bottom: .8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.badge-fresh { background: rgba(128,255,218,.15); color: var(--accent-2); border: 1px solid rgba(128,255,218,.35); }
.badge-stale { background: rgba(255,213,128,.1); color: var(--warn); border: 1px solid rgba(255,213,128,.25); }

.entry-title {
  font-size: clamp(1.5rem, 3.8vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 .7rem;
  text-wrap: balance;
}

.meta { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
}
.chip {
  border: 1px solid #2c4667;
  background: rgba(103,213,255,.07);
  color: #cbeeff;
  border-radius: 999px;
  font-size: .82rem;
  padding: .25rem .62rem;
  white-space: nowrap;
}

.entry-content p,
.entry-content li { font-size: 1.05rem; }
.entry-content h2,
.entry-content h3 { line-height: 1.3; margin-top: 1.8rem; }
.entry-content blockquote {
  margin: 1rem 0;
  border-left: 3px solid #2f4d75;
  padding-left: .8rem;
  color: #d6e3fb;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}
.panel h3 { margin-top: 0; margin-bottom: .6rem; }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.list-clean li:last-child { border-bottom: none; }

.post-nav {
  display: flex;
  gap: .8rem;
  justify-content: space-between;
  margin-top: 1.2rem;
}

.btn {
  display:inline-flex; align-items:center; justify-content:center;
  border: 1px solid #35608d;
  background: #11213a;
  color: #d6ebff;
  border-radius: 10px;
  padding: .55rem .8rem;
  font-size: .92rem;
}
.btn:hover { text-decoration: none; background: #153055; }

.tip {
  font-size: .92rem;
  color: #d7e3fb;
  background: rgba(103,213,255,.07);
  border: 1px solid #2b4f79;
  border-radius: 10px;
  padding: .7rem .8rem;
}

.site-footer { color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); padding: 1.2rem 0 2rem; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .tagline { display:none; }
}
