@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f5f1;
  --surface: #fffdfb;
  --ink: #20192d;
  --muted: #62596b;
  --line: #e8e0e9;
  --plum: #382453;
  --violet: #592c99;
  --iris: #eee6fa;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box }
body { margin: 0 }
a { color: var(--violet); text-decoration: none }
a:hover { text-decoration: underline }
button, input { font: inherit }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .65 }
:focus-visible { outline: 3px solid #9256c3; outline-offset: 3px }
h1, h2, p { margin: 0 }
h1, h2, .brand { font-family: var(--display); letter-spacing: -.045em }
h1 { font-size: clamp(2.75rem, 6.8vw, 5.7rem); line-height: .96; font-weight: 750; overflow-wrap: anywhere }
h2 { font-size: clamp(1.48rem, 2.8vw, 1.95rem); font-weight: 720; line-height: 1.08 }
[hidden] { display: none !important }
.shell { width: min(1200px, calc(100% - 72px)); margin-inline: auto }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip:focus { position: absolute; z-index: 8; background: white; padding: 12px }

.site-header { background: #fffdfbeb; border-bottom: 1px solid var(--line) }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: clamp(14px, 4vw, 50px) }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.35rem; line-height: 1.1; font-weight: 800; white-space: nowrap }
.brand:hover { text-decoration: none }
.brand-accent { color: var(--violet) }
.brand-mark { position: relative; display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; overflow: hidden; border-radius: 13px; background: #352047 }
.brand-mark::before { content: ''; position: absolute; width: 17px; height: 17px; top: 7px; right: 8px; border-radius: 50%; background: #ffd59f }
.brand-mark::after { content: ''; position: absolute; width: 37px; height: 15px; bottom: 5px; border-radius: 50% 55% 0 0; border-top: 2px solid #e7c7ff; background: #352047; transform: rotate(-20deg) }
.header-inner nav { display: flex; margin-left: auto; gap: clamp(14px, 3vw, 31px) }
.header-inner nav a { color: var(--muted); font-size: .91rem; font-weight: 650; white-space: nowrap }
.units { display: flex; gap: 2px; background: #f0eaf4; border-radius: 11px; padding: 3px }
.units button { color: var(--muted); border: 0; padding: 6px 10px; font-size: .85rem; font-weight: 700; border-radius: 8px; background: transparent }
.units button[aria-pressed="true"] { background: var(--plum); color: white }

.intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-block: clamp(30px, 5.8vw, 68px) 23px }
.location-kicker, .eyebrow { font-size: .73rem; letter-spacing: .15em; font-weight: 750; text-transform: uppercase }
.location-kicker { color: var(--violet); margin-bottom: 12px }
.location-kicker span { margin-right: 3px; font-size: 1.08rem }
.location-heading { display: flex; align-items: center; gap: clamp(8px, 1.7vw, 20px) }
.save-place { align-self: center; flex: 0 0 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid #d9cce4; border-radius: 50%; background: var(--surface); color: var(--violet); font-size: 1.35rem; line-height: 1 }
.save-place:hover, .save-place[aria-pressed="true"] { background: #e9d9f8 }
.location-date { color: var(--muted); font-size: .94rem; margin-top: 10px }
.location-date:empty { display: none }

.search-area { flex: 0 1 455px; min-width: 270px; align-self: end; margin-bottom: 2px }
.search-tools { min-width: 0 }
.search-form { min-width: 0; position: relative; display: flex; align-items: center; padding: 5px; gap: 7px; border: 1px solid #dcd0e3; background: var(--surface); border-radius: 13px }
.search-form:focus-within { border-color: #9f7cbc; box-shadow: 0 0 0 3px #e8d9f5 }
.search-icon { color: var(--violet); margin-left: 10px; font-size: 1.5rem; line-height: 1 }
.search-form input { min-width: 0; width: 100%; border: 0; border-radius: 5px; padding: 9px 0; color: var(--ink); background: transparent }
.search-form input::placeholder { color: var(--muted) }
.search-form input:focus-visible { outline-offset: 0 }
.primary { border: 0; border-radius: 9px; padding: 10px 18px; color: white; background: var(--plum); font-weight: 700 }
.primary:hover { background: var(--violet) }
.locate { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 5px 9px; background: transparent; color: var(--violet); font-size: .88rem; font-weight: 700; min-height: 36px; margin-top: 4px }
.locate:hover { background: var(--iris) }
.locate span { font-size: 1.23rem; line-height: 1 }
.suggestions { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: white; box-shadow: 0 12px 32px #27173725 }
.suggestions a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 11px; color: var(--ink); border-radius: 7px }
.suggestions a:hover, .suggestions a:focus-visible { background: var(--iris) }
.suggestions span { color: var(--muted); font-size: .82rem }
.saved-places { display: flex; align-items: baseline; gap: 10px 15px; flex-wrap: wrap; padding: 0 0 13px; color: var(--muted); font-size: .83rem }
#saved-links { display: flex; flex-wrap: wrap; gap: 6px }
#saved-links a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface) }
#saved-links a[aria-current] { border-color: #c5addc; background: var(--iris) }

.section-nav { display: flex; flex-wrap: wrap; gap: 4px; border-block: 1px solid #e0d6e5; margin-bottom: 16px; padding-block: 5px }
.section-nav a { padding: 9px clamp(10px, 2.6vw, 31px); border-radius: 7px; color: var(--muted); font-size: .9rem; font-weight: 700 }
.section-nav a:hover, .section-nav a[aria-current="location"] { color: var(--plum); background: var(--iris); text-decoration: none }
#today, #forecast, #ten-day, #radar, #planner { scroll-margin-top: 16px }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .54fr); align-items: center; gap: 18px; min-height: 310px; padding: clamp(25px, 4vw, 51px); overflow: hidden; color: white; border-radius: 20px; background: #2d2441 linear-gradient(90deg, #1c1428e8, #2a1a3a38 66%, #201a376b); background-image: linear-gradient(90deg, #1c1428e8, #2a1a3a38 66%, #201a376b), url("/forecast-coast.jpg"); background-position: center; background-size: cover; box-shadow: 0 10px 24px #2b1b4222 }
.hero[data-sky="night"] { background-image: linear-gradient(90deg, #141020ed, #24214895 68%, #1b192f8a), url("/forecast-coast.jpg") }
.eyebrow, .hero-label, #weather-time { color: #f6eaff }
.hero-temp { font-family: var(--display); font-size: clamp(5.3rem, 12vw, 9.1rem); font-weight: 720; line-height: .86; letter-spacing: -.075em; margin: 13px 0 12px }
.hero-temp span { display: inline-block; vertical-align: top; padding: .6em 0 0 .09em; font-size: .25em; letter-spacing: 0 }
.hero-summary { display: flex; gap: 7px; align-items: center; font-size: clamp(1.06rem, 3vw, 1.5rem); font-weight: 700 }
.hero-summary .weather-icon { color: #ffd098 }
.hero-label { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 13px; font-size: .87rem; margin-top: 13px }
.hero-label:empty { display: none }
.hero-label a { color: #eee2ff; text-decoration: underline; font-size: .72rem }
.hero-side { padding: 15px; border: 1px solid #f7e9ff42; border-radius: 14px; background: #251a35e8 }
.hero-side dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: #e9d8ed26; overflow: hidden; border-radius: 7px }
.hero-side dl div { background: #3a2a4c; padding: 9px 10px }
.hero-side dt { color: #f0e3fc; margin-bottom: 3px; font-size: .77rem; line-height: 1.25 }
.hero-side dd { margin: 0; font-size: 1.06rem; font-weight: 700; font-variant-numeric: tabular-nums }
#weather-time { font-size: .74rem; padding-top: 10px }

.alert-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; border: 1px solid #e6d9ee; border-radius: 12px; background: #f2ebf8; padding: 11px 15px; margin-top: 12px }
.alert-bar.has-alert { background: #fff0db; border-color: #d8aa70 }
.alert-icon { color: var(--violet); font-size: 1.2rem }
.has-alert .alert-icon { color: #84400c }
.alert-bar strong { font-size: .93rem }
.alert-bar p { color: var(--muted); font-size: .84rem; margin-top: 2px }
.alert-bar a { font-size: .85rem; font-weight: 700; padding-top: 3px }
.alert-bar details { margin-top: 6px }
.alert-bar summary { cursor: pointer; color: #733907; font-weight: 700 }
.alert-details { white-space: pre-line; max-width: 75ch }
.status { color: var(--muted); margin-block: 9px; font-size: .83rem }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 17px; align-items: start; margin-top: 19px }
.side-stack { min-width: 0; display: grid; gap: 17px }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: clamp(16px, 2.6vw, 26px); box-shadow: 0 3px 10px #27173708 }
.card-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px }
.card-heading p { color: var(--muted); margin-top: 5px; font-size: .88rem }
.card-heading a { font-size: .84rem; font-weight: 700; white-space: nowrap }
.hourly { grid-column: 1 / -1 }
.subtle { color: var(--violet); padding: 7px 10px; font-size: .82rem; line-height: 1.4; font-weight: 700; border: 1px solid #e2d7e9; border-radius: 8px; background: #fbf7fd; white-space: nowrap }
.subtle:hover, .subtle[aria-pressed="true"] { background: var(--iris) }
.hour-controls { display: flex; gap: 6px }
.trend { margin-top: 18px; border: 1px solid #e9deed; border-radius: 13px; background: #fbf8fc; padding: 12px 12px 7px }
.trend-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; padding-inline: 3px }
.trend-switch { display: flex; flex-wrap: wrap; gap: 3px }
.trend-switch button { border: 0; border-radius: 7px; padding: 6px 9px; background: transparent; color: var(--muted); font-size: .83rem; font-weight: 700 }
.trend-switch button[aria-pressed="true"] { color: var(--plum); background: #e8dbf5 }
#trend-reading { color: var(--plum); font-size: .86rem; font-weight: 700 }
#trend-chart { display: block; width: 100%; height: 157px }
#trend-hour { display: block; width: calc(100% - 55px); margin: 0 14px 4px 42px; accent-color: #7952ac }
.hour-list { display: flex; overflow-x: auto; scrollbar-color: #bfa6d8 transparent; gap: 8px; margin-top: 16px; padding-bottom: 8px }
.hour { flex: 0 0 95px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; background: #f6f2f7; padding: 10px 5px; border-radius: 10px }
.hour:first-child { background: var(--iris) }
.hour-time { font-size: .8rem; line-height: 1.18; font-weight: 700 }
.hour-time small, .hour-summary { display: block; color: var(--muted); font-size: .69rem; font-weight: 500 }
.hour-time small { margin-top: 4px }
.hour strong { font: 710 1.22rem var(--display); font-variant-numeric: tabular-nums }
.weather-icon { display: inline-grid; place-items: center; width: 29px; height: 27px; font-family: "Segoe UI Symbol", sans-serif; color: #955515; font-size: 1.3rem; line-height: 1 }
.weather-icon.rain, .weather-icon.snow, .weather-icon.cloudy, .weather-icon.night, .weather-icon.storm { color: #705495 }
.chance { color: #255c7b; font-size: .79rem; white-space: nowrap }

.day { border-bottom: 1px solid var(--line) }
.day:last-child { border-bottom: 0 }
.day:first-child { margin-top: 13px }
.day summary { display: grid; grid-template-columns: 46px 28px minmax(0, 1fr) 38px 66px 10px; align-items: center; gap: 8px; cursor: pointer; min-height: 53px; font-size: .87rem; list-style: none }
.day summary:hover { background: #f8f2f9 }
.day summary::-webkit-details-marker { display: none }
.day summary::after { content: '›'; color: var(--muted); font-size: 1.13rem }
.day[open] summary::after { transform: rotate(90deg) }
.day-date small { display: block; color: var(--muted); font-size: .73rem; margin-top: 2px }
.day-summary { color: var(--muted); overflow-wrap: anywhere }
.high-low { display: flex; gap: 7px; justify-content: end; font-variant-numeric: tabular-nums }
.high-low span { color: var(--muted) }
.daily-detail { font-size: .84rem; color: var(--muted); padding: 0 0 11px; line-height: 1.48 }
.daily-detail p + p { margin-top: 5px }
.data-source { color: var(--muted); font-size: .76rem; margin-top: 12px }
.radar-map { display: block; background: #f0ebf2; border: 1px solid var(--line); margin-top: 13px; border-radius: 10px; overflow: hidden }
.radar-map img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: contain }
.radar-more { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 700 }
.planner { background: #f4edf8 }
.activities { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 15px 10px }
.activities button { padding: 6px 12px; border: 1px solid #dfd0e8; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .84rem; font-weight: 650 }
.activities button[aria-pressed="true"] { background: var(--plum); color: white; border-color: var(--plum) }
.window-list { list-style: none; margin: 0; padding: 0 }
.window-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; border-bottom: 1px solid #e5d9eb; padding-block: 9px; font-size: .83rem }
.window-list small { display: block; margin-top: 3px; color: var(--muted) }
.planner-note { margin-top: 12px; font-size: .79rem }
.empty { color: var(--muted); font-size: .87rem; padding: 12px 0 }

.cities { margin-block: 39px 47px }
.city-list { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px }
.city-list a { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--ink); font-weight: 650; font-size: .92rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 12px }
.city-list a:hover { background: var(--iris) }
.city-list span { color: var(--violet) }
.footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-block: 23px 33px; color: var(--muted); font-size: .85rem }
.footer p { margin-top: 9px }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px }
.footer nav a { color: var(--muted) }
.text-page { line-height: 1.6; max-width: 810px; padding-block: 53px 73px }
.text-page h1 { font-size: clamp(2.65rem, 6.2vw, 4.6rem) }
.text-page p { margin: 12px 0; max-width: 68ch; color: var(--muted) }
.text-page h2 { margin-top: 29px }
.text-page .search-form { max-width: 420px; margin-top: 18px }
.nearby-action { margin-block: 20px }
.nearby-action .locate { background: var(--plum); color: white; padding: 9px 16px }
.nearby-action .locate:hover { background: var(--violet) }
.roomy { margin-top: 25px }

.blog-hero { max-width: 700px; padding-block: clamp(34px, 8vw, 90px) 24px }
.blog-hero p { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.21rem); margin-top: 18px; line-height: 1.5 }
.blog-section { margin-block: 28px 49px }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 15px }
.article-card { border: 1px solid var(--line); padding: clamp(16px, 3vw, 26px); border-radius: 14px; background: var(--surface) }
.article-card h3 { font: 740 1.4rem/1.13 var(--display); letter-spacing: -.03em; margin: 9px 0 }
.article-card h3 a { color: var(--ink) }
.article-card p { color: var(--muted); line-height: 1.5; font-size: .89rem }
.article-topic, .article-card .article-topic { color: var(--violet); font-size: .76rem; font-weight: 750 }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .85rem; padding-top: 26px }
.article-page { padding-block: 27px 12px }
.article-page h1 { text-wrap: balance }
.article-page .article-byline { font-size: .87rem; margin: 14px 0 26px }
.article-page p, .article-page li { line-height: 1.6 }
.article-page li + li { margin-top: 7px }
.article-page li { max-width: 65ch }
.article-page a { text-decoration: underline; text-underline-offset: 2px }
.article-sources { border-top: 1px solid var(--line); margin-top: 27px }

@media (max-width: 900px) {
  .shell { width: calc(100% - 44px) }
  .intro { flex-wrap: wrap; align-items: start }
  .search-area { flex-basis: 420px }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px) }
  .header-inner { padding-block: 10px; flex-wrap: wrap; gap: 10px 15px }
  .header-inner nav { order: 3; width: 100%; margin-left: 0 }
  .units { margin-left: auto }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 530px) {
  .shell { width: calc(100% - 24px) }
  .brand { font-size: 1.18rem }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px }
  .intro { padding-block: 26px 13px; gap: 13px }
  .search-area { flex-basis: 100%; min-width: 0 }
  .section-nav { gap: 1px; margin-bottom: 10px }
  .section-nav a { font-size: .79rem; padding-inline: 8px }
  .hero { grid-template-columns: 1fr; padding: 22px 16px 15px; gap: 15px; background-position: 55% center; border-radius: 16px }
  .hero-side { padding: 9px }
  .hero-side dl { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .hero-side dl div { padding: 6px }
  .hero-side dt { font-size: .67rem }
  .hero-side dd { font-size: .96rem }
  .hero-label { margin-top: 9px }
  .alert-bar { grid-template-columns: auto 1fr; padding: 10px }
  .alert-bar a { grid-column: 2 }
  .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .footer { flex-direction: column }
  .day summary { grid-template-columns: 36px 24px minmax(0, 1fr) 32px 47px 7px; gap: 4px }
  .high-low { gap: 4px }
  .card-heading { flex-wrap: wrap }
  .trend { padding-inline: 6px }
  .article-grid { grid-template-columns: minmax(0, 1fr) }
}

