:root {
  color-scheme: light;
  --ink: #102f35;
  --muted: #617077;
  --line: #d8e3e0;
  --paper: #f4fbf8;
  --card: #ffffff;
  --aqua: #087c82;
  --aqua-dark: #084b4f;
  --lagoon: #19a7a0;
  --sun: #f3b443;
  --coral: #d96843;
  --hibiscus: #c83f57;
  --leaf: #128a63;
  --sand: #fff4d8;
  --mint: #e9f7f2;
  --shadow: 0 18px 40px rgba(16, 47, 53, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(25, 167, 160, 0.12) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, #f0fbf9 0%, #fff8e7 48%, var(--paper) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.6rem 0.8rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(16, 47, 53, 0.12);
  background: rgba(244, 251, 248, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--aqua-dark), var(--lagoon));
  color: white;
  font-size: 0.78rem;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-links a,
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.62rem 0.8rem;
  text-decoration: none;
  font-weight: 800;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.nav-links a:hover,
.button.secondary {
  border-color: var(--line);
  background: white;
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--aqua), var(--leaf));
  color: white;
  box-shadow: 0 9px 20px rgba(8, 124, 130, 0.2);
}

.button.primary:hover {
  background: var(--aqua-dark);
}

.button.coral {
  background: linear-gradient(135deg, var(--coral), var(--hibiscus));
  color: white;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1rem 3rem;
}

.home-page .site-header {
  position: absolute;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(6, 38, 42, 0.46), rgba(6, 38, 42, 0.08));
  color: white;
}

.home-page .brand-mark {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.home-page .nav-links a {
  color: white;
}

.home-page .nav-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.home-page .page {
  max-width: none;
  padding: 0 0 3rem;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: stretch;
}

.home-page .hero {
  min-height: auto;
  display: block;
}

.intro-panel,
.calculator-panel,
.results-panel,
.content-panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.intro-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0 52%, rgba(255, 244, 216, 0.55) 100%),
    var(--card);
}

.home-page .intro-panel {
  min-height: 620px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--aqua-dark);
}

.intro-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 258px;
  height: 8px;
  background: linear-gradient(90deg, var(--lagoon), var(--sun), var(--coral), var(--leaf));
}

.home-page .intro-panel::after {
  top: auto;
  bottom: 0;
  height: 9px;
  background: linear-gradient(90deg, var(--lagoon), var(--sun), var(--coral), var(--hibiscus), var(--leaf));
}

.photo-strip {
  position: relative;
  margin: 0;
  min-height: 220px;
  background: var(--aqua-dark);
}

.home-page .photo-strip {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.home-page .photo-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 30, 34, 0.68), rgba(5, 30, 34, 0.22) 46%, rgba(5, 30, 34, 0.42)),
    linear-gradient(180deg, rgba(5, 30, 34, 0.2), rgba(5, 30, 34, 0.36));
}

.photo-strip img {
  display: block;
  width: 100%;
  height: 268px;
  object-fit: cover;
}

.home-page .photo-strip img {
  height: 100%;
  filter: saturate(1.08) contrast(1.02);
}

.photo-strip figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(8, 75, 79, 0.8);
  color: white;
  font-size: 0.78rem;
  box-shadow: 0 8px 24px rgba(8, 75, 79, 0.28);
}

.home-page .photo-strip figcaption {
  z-index: 1;
  left: auto;
  right: 1.4rem;
  bottom: 1.1rem;
  max-width: 24rem;
  background: rgba(4, 55, 60, 0.58);
  backdrop-filter: blur(10px);
}

.intro-copy {
  padding: 1.2rem;
}

.home-page .intro-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
  min-height: 620px;
  margin: 0 auto;
  padding: 9.5rem 1.5rem 7rem;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: white;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--aqua-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-page .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 4.15rem;
}

.home-page h1 {
  max-width: 780px;
  color: white;
  font-size: 5rem;
  font-weight: 800;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.02rem;
}

.lede {
  color: var(--muted);
  font-size: 1.04rem;
}

.home-page .lede {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.source-note {
  margin-top: 1rem;
  padding: 0.8rem;
  border-left: 4px solid var(--sun);
  background: var(--sand);
  color: #59441b;
  font-size: 0.92rem;
}

.home-page .source-note {
  max-width: 680px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 0;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  backdrop-filter: blur(12px);
}

.trip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.home-page .trip-tags {
  justify-content: center;
}

.trip-tags span {
  border: 1px solid rgba(8, 124, 130, 0.22);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  background: #eefbf6;
  color: var(--aqua-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.home-page .trip-tags span {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: white;
  backdrop-filter: blur(10px);
}

.tool-shell {
  display: grid;
  gap: 1rem;
}

.home-page .tool-shell {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: -86px auto 0;
  padding: 0 1rem;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  align-items: start;
}

.calculator-panel,
.results-panel,
.content-panel {
  padding: 1rem;
}

.calculator-panel {
  border-top: 5px solid var(--lagoon);
}

.results-panel {
  border-top: 5px solid var(--sun);
  background:
    linear-gradient(135deg, rgba(255, 244, 216, 0.72), rgba(255, 255, 255, 0.96) 42%),
    white;
}

.home-page .calculator-panel,
.home-page .results-panel {
  box-shadow: 0 24px 60px rgba(16, 47, 53, 0.18);
}

.home-page .calculator-panel {
  border-top: 0;
}

.home-page .results-panel {
  border-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  background: white;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

input:focus,
select:focus {
  outline: 3px solid rgba(25, 167, 160, 0.2);
  border-color: var(--lagoon);
}

.wide {
  grid-column: 1 / -1;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: linear-gradient(180deg, #effbf6, #e0f5ee);
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--lagoon), var(--sun), var(--coral));
}

.metric strong {
  display: block;
  font-size: 1.55rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.breakdown {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 9rem 1fr 6rem;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.bar-track {
  height: 0.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dfece8;
}

.bar-fill {
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--lagoon), var(--sun), var(--coral));
}

.recommendation {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(216, 104, 67, 0.24);
  background: linear-gradient(135deg, #fff0e8, #fff8dd);
  color: #633016;
  font-weight: 800;
}

.section {
  margin-top: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  position: relative;
  padding: 1rem;
  box-shadow: none;
  overflow: hidden;
  text-decoration: none;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--aqua), var(--sun), var(--coral));
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(16, 47, 53, 0.1);
}

.card p,
.content-panel p,
.content-panel li {
  color: var(--muted);
}

.quote-shortcuts {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.page > .quote-shortcuts {
  padding: 0;
}

.shortcut-intro {
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, rgba(25, 167, 160, 0.13), rgba(255, 244, 216, 0.78)),
    white;
}

.shortcut-intro p:last-child {
  max-width: 760px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.shortcut-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.shortcut-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 0.8rem;
  min-height: 250px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(8, 124, 130, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(233, 247, 242, 0.88)),
    white;
  box-shadow: 0 14px 34px rgba(16, 47, 53, 0.1);
  animation: shortcutCardGlow 5.8s ease-in-out infinite;
}

.shortcut-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--lagoon), var(--sun), var(--coral), var(--leaf));
}

.shortcut-card:nth-child(2) {
  animation-delay: 0.7s;
}

.shortcut-card:nth-child(3) {
  animation-delay: 1.4s;
}

.shortcut-kicker {
  color: var(--hibiscus);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shortcut-card p {
  margin: 0;
  color: var(--muted);
}

.shortcut-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.quote-shortcuts .button {
  box-shadow: 0 8px 18px rgba(8, 124, 130, 0.14), 0 0 0 rgba(25, 167, 160, 0);
  animation: shortcutButtonPulse 3.6s ease-in-out infinite;
}

.quote-shortcuts .button.secondary {
  animation-delay: 0.8s;
  box-shadow: 0 8px 18px rgba(243, 180, 67, 0.13), 0 0 0 rgba(243, 180, 67, 0);
}

@keyframes shortcutCardGlow {
  0%,
  100% {
    border-color: rgba(8, 124, 130, 0.18);
    box-shadow: 0 14px 34px rgba(16, 47, 53, 0.1), 0 0 0 rgba(25, 167, 160, 0);
  }

  50% {
    border-color: rgba(25, 167, 160, 0.34);
    box-shadow: 0 18px 40px rgba(16, 47, 53, 0.12), 0 0 26px rgba(25, 167, 160, 0.18);
  }
}

@keyframes shortcutButtonPulse {
  0%,
  100% {
    transform: translateY(0);
    filter: saturate(1);
  }

  50% {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 12px 26px rgba(8, 124, 130, 0.2), 0 0 22px rgba(25, 167, 160, 0.28);
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  color: var(--aqua-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1rem;
  color: var(--muted);
  background: linear-gradient(90deg, white, #fff8e7);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--muted);
  margin-left: 0.8rem;
}

@media (max-width: 980px) {
  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .home-page .tool-shell {
    grid-template-columns: 1fr;
    margin-top: -64px;
  }

  .home-page h1 {
    font-size: 4.2rem;
  }

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

  .shortcut-grid,
  .shortcut-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.2rem;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .nav-links a {
    padding: 0.48rem 0.55rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .page {
    padding-top: 0.75rem;
  }

  .home-page .page {
    padding-top: 0;
  }

  .home-page .intro-panel {
    min-height: 650px;
  }

  .home-page .intro-copy {
    min-height: 650px;
    padding: 8.6rem 1rem 6.6rem;
    align-content: end;
    text-align: left;
    justify-items: start;
  }

  .home-page .trip-tags {
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.35rem;
  }

  .home-page h1 {
    font-size: 3.05rem;
  }

  .home-page .lede {
    font-size: 1.02rem;
  }

  h2 {
    font-size: 1.45rem;
  }

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

  .quote-shortcuts {
    padding: 0;
  }

  .shortcut-card {
    min-height: 0;
  }

  .shortcut-actions .button {
    width: 100%;
    text-align: center;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .table {
    display: block;
  }

  .table tr {
    display: grid;
    gap: 0.15rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .table tr:first-child {
    display: none;
  }

  .table th,
  .table td {
    padding: 0.08rem 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .table td:first-child {
    color: var(--aqua-dark);
    font-weight: 900;
  }

  .photo-strip img {
    height: 230px;
  }

  .home-page .photo-strip img {
    height: 100%;
  }

  .home-page .photo-strip figcaption {
    left: 1rem;
    right: 1rem;
    bottom: 0.85rem;
    max-width: none;
  }

  .intro-panel::after {
    top: 220px;
  }

  .home-page .intro-panel::after {
    top: auto;
  }

  .home-page .tool-shell {
    margin-top: 0;
    padding-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shortcut-card,
  .quote-shortcuts .button {
    animation: none;
  }
}
