:root {
  --paper: #f4f8f4;
  --paper-soft: #eef6f2;
  --paper-strong: #ffffff;
  --ink: #17211e;
  --ink-soft: #2f3d38;
  --muted: #65736e;
  --line: #d6e2dc;
  --line-strong: #a9bdb5;
  --teal: #0e7c86;
  --teal-soft: #e9f7f5;
  --teal-dark: #075f68;
  --coral: #e85f3d;
  --coral-dark: #c7482b;
  --amber: #f6bc3d;
  --amber-soft: #fff3d4;
  --leaf: #477a58;
  --shadow: 0 22px 56px rgba(23, 33, 30, 0.12);
  --shadow-soft: 0 12px 30px rgba(23, 33, 30, 0.08);
  --radius: 8px;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(224, 241, 236, 0.86) 0 32%, rgba(246, 250, 247, 0.94) 32% 100%),
    linear-gradient(90deg, rgba(14, 124, 134, 0.05) 1px, transparent 1px) 0 0 / 300px 300px,
    linear-gradient(0deg, rgba(71, 122, 88, 0.045) 1px, transparent 1px) 0 0 / 300px 300px,
    #f6faf7;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 78% 20%, rgba(246, 188, 61, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(232, 95, 61, 0.36);
  outline-offset: 3px;
}

.page-shell {
  width: min(1296px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  margin-bottom: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  display: block;
  content: "";
}

.brand-mark::before {
  width: 24px;
  height: 24px;
  background: var(--amber);
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
}

.brand-mark::after {
  width: 15px;
  height: 15px;
  background: var(--teal);
  border: 2px solid var(--paper-strong);
  border-radius: 50%;
}

.brand-mark span {
  width: 3px;
  height: 34px;
  background: var(--coral);
  transform: rotate(32deg);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal-dark);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.live-pill span {
  width: 10px;
  height: 10px;
  background: var(--leaf);
  border-radius: 50%;
}

.unit-switch {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 6px;
}

.unit-button {
  min-height: 42px;
  color: var(--muted);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.unit-button.is-active {
  color: var(--paper-strong);
  background: var(--ink);
  border-color: var(--ink);
}

main {
  min-width: 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 46px;
}

.hero-copy {
  max-width: 650px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  font-size: clamp(3.2rem, 4.2vw, 3.75rem);
  font-weight: 900;
  line-height: 0.98;
  text-wrap: balance;
  white-space: nowrap;
}

.hero-text {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
}

.search-panel {
  width: 100%;
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 166px;
  gap: 14px;
}

.search-field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 0 18px;
  background: #f9fcfa;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.search-field svg,
.primary-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

.search-field input {
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-field input::placeholder {
  color: #788a84;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 22px;
  color: var(--paper-strong);
  font-weight: 900;
  background: var(--coral);
  border: 1px solid var(--coral-dark);
  border-radius: var(--radius);
  box-shadow: 0 16px 26px rgba(232, 95, 61, 0.26);
}

.primary-button:hover {
  background: #d84f2e;
}

.quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.city-chip {
  min-height: 36px;
  padding: 0 15px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  background: var(--teal-soft);
  border: 1px solid #c4ded8;
  border-radius: 6px;
}

.city-chip:hover {
  background: #d9f1ec;
  border-color: var(--teal);
}

.status-line {
  margin: 20px 0;
  padding: 13px 16px;
  color: var(--ink);
  font-weight: 800;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.status-line[data-tone="error"] {
  border-left-color: var(--coral);
}

.status-line[data-tone="warning"] {
  border-left-color: var(--amber);
}

.status-line[data-tone="success"] {
  border-left-color: var(--leaf);
}

.results-panel,
.weather-board {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 620px;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 900;
  line-height: 1.05;
  text-wrap: balance;
}

.city-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.result-button {
  display: grid;
  gap: 9px;
  min-height: 126px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.result-button:hover,
.result-button.is-selected {
  background: #edf8f5;
  border-color: var(--teal);
  box-shadow: inset 5px 0 0 var(--teal), var(--shadow-soft);
}

.result-name {
  font-size: 1.18rem;
  font-weight: 900;
}

.result-meta {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
}

.result-detail,
.place-line,
.condition-line {
  color: var(--muted);
  line-height: 1.5;
}

.weather-board {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.current-weather,
.forecast-section {
  min-width: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.current-weather {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 0 26px 26px;
  overflow: hidden;
}

.current-weather::before {
  position: absolute;
  inset: 0 0 auto;
  height: 154px;
  content: "";
  background: var(--amber-soft);
  border-bottom: 4px solid var(--teal);
  pointer-events: none;
}

.current-weather > * {
  position: relative;
}

.current-summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 154px;
  padding-top: 10px;
}

.weather-icon {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  color: var(--ink);
}

.weather-icon svg {
  width: 74px;
  height: 74px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.current-summary h2 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1.05;
}

.place-line {
  margin: 8px 0 0;
  font-weight: 600;
}

.temperature-block {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.current-temp {
  margin: 0;
  font-size: clamp(4.9rem, 9vw, 6.9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.condition-line {
  max-width: 350px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.metric-grid div {
  min-height: 108px;
  padding: 14px 14px 12px 24px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-grid div:nth-child(1) {
  border-left: 4px solid var(--coral);
}

.metric-grid div:nth-child(2) {
  border-left: 4px solid var(--teal);
}

.metric-grid div:nth-child(3) {
  border-left: 4px solid var(--leaf);
}

.metric-grid div:nth-child(4) {
  border-left: 4px solid var(--amber);
}

.metric-grid dt {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.metric-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.forecast-section {
  position: relative;
  padding: 26px;
}

.forecast-section .section-heading {
  display: block;
  margin-bottom: 18px;
}

.forecast-section .section-heading h2 {
  max-width: 700px;
  margin-top: 4px;
  font-size: clamp(1.9rem, 2vw, 2.25rem);
}

.forecast-section::after {
  position: absolute;
  top: 32px;
  right: 26px;
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 9px 14px;
  color: #785a10;
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--amber-soft);
  border: 1px solid #dfbf62;
  border-radius: 6px;
  content: "Best walk: morning";
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 10px;
  min-width: 0;
}

.forecast-day {
  display: grid;
  grid-template-rows: auto 58px auto auto;
  gap: 10px;
  min-height: 214px;
  padding: 14px 12px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.forecast-day:first-child {
  background: var(--amber-soft);
  border-color: #dfbf62;
  box-shadow: var(--shadow-soft);
}

.day-name {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: none;
}

.day-icon {
  width: 54px;
  height: 54px;
  color: var(--ink);
}

.day-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.day-temp {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  min-height: 30px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.day-temp .low {
  color: var(--ink);
  font-weight: 900;
}

.day-temp .high::after {
  content: " /";
}

.day-detail {
  display: grid;
  gap: 3px;
  min-height: 54px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.day-detail span {
  overflow-wrap: anywhere;
}

.content-section {
  margin-top: 56px;
}

.content-section h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.16;
}

.content-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.75;
}

.guide-grid,
.regional-grid {
  display: grid;
  gap: 28px;
}

.guide-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: stretch;
}

.guide-card,
.region-card,
.method-panel,
.faq-list details {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.guide-card,
.region-card {
  padding: 24px;
}

.guide-card-wide {
  grid-row: span 2;
}

.guide-card:not(.guide-card-wide) {
  min-height: 164px;
  background: #f7faf8;
}

.guide-card:nth-child(2) {
  border-left: 4px solid var(--amber);
}

.guide-card:nth-child(3) {
  border-left: 4px solid var(--teal);
}

.regional-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.region-card {
  background: #fbfdfc;
}

.method-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px;
}

.method-panel p {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 900;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 42px;
}

.traffic-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

.traffic-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(23, 33, 30, 0.06);
}

.traffic-pill strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 0.84rem;
  font-weight: 900;
}

.footer-links a {
  color: var(--teal-dark);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.publisher-note {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 360px;
  margin: 0;
  padding: 14px 16px;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: var(--radius);
}

@media (max-width: 1120px) {
  .page-shell {
    width: min(100% - 32px, 880px);
  }

  .site-header,
  .header-actions {
    align-items: flex-start;
  }

  .site-header {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hero-section,
  .weather-board,
  .guide-grid,
  .method-panel {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 28px;
    align-items: stretch;
  }

  .city-results,
  .regional-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }

  .guide-card-wide {
    grid-row: auto;
  }

  .method-panel p {
    margin-top: 12px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 40px), 350px);
    padding-top: 20px;
  }

  body {
    background:
      linear-gradient(180deg, rgba(224, 241, 236, 0.9) 0 26%, rgba(246, 250, 247, 0.96) 26% 100%),
      #f6faf7;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-actions {
    width: auto;
    min-width: 0;
    display: block;
  }

  .site-nav,
  .live-pill {
    display: none;
  }

  .unit-switch {
    grid-template-columns: repeat(2, 38px);
  }

  .unit-button {
    min-height: 38px;
  }

  h1 {
    font-size: clamp(2.45rem, 10vw, 3rem);
    line-height: 1.02;
    white-space: normal;
  }

  .hero-section {
    margin-bottom: 28px;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 1rem;
  }

  .search-panel,
  .current-weather,
  .forecast-section {
    padding: 14px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-field,
  .primary-button {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }

  .quick-cities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-chip {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 4px;
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .weather-board {
    gap: 20px;
  }

  .current-weather {
    gap: 20px;
    padding: 0 22px 22px;
  }

  .current-weather::before {
    height: 120px;
    border-bottom-width: 0;
  }

  .current-summary {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    min-height: 120px;
  }

  .weather-icon {
    width: 70px;
    height: 70px;
  }

  .weather-icon svg {
    width: 56px;
    height: 56px;
  }

  .current-summary h2 {
    font-size: 1.8rem;
  }

  .current-temp {
    font-size: clamp(4.5rem, 20vw, 5.7rem);
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid div {
    min-height: 92px;
    padding: 13px 12px 11px 18px;
  }

  .forecast-section .section-heading {
    order: 1;
    margin-bottom: 12px;
  }

  .forecast-section {
    display: flex;
    flex-direction: column;
  }

  .forecast-section::after {
    position: static;
    order: 2;
    width: max-content;
    margin: 0 0 16px;
  }

  .forecast-grid {
    order: 3;
    grid-template-columns: 1fr;
  }

  .forecast-day {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    align-items: center;
    min-height: 74px;
    padding: 12px;
  }

  .day-icon {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 44px;
    height: 44px;
  }

  .day-name {
    grid-row: 1;
    grid-column: 2;
    color: var(--ink);
    font-size: 0.92rem;
  }

  .day-temp {
    grid-row: 1;
    grid-column: 3;
    justify-content: end;
    font-size: 1rem;
  }

  .day-detail {
    grid-row: 2;
    grid-column: 2 / span 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-height: 0;
  }

  .day-detail span:last-child {
    display: none;
  }

  .city-results,
  .regional-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    margin-top: 32px;
  }

  .guide-card,
  .region-card,
  .method-panel {
    padding: 18px;
  }

  .site-footer {
    margin-top: 28px;
  }

  .traffic-stats {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .traffic-pill {
    justify-content: space-between;
    width: 100%;
  }

  .faq-list summary {
    padding: 16px;
  }

  .faq-list details p {
    padding: 0 16px 16px;
  }
}

@media (max-width: 390px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .quick-cities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-shell {
    margin-right: auto;
    margin-left: 20px;
  }
}
