:root {
  color-scheme: light;
  --bg: #f4efe7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --text: #16202b;
  --muted: #5a6875;
  --accent: #0f7c6a;
  --accent-strong: #0a5d50;
  --border: rgba(22, 32, 43, 0.12);
  --shadow: 0 20px 60px rgba(26, 36, 48, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 124, 106, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(194, 119, 29, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, #efe6d8 100%);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header,
.page-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-link {
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

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

h1 {
  margin-bottom: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

h3 {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.site-nav a {
  color: var(--muted);
  margin-left: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav,
.nav-auth,
.nav-account,
.nav-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav-auth {
  margin-left: auto;
}

.nav-form {
  margin: 0;
}

.nav-login {
  min-height: 3.2rem;
  min-width: 7rem;
  padding: 0.92rem 1.55rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(15, 124, 106, 0.18);
}

.nav-account {
  position: relative;
}

.nav-account summary {
  list-style: none;
}

.nav-account summary::-webkit-details-marker {
  display: none;
}

.nav-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.65rem 0.95rem 0.65rem 1rem;
  border: 1px solid rgba(15, 124, 106, 0.22);
  border-radius: 999px;
  background: rgba(15, 124, 106, 0.1);
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(26, 36, 48, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav-account-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 124, 106, 0.35);
  background: rgba(15, 124, 106, 0.14);
}

.nav-account-caret {
  font-size: 0.8rem;
  line-height: 1;
}

.nav-account-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 12rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 34px rgba(26, 36, 48, 0.16);
  z-index: 20;
}

.nav-account:not([open]) .nav-account-menu {
  display: none;
}

.nav-account-action {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-account-action:hover {
  background: rgba(15, 124, 106, 0.08);
  color: var(--accent-strong);
}

.site-nav a:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.page-shell {
  padding: 1rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hero h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 1rem;
  max-width: 12ch;
}

.hero-copy,
.feature-grid p,
.next-steps li,
.hero-card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(26, 36, 48, 0.12);
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.45);
}

.todo-toggle {
  width: 2.25rem;
  min-width: 2.25rem;
  padding: 0;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1;
}

.todo-toggle--active {
  background: rgba(15, 124, 106, 0.12);
  border-color: rgba(15, 124, 106, 0.35);
  color: var(--accent-strong);
}

.auth-card {
  max-width: 420px;
}

.hero-card,
.feature-grid article,
.next-steps {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(26, 36, 48, 0.14);
}

.hero-card {
  padding: 1.5rem;
}

.hero-card ul,
.next-steps ol {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-grid article,
.next-steps {
  padding: 1.35rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.1rem;
}

.stats-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

a.stat-card:hover {
  border-color: rgba(15, 124, 106, 0.3);
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
}

.stat-card span {
  color: var(--muted);
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-heading p {
  color: var(--muted);
}

.page-note {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-stack {
  display: grid;
  gap: 0.8rem;
}

.list-card,
.form-card,
.detail-card {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.list-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.list-card--compact {
  padding: 1rem 1.1rem;
}

.card-link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

.card-link + div,
.card-link + div + .button,
.card-link + .card-chip {
  position: relative;
  z-index: 2;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 124, 106, 0.1);
  color: var(--accent-strong);
  font-size: 0.88rem;
  white-space: nowrap;
}

.actions-row,
.inline-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.actions-row {
  justify-content: flex-end;
}

.inline-form {
  flex-wrap: nowrap;
}

.inline-form input {
  min-width: 14rem;
}

.button.danger {
  background: #8a2e2e;
  color: white;
  border-color: transparent;
}

.form-card {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-field input {
  margin: 0;
}

.form-section {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.58);
}

.form-section legend {
  padding: 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text);
}

.field-help {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: white;
  color: var(--text);
}

.choice-card input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex: none;
}

.choice-card strong {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.95rem;
}

.choice-card small {
  display: block;
  color: var(--muted);
  line-height: 1.3;
  font-size: 0.82rem;
}

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

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

input,
select,
textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  background: white;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(15, 124, 106, 0.35);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 124, 106, 0.12);
}

select[multiple] {
  min-height: 10rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-grid--stats {
  margin-top: 1rem;
}

.detail-list {
  display: grid;
  gap: 0.8rem;
}

.detail-list div {
  display: grid;
  gap: 0.2rem;
}

.detail-list dt {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
}

.table-list {
  display: grid;
  gap: 0.7rem;
}

.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(15, 124, 106, 0.05);
}

.table-row span {
  color: var(--text);
}

.table-row strong {
  color: var(--accent-strong);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-card {
  margin: 0;
}

.photo-card--button {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
}

.photo-card__caption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.photo-carousel {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.photo-carousel__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 18, 25, 0.74);
  cursor: zoom-out;
}

.photo-carousel__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: min(900px, calc(100vw - 4rem));
  height: min(95vh, calc(100vh - 3rem));
  margin: 0;
  padding: 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border-radius: 1.5rem;
  background: rgba(245, 239, 230, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.photo-carousel__topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.photo-carousel__title {
  color: var(--accent-strong);
  display: inline-block;
  margin-left: 1rem;
  font-weight: 700;
  font-size: 1rem;
}

.photo-carousel__close {
  grid-column: auto;
  grid-row: auto;
  justify-self: end;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 124, 106, 0.12);
  color: var(--accent-strong);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.photo-carousel__figure {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.photo-carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
}

.photo-carousel__caption,
.photo-carousel__meta {
  color: var(--text);
  text-align: center;
}

.photo-carousel__caption {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  max-width: calc(100% - 1.5rem);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(8px);
  font-size: 0.92rem;
}

.photo-carousel__meta {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 124, 106, 0.1);
}

.photo-carousel__nav {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 124, 106, 0.12);
  color: var(--accent-strong);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.photo-carousel__nav--prev {
  grid-column: 1;
  grid-row: 2;
}

.photo-carousel__nav--next {
  grid-column: 3;
  grid-row: 2;
}

body.carousel-open {
  overflow: hidden;
}

.next-steps {
  margin-top: 1rem;
}

.detail-grid + .detail-card {
  margin-top: 1rem;
}

.canyon-table-card {
  overflow: hidden;
  padding: 0;
}

.canyon-table {
  width: 100%;
  border-collapse: collapse;
}

.canyon-table th,
.canyon-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(22, 32, 43, 0.1);
  vertical-align: middle;
}

.canyon-table thead th {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: rgba(15, 124, 106, 0.04);
}

.canyon-table th a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.canyon-table tbody tr:hover {
  background: rgba(15, 124, 106, 0.04);
}

.canyon-table td:last-child,
.canyon-table th:last-child {
  text-align: right;
}

.canyon-table .button {
  min-height: 2.4rem;
  padding-inline: 0.9rem;
}

@media (max-width: 860px) {
  .hero,
  .feature-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading,
  .list-card,
  .detail-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}
