:root {
  color-scheme: dark;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0b141f;
  color: #edf5fc;
  --muted: #b1c1d0;
  --accent: #91eed8;
  --line: #304356;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
.frame { width: min(68rem, calc(100% - 3rem)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #34495b;
  background: #0e1b28;
}

.header-inner {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}

.wordmark { font-size: 1.06rem; font-weight: 680; letter-spacing: -.018em; }
.wordmark > span { color: var(--accent); margin-left: .16em; }

.weather-mark {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: .22rem;
  width: 1.75rem;
  height: 1.75rem;
  rotate: -16deg;
}

.weather-mark i {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.weather-mark i:nth-child(2) { width: 82%; }
.weather-mark i:last-child { width: 46%; }

.hero {
  background-color: #193044;
  background-image:
    linear-gradient(90deg, #08121df5 0%, #091521b8 49%, #10203320 100%),
    linear-gradient(0deg, #0b141f 0%, #0b141f00 48%),
    url('blue-ridge-weather.jpg'),
    linear-gradient(145deg, #264459, #375a69 60%, #162936);
  background-position: center, center, center 55%, center;
  background-size: cover;
}

.hero-inner {
  min-height: clamp(19rem, 43vw, 29rem);
  display: grid;
  align-content: center;
  padding-block: 4rem 5rem;
}

.hero h1 {
  font-size: clamp(3.15rem, 8vw, 6.2rem);
  font-weight: 660;
  letter-spacing: -.067em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero p {
  max-width: 34ch;
  margin-top: 1.25rem;
  color: #dbe7f1;
  font-size: clamp(1.05rem, 2.45vw, 1.35rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.tools { margin-top: -1.2rem; padding-bottom: 4rem; position: relative; }
.tools > h2 { font-size: 1.2rem; font-weight: 650; margin-bottom: .95rem; color: #dce8f1; }

.tool-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  min-height: 9rem;
  max-width: 54rem;
  padding: 1.55rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(120deg, #172838, #12202e 72%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 .8rem 2rem #080f183d;
}

.tool-link:hover { border-color: #6eb4ab; }
.tool-link:focus-visible { outline: 2px solid var(--accent); outline-offset: .3rem; }

.profile-mark {
  display: grid;
  align-content: center;
  gap: .3rem;
  width: 3.5rem;
  height: 3.5rem;
  padding-inline: .8rem;
  border-radius: .7rem;
  border: 1px solid #305b5d;
  background: #193b41;
}

.profile-mark i { height: 2px; border-radius: 2px; background: var(--accent); }
.profile-mark i:nth-child(2) { width: 86%; }
.profile-mark i:nth-child(3) { width: 58%; }
.profile-mark i:last-child { width: 33%; }

.tool-copy h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); line-height: 1.2; letter-spacing: -.024em; }
.tool-copy p { color: var(--muted); margin-top: .5rem; max-width: 48ch; line-height: 1.6; }

.tool-button {
  display: inline-block;
  padding: .7rem .95rem;
  white-space: nowrap;
  border-radius: .45rem;
  background: var(--accent);
  color: #102721;
  font-weight: 680;
  font-size: .95rem;
}

.tool-link:hover .tool-button { background: #aff6e5; }

@media (max-width: 42rem) {
  .frame { width: calc(100% - 2rem); }
  .hero { background-position: center, center, 60% center, center; }
  .tool-link { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1.15rem; }
  .tool-copy { grid-row: 1; grid-column: 1 / -1; }
  .profile-mark { display: none; }
  .tool-button { grid-column: 1; justify-self: start; }
}
