:root {
  --ink: #19211f;
  --muted: #5f6f6a;
  --line: #d7e2de;
  --paper: #ffffff;
  --soft: #eef6f2;
  --teal: #0f766e;
  --green: #2f8f46;
  --sun: #f2c84b;
  --sky: #dcefed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #073b35;
  background: var(--sun);
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--soft);
  outline: none;
}

.hero {
  position: relative;
  min-height: 580px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 31, 28, 0.82), rgba(10, 31, 28, 0.46) 52%, rgba(10, 31, 28, 0.12)),
    linear-gradient(0deg, rgba(25, 33, 31, 0.38), rgba(25, 33, 31, 0));
}

.hero-content {
  position: relative;
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 72px;
  color: #fff;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  color: var(--green);
}

.hero .eyebrow {
  color: var(--sun);
}

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

h1 {
  margin: 0 0 28px;
  max-width: 12ch;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
}

.search {
  max-width: 620px;
}

.search label {
  display: block;
  margin-bottom: 8px;
  font-weight: 720;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button {
  min-height: 52px;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

input:focus-visible {
  border-color: var(--sun);
  box-shadow: 0 0 0 3px rgba(242, 200, 75, 0.28);
}

button {
  border: 0;
  padding: 0 22px;
  color: #0a1f1c;
  background: var(--sun);
  font-weight: 760;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #ffd85e;
  outline: none;
}

#search-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.current-band {
  background: var(--soft);
  padding: 52px 0;
}

.current-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 36px;
  align-items: center;
}

.temperature {
  display: flex;
  align-items: start;
  gap: 6px;
  margin: 20px 0 8px;
  font-size: clamp(72px, 12vw, 132px);
  font-weight: 780;
  line-height: 0.92;
}

.temperature span:last-child {
  font-size: 32px;
  line-height: 1;
  color: var(--teal);
}

.condition {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
}

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

.metric,
.day {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.metric {
  min-height: 120px;
  padding: 22px;
}

.metric span,
.day span {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
}

.week-band {
  padding: 64px 0;
  background: #fff;
}

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

.forecast {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.day {
  min-height: 180px;
  padding: 20px;
}

.day strong {
  display: block;
  margin-top: 16px;
  font-size: 32px;
}

.day .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--sky);
  font-size: 24px;
}

.notice-band {
  padding: 48px 0 64px;
  background: #f8fbfa;
}

.notice {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 64px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 780px) {
  .topbar,
  .footer,
  .notice,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 52px;
  }

  .search-row,
  .current-grid,
  .metric-list,
  .forecast,
  .notice {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .metric,
  .day {
    min-height: auto;
  }
}
