:root {
  --page: #ffffff;
  --ink: #223b3e;
  --muted: #72817f;
  --shell: #fbf7f0;
  --foam: #edf7f5;
  --ocean: #167078;
  --ocean-deep: #113f47;
  --sun: #d99b46;
  --coral: #c86f5a;
  --leaf: #317966;
  --line: rgba(34, 59, 62, 0.15);
  --shadow: 0 16px 32px rgba(34, 59, 62, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.88)),
    url("images/DSCF0010.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

button,
input {
  font: inherit;
}

.site-header {
  background: #ffffff;
}

.nav-bar {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.brand {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink);
}

.app-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 620px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  color: #fffdf8;
  background:
    linear-gradient(90deg, rgba(18, 57, 63, 0.76), rgba(18, 57, 63, 0.28) 38%, rgba(18, 57, 63, 0.02) 66%),
    linear-gradient(180deg, rgba(18, 57, 63, 0.02), rgba(18, 57, 63, 0.24)),
    url("images/hero-island-hands.png");
  background-position: center, center, left -10% center;
  background-repeat: no-repeat;
  background-size: auto, auto, 112% auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 253, 248, 0.5);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 450px;
  text-shadow: 0 2px 18px rgba(17, 63, 71, 0.28);
}

.hero .eyebrow {
  color: #fffdf8;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sun);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.4vw, 5.7rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  max-width: 460px;
  margin-bottom: 0;
  font-size: clamp(1rem, 2vw, 1.16rem);
  color: rgba(255, 253, 248, 0.94);
}

.tracker {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 44px;
}

.search-panel,
.weather-panel {
  border: 1px solid var(--line);
  background: #ffffff;
}

.search-panel {
  overflow: hidden;
}

.panel-heading {
  padding: 24px 24px 12px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.weather-panel .eyebrow,
.panel-heading .eyebrow,
.rating-label,
.metric-card span {
  color: var(--ocean);
}

label {
  display: block;
  padding: 4px 24px 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

input {
  width: calc(100% - 48px);
  min-height: 44px;
  margin: 0 24px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  transition:
    border-color 160ms ease,
    outline-color 160ms ease;
}

input:focus {
  border-color: var(--ocean);
  outline: 3px solid rgba(22, 112, 120, 0.16);
}

.beach-list {
  display: grid;
  border-top: 1px solid var(--line);
  background: var(--shell);
}

.beach-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    padding-left 160ms ease;
}

.beach-button:last-child {
  border-bottom: 0;
}

.beach-button:hover {
  color: var(--ocean-deep);
  background: #ffffff;
  padding-left: 30px;
}

.beach-button.active {
  color: #ffffff;
  background: var(--ocean);
}

.empty-list {
  margin: 0;
  padding: 16px 24px;
  color: var(--muted);
}

.weather-panel {
  min-height: 520px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--shell);
}

.selected-location {
  margin: 10px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

button {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

button:hover {
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(217, 155, 70, 0.28);
  outline-offset: 2px;
}

.status-message {
  margin: 26px 30px;
  border: 1px solid rgba(22, 112, 120, 0.22);
  padding: 14px 16px;
  color: var(--ink);
  background: var(--foam);
}

.status-message.error {
  border-color: rgba(200, 111, 90, 0.45);
  color: #7c3429;
  background: #fff1ed;
}

.weather-content {
  padding: 24px 30px 30px;
}

.rating-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(230px, 1.35fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(34, 59, 62, 0.06);
}

.rating-copy {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.rating-label {
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rating-card h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.9;
}

.rating-card.great {
  border-top: 5px solid var(--leaf);
}

.rating-card.okay {
  border-top: 5px solid var(--sun);
}

.rating-card.not-ideal {
  border-top: 5px solid var(--coral);
}

.rating-card.great h3 {
  color: var(--leaf);
}

.rating-card.okay h3 {
  color: #95621f;
}

.rating-card.not-ideal h3 {
  color: var(--coral);
}

.rating-card p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: #526967;
}

.rating-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.rating-reasons li {
  border: 1px solid rgba(200, 111, 90, 0.25);
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #7c3429;
  background: #fff1ed;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
}

.metric-card {
  min-height: 124px;
  border-right: 1px solid var(--line);
  padding: 17px;
  background: #ffffff;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card:nth-child(2n) {
  background: #fbf7f0;
}

.metric-card:hover {
  transform: translateY(-2px);
  background: var(--foam);
}

.metric-card span {
  display: block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--ocean-deep);
}

.uv-warning {
  margin-top: 16px;
  border: 1px solid rgba(22, 112, 120, 0.22);
  padding: 14px 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--foam);
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: var(--muted);
}

@media (max-width: 850px) {
  .app-shell {
    width: min(100% - 22px, 680px);
    padding: 24px 0 44px;
  }

  .hero {
    min-height: 500px;
    background-position: center, center, left -60px center;
    background-size: auto, auto, auto 100%;
  }

  .tracker {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }

  .panel-top {
    flex-direction: column;
  }

  .rating-card {
    grid-template-columns: 1fr;
  }

  .rating-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    padding-left: 0;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .metric-card {
    border-bottom: 1px solid var(--line);
  }

  .metric-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 460px) {
  .app-shell {
    width: min(100% - 16px, 680px);
  }

  .hero {
    min-height: 430px;
    padding: 28px 24px;
    background-position: center, center, left -92px center;
    background-size: auto, auto, auto 100%;
  }

  .panel-top,
  .weather-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    border-right: 0;
  }
}
