/* PG Consulting, "Forest": system fonts, spruce green, light and dark. */

:root,
[data-bs-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --text: #162019;
  --muted: #5a675e;
  --line: #dfe4dc;
  --brand: #1d5c3b;
  --brand-strong: #134028;
  --brand-soft: rgba(29, 92, 59, 0.08);
  --on-brand: #ffffff;
  --accent: #b7791f;
  --cold: #2f6f9f;
  --tree-1: #1d5c3b;
  --tree-2: #4f8f69;
  --tree-3: #9cc3a9;
  --shadow: 0 1px 2px rgba(22, 32, 25, 0.05), 0 8px 24px -12px rgba(22, 32, 25, 0.18);
}
[data-bs-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1310;
  --surface: #151c17;
  --text: #e3eae4;
  --muted: #95a399;
  --line: #26312a;
  --brand: #74d19b;
  --brand-strong: #a6e6c1;
  --brand-soft: rgba(116, 209, 155, 0.1);
  --on-brand: #0e1310;
  --accent: #f0b35a;
  --cold: #85b8e0;
  --tree-1: #74d19b;
  --tree-2: #3f8a60;
  --tree-3: #24513a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1 0 auto;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}
a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--brand-strong);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow {
  max-width: 46rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--surface);
  padding: 0.5rem 1rem;
}
.logo {
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  color: var(--brand);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover {
  color: var(--text);
}
.brand:hover .logo {
  transform: rotate(-4deg);
}
.brand .logo {
  transform-origin: 50% 100%;
  transition: transform 0.3s ease;
}
.site-nav {
  display: none;
  gap: 0.25rem;
}
.site-nav a,
.menu-panel a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.site-nav a:hover,
.menu-panel a:hover {
  color: var(--text);
  background: var(--brand-soft);
}
.site-nav a[aria-current="page"],
.menu-panel a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}
.theme-switch {
  display: flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.theme-switch button {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch button:hover {
  color: var(--text);
}
.theme-switch button.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.theme-switch svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-switch svg .fill {
  fill: currentColor;
}

/* Phone menu: a <details>, so it works without JavaScript */
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  display: grid;
  gap: 4px;
  place-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu[open] summary span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu[open] summary span:nth-child(2) {
  opacity: 0;
}
.menu[open] summary span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  display: grid;
  min-width: 12rem;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.menu-panel a {
  border-radius: 0.6rem;
  padding: 0.55rem 0.8rem;
}
@media (min-width: 56rem) {
  .site-nav {
    display: flex;
  }
  .menu {
    display: none;
  }
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.button.primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--on-brand);
}

/* Home */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(50rem 26rem at 85% 10%, var(--brand-soft), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .hero {
    padding: 6rem 0 5rem;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
}
.eyebrow a {
  color: inherit;
  text-decoration: none;
}
.eyebrow a:hover {
  text-decoration: underline;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
}
.hero h1 .accent {
  color: var(--brand);
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
  max-width: 36em;
}
.binary {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.hero-art svg {
  display: block;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}
.tree {
  stroke-width: 6;
  stroke-linejoin: round;
}
.t1 {
  fill: var(--tree-1);
  stroke: var(--tree-1);
}
.t2 {
  fill: var(--tree-2);
  stroke: var(--tree-2);
}
.t3 {
  fill: var(--tree-3);
  stroke: var(--tree-3);
}
.ground {
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
}

.section {
  padding-top: 4rem;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  font-size: 1.75rem;
  margin: 0;
}
.section-head p {
  margin: 0;
}
.tiles {
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tile {
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover {
  color: var(--text);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.tile h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  display: flex;
  justify-content: space-between;
}
.tile .arrow {
  color: var(--brand);
  transition: transform 0.15s ease;
}
.tile:hover .arrow {
  transform: translateX(3px);
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  gap: 1rem;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  background: var(--line);
}
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery a:hover img {
  transform: scale(1.03);
}
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1rem 0.8rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: 1.12fr 1fr;
  }
  .gallery figure:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Pages */
.page-head {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
  background: radial-gradient(40rem 16rem at 90% 0%, var(--brand-soft), transparent 70%);
}
.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin: 0;
}
.page-head .lede {
  margin-top: 0.75rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}
.prose h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}
.prose ul {
  padding-left: 1.25rem;
}
.prose li::marker {
  color: var(--brand);
}
.prose del {
  color: var(--muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.specs thead {
  display: none;
}
.specs table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.specs td {
  padding: 0.75rem 1.25rem;
}
.specs tr:last-child td {
  border-bottom: 0;
}
.specs td:first-child {
  width: 34%;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}
.video {
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
}
.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cards (weather) */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

/* Weather */
.weather .page-head {
  margin-bottom: 2rem;
}
.weather-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 60rem) {
  .weather-grid {
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: start;
  }
  .weather-places {
    position: sticky;
    top: 5.5rem;
  }
}
.weather-places h2,
.w-section h2 {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.weather-places ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
@media (min-width: 60rem) {
  .weather-places ul {
    display: grid;
    gap: 0.1rem;
  }
}
.weather-places a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}
@media (min-width: 60rem) {
  .weather-places a {
    display: flex;
    border-color: transparent;
    background: none;
    border-radius: 0.6rem;
  }
}
.weather-places a:hover {
  background: var(--brand-soft);
}
.weather-places a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}
.pin {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.is-cold {
  color: var(--cold);
}
.w-icon {
  display: block;
  flex: 0 0 auto;
}
.w-now {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 40rem) {
  .w-now {
    grid-template-columns: auto 1fr;
    padding: 2rem;
  }
}
.w-now-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.w-now-icon {
  width: 112px;
  height: 112px;
  margin: -0.5rem 0 -0.5rem -0.5rem;
}
.w-now-temp {
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}
.w-now-desc {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
}
.w-now-feel {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}
.w-now-feel:empty {
  display: none;
}
.w-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
  font-size: 0.95rem;
}
.w-facts div {
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}
.w-facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.w-facts dd {
  margin: 0.15rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.w-arrow {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.w-section {
  margin-bottom: 2.5rem;
}
.w-hours {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.w-hours li {
  flex: 0 0 3.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.9rem 0 0.25rem;
  scroll-snap-align: start;
}
.w-hours li + li {
  border-left: 1px solid var(--line);
}
.w-h-time {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.w-h-temp {
  font-size: 1.1rem;
  font-weight: 700;
}
.w-h-rain {
  font-size: 0.75rem;
  color: var(--cold);
  min-height: 1.1em;
}
.w-days {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem;
}
.w-days li {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1.3fr) 40px 2.5rem minmax(3rem, 2fr) 2.5rem;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.7rem 0;
}
.w-days li + li {
  border-top: 1px solid var(--line);
}
.w-d-name {
  font-weight: 650;
  line-height: 1.2;
}
.w-d-name small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}
.w-d-min,
.w-d-max {
  font-variant-numeric: tabular-nums;
}
.w-d-min {
  text-align: right;
  color: var(--muted);
}
.w-d-min.is-cold {
  color: var(--cold);
}
.w-d-max {
  font-weight: 700;
}
.w-d-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--brand-soft);
}
.w-d-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cold), var(--accent));
}
.w-d-rain,
.w-d-wind {
  font-size: 0.8rem;
  white-space: nowrap;
  grid-column: 3 / -1;
  grid-row: 2;
}
.w-d-rain {
  color: var(--cold);
  justify-self: start;
}
.w-d-wind {
  color: var(--muted);
  justify-self: end;
}
@media (min-width: 40rem) {
  .w-days li {
    grid-template-columns: 9rem 40px 2.5rem minmax(4rem, 1fr) 2.5rem 4.5rem 4rem;
  }
  .w-d-rain,
  .w-d-wind {
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
  }
}
.w-credit a {
  color: inherit;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  gap: 1.5rem 3rem;
}
@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.5fr 2fr 1fr;
    align-items: start;
  }
}
.footer-grid p {
  margin: 0.5rem 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover {
  color: var(--brand);
}
@media (min-width: 48rem) {
  .footer-meta {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
