/* Adventurica: an outdoors look for mdsite. No framework, no web fonts. */
:root {
  --forest: #1d3a2f;
  --forest-2: #2c5443;
  --ember: #e8743b;
  --ember-dark: #c95a24;
  --sand: #f7f3ec;
  --paper: #ffffff;
  --ink: #1f2522;
  --muted: #5d6862;
  --line: #e4ddd0;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(29 58 47 / .10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgb(29 58 47 / .96); backdrop-filter: blur(6px);
  color: #fff;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font: 700 1.35rem/1 var(--serif); letter-spacing: .01em;
}
.brand:hover { color: inherit; }
.brand-mark { width: 28px; height: 28px; color: var(--ember); }
.mainnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mainnav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; opacity: .88;
}
.mainnav a:hover, .mainnav a[aria-current] { opacity: 1; background: rgb(255 255 255 / .12); color: #fff; }
.mainnav a.nav-cta { background: var(--ember); opacity: 1; margin-left: 6px; }
.mainnav a.nav-cta:hover { background: var(--ember-dark); }

/* Hero */
.hero {
  position: relative; color: #fff;
  background-size: cover; background-position: center;
  min-height: 46vh; display: flex; align-items: flex-end;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(10 20 16 / .15) 0%, rgb(10 20 16 / .35) 45%, rgb(10 20 16 / .78) 100%);
}
.hero-home { min-height: min(82vh, 760px); }
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 56px; width: 100%; }
.hero h1 {
  font: 700 clamp(2.2rem, 5.5vw, 4.2rem)/1.05 var(--serif);
  margin: 0 0 16px; max-width: 16ch; text-wrap: balance;
  text-shadow: 0 2px 18px rgb(0 0 0 / .3);
}
.hero-text { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 46ch; margin: 0 0 28px; opacity: .95; }
.kicker {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .3);
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* Buttons */
.button, .content button, .content a.button {
  display: inline-block; cursor: pointer;
  background: var(--ember); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 26px; font: 700 1rem/1.2 var(--sans); text-decoration: none;
  box-shadow: 0 6px 18px rgb(232 116 59 / .35); transition: background .15s, transform .15s;
}
.button:hover, .content button:hover { background: var(--ember-dark); color: #fff; transform: translateY(-1px); }
.button-ghost { background: transparent; box-shadow: none; border: 2px solid rgb(255 255 255 / .8); padding: 11px 24px; }
.button-ghost:hover { background: rgb(255 255 255 / .15); }

/* Content */
.content { padding-top: 56px; padding-bottom: 80px; }
.content.no-hero { padding-top: 48px; }
.content > * { max-width: 760px; }
.content > .grid, .content > table, .content > .wide { max-width: none; }
.content h1, .content h2, .content h3 { font-family: var(--serif); color: var(--forest); line-height: 1.15; text-wrap: balance; }
.content h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 24px; }
.content h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin: 56px 0 16px; }
.content h3 { font-size: 1.35rem; margin: 32px 0 10px; }
.content h2 + p, .content h1 + p { margin-top: 0; }
.content > p:first-of-type:not(:has(img)) { font-size: 1.15rem; color: var(--muted); }
.content strong { color: var(--forest); }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--ember); }
.content li > ul { margin-top: 4px; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.content img { border-radius: var(--radius); }

/* Grids from the Markdown: <div class="grid"> */
.grid {
  display: grid; gap: 24px; margin: 32px 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid > p { margin: 0; }
.grid > p > img, .grid > div > p > img:only-child {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow);
}
.grid > div > h2:first-child, .grid > div > h3:first-child { margin-top: 0; }
.grid > div { align-self: center; }
/* A grid cell with a linked heading is a card: trips on the home and trips pages */
.grid > div:has(> h2 > a, > h3 > a) {
  align-self: stretch; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; padding: 0 24px 24px;
}
.grid > div:has(> h2 > a, > h3 > a) > p:first-child { margin: 0 -24px 20px; }
.grid > div:has(> h2 > a, > h3 > a) > p:first-child > img { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.grid > div:has(> h2 > a, > h3 > a) h2, .grid > div:has(> h2 > a, > h3 > a) h3 { font-size: 1.5rem; margin: 0 0 8px; }
.grid > div:has(> h2 > a, > h3 > a) h2 a, .grid > div:has(> h2 > a, > h3 > a) h3 a { color: var(--forest); text-decoration: none; }
.grid > div:has(> h2 > a, > h3 > a) h2 + p strong, .grid > div:has(> h2 > a, > h3 > a) h3 + p strong {
  color: var(--ember-dark); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
}
.grid > div:has(> h2 > a, > h3 > a) > p:last-child { margin-top: auto; padding-top: 8px; }
.grid > div:has(> h2 > a, > h3 > a) > p:last-child > a:only-child {
  display: inline-block; background: var(--forest); color: #fff; text-decoration: none;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem;
}
.grid > div:has(> h2 > a, > h3 > a) > p:last-child > a:only-child:hover { background: var(--ember-dark); }

.grid.gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid.gallery { grid-template-columns: repeat(2, 1fr); } }

/* Tables */
.content table {
  width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--paper);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .97rem;
}
.content th, .content td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.content th { background: var(--forest); color: #fff; font-weight: 700; }
.content tr:last-child td { border-bottom: 0; }

/* Forms */
.content form {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; display: grid; gap: 6px; max-width: 640px;
}
.content label { font-weight: 700; color: var(--forest); font-size: .95rem; margin-top: 10px; }
.content input, .content textarea {
  width: 100%; font: inherit; color: inherit; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--sand);
}
.content input:focus, .content textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; background: #fff; }
.content textarea { min-height: 170px; resize: vertical; }
.content form button { justify-self: start; margin-top: 18px; }

/* Footer */
.footer { background: var(--forest); color: rgb(255 255 255 / .8); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { color: #fff; }
.footer p { margin: 10px 0 0; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { color: #fff; text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--ember); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .topbar { position: static; }
  .topbar-inner { min-height: 60px; flex-wrap: nowrap; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand-mark { width: 22px; height: 22px; }
  .mainnav { flex-wrap: nowrap; gap: 0; }
  .mainnav a { padding: 6px 8px; font-size: .88rem; }
  .mainnav a.nav-cta { padding: 6px 12px; margin-left: 4px; }
  .content form { padding: 22px; }
  .content th, .content td { padding: 10px 12px; }
}
