/* ============================================================
   Roam Colorado — Mesa Field Notes
   Relocation guide design system (screen)
   Shared parent system for Palisade, Grand Junction, Fruita.
   Only the location accents and location art change per guide.
   ============================================================ */

@import url("guide-fonts.css");

.guide {
  /* Core palette */
  --guide-canvas: #F2EBDD;
  --guide-paper: #FAF7F0;
  --guide-ink: #1B2622;
  --guide-juniper: #334D42;
  --guide-sage: #74806A;
  --guide-cottonwood: #AEB69A;
  --guide-river: #4F7B7E;
  --guide-rule: #D6CCBA;

  /* Defaults, overridden per location */
  --guide-accent: #74806A;
  --guide-accent-secondary: #4F7B7E;
  --guide-botanical: #74806A;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Reading column: definite, responsive max-width (~688px) rather than a
     font-dependent ch value, so the column can never shrink-wrap to
     min-content. Paired with width:100% on .guide-body below. */
  --guide-reading-width: 43rem;
  --guide-body-size: 1.1875rem;
  --guide-body-leading: 1.65;

  color: var(--guide-ink);
  background: var(--guide-canvas);
  font-family: var(--font-body);
  font-size: var(--guide-body-size);
  line-height: var(--guide-body-leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Safety net: the full-bleed divider breaks out with 100vw; clip prevents
     any sub-pixel horizontal overflow from a classic scrollbar. */
  overflow-x: clip;
}

/* Location accents ------------------------------------------------ */
.guide--palisade {
  --guide-accent: #D98A62;          /* Peach */
  --guide-accent-secondary: #5B4A5E; /* Grape */
  --guide-botanical: #74806A;        /* Mesa Sage */
}
.guide--grand-junction {
  --guide-accent: #4F7B7E;          /* River Blue */
  --guide-accent-secondary: #B76544; /* Canyon Clay */
  --guide-botanical: #AEB69A;        /* Cottonwood */
}
.guide--fruita {
  --guide-accent: #B76544;          /* Canyon Clay */
  --guide-accent-secondary: #C6A44B; /* Rabbitbrush Gold */
  --guide-botanical: #334D42;        /* Juniper */
}

/* ============================================================
   Cover
   ============================================================ */
.guide-cover {
  position: relative;
  overflow: hidden;
  background: var(--guide-juniper);
  isolation: isolate;
}
.guide-cover__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  z-index: -2;
}
.guide-cover::after {
  /* legible scrim so cover text sits on a calm area */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(27,38,34,0.20) 0%, rgba(27,38,34,0.10) 34%, rgba(27,38,34,0.62) 82%, rgba(27,38,34,0.86) 100%);
}
.guide-cover__inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 8rem) clamp(1.4rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
  min-height: clamp(30rem, 74vh, 46rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--guide-paper);
}
.guide-cover__kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--guide-paper);
  opacity: 0.92;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.guide-cover__kicker::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--guide-accent);
}
.guide-cover__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 7vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  max-width: 18ch;
  text-wrap: balance;
}
.guide-cover__dek {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 0 1.8rem;
  color: var(--guide-paper);
  opacity: 0.95;
}
.guide-cover__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: var(--guide-paper);
  opacity: 0.9;
}
.guide-cover__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.guide-cover__meta span + span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--guide-accent);
  margin-right: 0.6rem;
}

/* Download button ------------------------------------------------- */
.guide-download {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--guide-paper);
  color: var(--guide-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 6px 20px rgba(27,38,34,0.28);
}
.guide-download:hover { transform: translateY(-2px); background: #fff; }
.guide-download:focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 3px; }
.guide-download svg { width: 1.05rem; height: 1.05rem; }

/* ============================================================
   Body column
   ============================================================ */
.guide-body {
  width: 100%;               /* fill the container, then cap — never shrink-wrap */
  max-width: var(--guide-reading-width);
  margin-inline: auto;       /* centre the reading column */
  margin-block: 0;
  padding: clamp(2.75rem, 7vw, 5rem) clamp(1.25rem, 4vw, 1.5rem) 2rem;
}
.guide-body > * { margin-inline: auto; }

/* Lede — first paragraphs after the cover */
.guide-lede {
  font-size: 1.24rem;
  line-height: 1.6;
  color: #26332d;
}
.guide-lede .guide-p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  float: left;
  font-size: 3.6em;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  color: var(--guide-accent);
}

.guide-p { margin: 0 0 1.15rem; }
.guide-p a,
.guide-inline-link {
  color: var(--guide-ink);
  text-decoration: underline;
  text-decoration-color: var(--guide-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.guide-p a:hover { text-decoration-color: var(--guide-ink); }

/* Section --------------------------------------------------------- */
.guide-section { margin-top: clamp(2.4rem, 5vw, 3.5rem); }
.guide-section__label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--guide-accent-secondary);
  margin-bottom: 0.5rem;
}
.guide-section__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--guide-accent);
  letter-spacing: 0;
}
.guide-section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

/* Pull quote ------------------------------------------------------ */
.guide-pullquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.3;
  color: var(--guide-juniper);
  margin: clamp(2rem, 4vw, 2.75rem) 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--guide-accent);
  text-wrap: pretty;
}

/* Resource list --------------------------------------------------- */
.guide-resources {
  background: var(--guide-paper);
  border: 1px solid var(--guide-rule);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin: 1.6rem 0 1.6rem;
}
.guide-resources__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--guide-sage);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.guide-resources__label::before {
  content: "";
  width: 0.65rem; height: 0.65rem;
  border: 2px solid var(--guide-accent);
  border-radius: 50%;
}
.guide-resource {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.65rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--guide-rule);
}
.guide-resource:first-of-type { border-top: 0; padding-top: 0; }
.guide-resource__name {
  font-weight: 650;
  color: var(--guide-ink);
}
.guide-resource__link {
  font-size: 0.92rem;
  color: var(--guide-accent-secondary);
  text-decoration: underline;
  text-decoration-color: var(--guide-accent);
  text-underline-offset: 2px;
  word-break: break-word;
}
.guide-resource__link:hover { text-decoration-color: var(--guide-ink); color: var(--guide-ink); }

/* Checklist ------------------------------------------------------- */
.guide-checklist-wrap {
  background: var(--guide-juniper);
  color: var(--guide-paper);
  border-radius: 16px;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 1.8rem 0;
}
.guide-checklist-wrap .guide-section__label { color: var(--guide-cottonwood); }
.guide-checklist-wrap .guide-section__num { color: var(--guide-accent); }
.guide-checklist-wrap .guide-section__title { color: var(--guide-paper); }
.guide-checklist {
  list-style: none;
  counter-reset: chk;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.guide-checklist li {
  counter-increment: chk;
  position: relative;
  padding-left: 2.6rem;
  line-height: 1.5;
  font-size: 1.02rem;
}
.guide-checklist li::before {
  content: counter(chk);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--guide-ink);
  background: var(--guide-accent);
  border-radius: 50%;
}

/* Landscape divider ---------------------------------------------- */
.guide-divider {
  margin: clamp(2.75rem, 6vw, 4.5rem) calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}
.guide-divider img {
  display: block;
  width: 100%;
  height: clamp(15rem, 38vw, 30rem);
  object-fit: cover;
  object-position: center 55%;
}
.guide-divider figcaption {
  max-width: var(--guide-reading-width);
  margin: 0.75rem auto 0;
  padding: 0 1.4rem;
  font-size: 0.85rem;
  color: var(--guide-sage);
  letter-spacing: 0.02em;
}

/* Verdict — "Who X is right for" closing ------------------------- */
.guide-verdict {
  position: relative;
  background: var(--guide-paper);
  border: 1px solid var(--guide-rule);
  border-radius: 18px;
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-top: clamp(2.6rem, 5vw, 3.5rem);
  overflow: hidden;
}
.guide-verdict .guide-section__title { margin-bottom: 1rem; }
.guide-verdict > * { position: relative; z-index: 1; }
.guide-verdict .guide-p:last-child { margin-bottom: 0; max-width: 46ch; }

/* Byline ---------------------------------------------------------- */
.guide-byline {
  max-width: var(--guide-reading-width);
  margin: clamp(2.2rem, 5vw, 3rem) auto 0;
  padding: 1.5rem 1.4rem 0;
  border-top: 1px solid var(--guide-rule);
  font-size: 0.95rem;
  color: var(--guide-sage);
}
.guide-byline strong { color: var(--guide-ink); font-weight: 700; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .guide-cover__inner { min-height: 26rem; }
  .guide-divider img { height: 14rem; }
}

/* ============================================================
   Field Card system  (Roam Colorado Field Card Website Kit)
   Expanded tokens + wider intro + data-driven scenic card grid.
   Adapted to the existing guide architecture: reuses the guide
   tokens, resource, pull-quote and checklist components; the art
   sits behind a warm-paper copy panel so protected multi-paragraph
   copy stays fully readable at any length.
   ============================================================ */
.guide {
  /* expanded card palette (kit section 5) */
  --roam-deep-pine: #203B35;
  --roam-dusty-rose: #C98172;
  --roam-slate-blue: #65858A;
  --roam-pale-sky: #D6E0D7;
  --roam-sandstone: #C9A778;
  --roam-sunwash: #E8C98B;
  --roam-magenta-bloom: #B85F72;

  /* layout + card tokens (kit sections 7 / design-tokens.css) */
  --guide-outer-width: 1180px;
  --field-grid-width: 1240px;
  --intro-reading-width: 960px;
  --field-card-radius: 32px;
  --field-card-min-height: 560px;
  --field-card-gap: clamp(24px, 3vw, 32px);
  --field-card-shadow: 0 20px 44px rgba(27, 38, 34, 0.16);
  --field-card-shadow-hover: 0 26px 54px rgba(27, 38, 34, 0.24);
  --field-card-transition: 220ms ease;
}

.guide-flow { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

/* Wider introduction block --------------------------------------- */
.guide-intro {
  width: min(calc(100% - 40px), var(--guide-outer-width));
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
}
.guide-intro__copy {
  width: 100%;
  max-width: var(--intro-reading-width);
  margin-inline: auto;
  font-size: 1.1875rem;
  line-height: 1.7;
}
.guide-intro__copy .guide-p { margin: 0 0 1.2rem; }
.guide-intro__copy .guide-p:last-child { margin-bottom: 0; }

/* Field Note card grid ------------------------------------------- */
.field-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--field-card-gap);
  width: min(calc(100% - 40px), var(--field-grid-width));
  margin-inline: auto;
}
.field-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: var(--field-card-min-height);
  overflow: hidden;
  border: 1px solid rgba(27, 38, 34, 0.10);
  border-top: 4px solid var(--card-accent, var(--guide-accent));
  border-radius: var(--field-card-radius);
  background: var(--guide-paper);
  box-shadow: var(--field-card-shadow);
  color: var(--guide-ink);
  transition: transform var(--field-card-transition), box-shadow var(--field-card-transition);
}
/* Copy sits on solid Warm Paper (always readable, any length);
   the scenic illustration is an anchored footer band that melts into
   the paper via a soft top mask. Protected copy can grow the card. */
.field-card__content {
  display: flex;
  flex: 0 0 auto;                       /* natural height; the art band fills the rest */
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px) clamp(14px, 1.8vw, 20px);
}
.field-card__art {
  order: 2;
  flex: 1 1 0;                          /* basis 0 so the band floors at min-height, then
                                           grows to fill leftover row height (more scenery
                                           on short cards, even rows, no dead space) */
  width: 100%;
  min-height: clamp(200px, 24vh, 264px);
  object-fit: cover;                    /* normalize related portrait ratios, no destructive crop */
  object-position: center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px);
  mask-image: linear-gradient(180deg, transparent 0, #000 40px);
}
.field-card__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-accent, var(--guide-accent-secondary));
}
.field-card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2.05rem);
  font-weight: 600;
  line-height: 1.09;
  color: var(--guide-ink);
}
.field-card__description { font-size: 1.0625rem; line-height: 1.55; }
.field-card__description .guide-p { margin: 0 0 0.85rem; }
.field-card__description .guide-p:last-child { margin-bottom: 0; }
.field-card__description .guide-pullquote {
  font-size: 1.28rem;
  margin: 1rem 0;
  padding-left: 1rem;
}
.field-card__description .guide-resources {
  margin: 1rem 0 0;
  background: rgba(255, 255, 255, 0.55);
}

/* accent rotation, kept inside the one Roam family */
.field-card[data-accent="primary"]   { --card-accent: var(--guide-accent); }
.field-card[data-accent="secondary"] { --card-accent: var(--guide-accent-secondary); }
.field-card[data-accent="botanical"] { --card-accent: var(--guide-botanical); }

.field-card:focus-within {
  box-shadow: var(--field-card-shadow-hover);
  outline: 2px solid var(--card-accent, var(--guide-accent));
  outline-offset: 2px;
}
/* Visible keyboard focus + comfortable tap area for in-card links */
.field-card__description .guide-resource__link,
.field-card__description .guide-inline-link {
  display: inline-block;
  padding-block: 5px;
}
.field-card a:focus-visible,
.guide-resource__link:focus-visible,
.guide-inline-link:focus-visible {
  outline: 3px solid var(--roam-sunwash);
  outline-offset: 2px;
  border-radius: 4px;
  text-decoration-color: var(--guide-ink);
}

@media (hover: hover) and (pointer: fine) {
  .field-card:hover { transform: translateY(-4px); box-shadow: var(--field-card-shadow-hover); }
}

/* Checklist + byline align to the grid width --------------------- */
.guide-checklist-block {
  width: min(calc(100% - 40px), var(--field-grid-width));
  margin-inline: auto;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.guide-flow .guide-byline {
  width: min(calc(100% - 40px), var(--field-grid-width));
  max-width: none;
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Responsive breakpoints (kit section 7) ------------------------- */
@media (max-width: 1099px) {
  .field-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .field-card-grid {
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 32px), var(--field-grid-width));
  }
  .guide-intro {
    width: min(calc(100% - 32px), var(--guide-outer-width));
    padding: 2rem 1.5rem;
  }
  .field-card { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .field-card { transition: none; }
  .field-card:hover { transform: none; }
}

/* Print: cards stay whole, text stays readable ------------------- */
@media print {
  .site-header, .mobile-nav, .site-footer, .shelley-cta,
  .guide-cover, .guide-download, .contact-modal { display: none !important; }
  .guide-intro { padding: 0 0 12pt; width: 100%; }
  .field-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
  }
  .field-card {
    min-height: 0;
    box-shadow: none;
    border-color: #cfc6b4;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .field-card__content { flex: 0 0 auto; }
  .field-card__art { flex: 0 0 auto; height: 120px; min-height: 0; order: 2; margin-top: 10px; border-radius: 8px; }
  .field-card__copy { background: #fff; box-shadow: none; }
  .field-card__description { font-size: 10.5pt; }
  .guide-checklist-wrap, .guide-checklist li { break-inside: avoid; }
}
