/* ==========================================================================
   The Adventure Box — brand pack theme
   --------------------------------------------------------------------------
   An optional skin over app.css, for comparing against Ink & Oak. Everything
   here is a token override plus the handful of components that only exist when
   there is brand photography to place; the layout is untouched.

   Turn it on with BRAND_THEME=adventure. When one of the two wins, fold the
   winner into app.css and delete the other.

   Colours are sampled from the pack itself, not eyeballed:
     forest     #4F624C      navy    #264151
     terracotta #93563C      cream   #F1E8DC
   ========================================================================== */

[data-theme="adventure"] {
  /* --- ground ----------------------------------------------------------- */
  --paper:        #F5EFE6;
  --paper-raised: #FDFAF5;
  --paper-sunk:   #EDE4D8;
  --paper-deep:   #E4D8C8;

  /* --- ink -------------------------------------------------------------- */
  --ink:          #22302C;
  --ink-soft:     #46554D;
  --ink-faint:    #5B695F;   /* 5.06:1 on paper - AA */

  --rule:         #E2D8C9;
  --rule-strong:  #CBBBA6;

  /* --- brand ------------------------------------------------------------ */
  /* Terracotta at the pack's #A15B43 lands at 4.49:1 on this cream, a hair
     under AA. #93563C is also in the pack and clears it at 5.05:1. */
  --accent:       #93563C;
  --accent-ink:   #7A452E;
  --accent-soft:  #F3E4DB;
  --on-accent:    #FDFAF5;

  /* The pack's secondary mark colour. Named --brass for continuity with
     app.css so no component has to know which theme is on. */
  --brass:        #4F624C;
  --brass-soft:   #E7EDE3;

  /* Third brand colour, used for deep panels and the footer. */
  --navy:         #264151;
  --navy-soft:    #E4EAEE;

  --ok:    #4F624C;  --ok-soft:   #E7EDE3;
  --warn:  #8A5A10;  --warn-soft: #F7EEDC;
  --err:   #8E3325;  --err-soft:  #F7E4DF;

  --shadow:      0 1px 2px rgba(34, 48, 44, .05), 0 8px 24px rgba(34, 48, 44, .06);
  --shadow-lift: 0 2px 5px rgba(34, 48, 44, .07), 0 18px 44px rgba(34, 48, 44, .11);
  --shadow-deep: 0 3px 8px rgba(34, 48, 44, .09), 0 30px 70px rgba(34, 48, 44, .15);

  /* The pack's paper is smoother than Ink & Oak's; drop the woven grain. */
  --grain: none;
}

/* --- masthead ------------------------------------------------------------ */
[data-theme="adventure"] .masthead { background: rgba(245, 239, 230, .9); }
[data-theme="adventure"] .masthead::after {
  background: linear-gradient(90deg, transparent, rgba(79, 98, 76, .4) 22%,
              rgba(147, 86, 60, .4) 78%, transparent);
}

/* --- hero ---------------------------------------------------------------- */
/* Full-bleed photograph with the headline over it, as the pack presents it. */
[data-theme="adventure"] .brand-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 8px;
  background: var(--navy);
}
[data-theme="adventure"] .brand-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
[data-theme="adventure"] .brand-hero::after {
  content: ""; position: absolute; inset: 0;
  /* The photograph is busy, so the scrim has to do real work on the left. */
  background: linear-gradient(100deg, rgba(18, 26, 24, .90) 0%,
              rgba(18, 26, 24, .78) 38%, rgba(18, 26, 24, .34) 72%,
              rgba(18, 26, 24, .12) 100%);
}
[data-theme="adventure"] .brand-hero-body {
  position: relative; z-index: 1; padding: 56px 52px; max-width: 620px;
}
[data-theme="adventure"] .brand-hero-body h1,
[data-theme="adventure"] .brand-hero-body .lede { color: #FBF7F0; }
[data-theme="adventure"] .brand-hero-body .lede { opacity: .92; }
[data-theme="adventure"] .brand-hero-body .eyebrow { color: #E2CFC2; }
[data-theme="adventure"] .brand-hero-body .btn-secondary {
  color: #FBF7F0; border-color: rgba(251, 247, 240, .45);
}
[data-theme="adventure"] .brand-hero-body .btn-secondary:hover {
  background: rgba(251, 247, 240, .12);
}
@media (max-width: 780px) {
  [data-theme="adventure"] .brand-hero { min-height: 420px; }
  [data-theme="adventure"] .brand-hero-body { padding: 34px 26px; }
}

/* --- a photograph paired with words -------------------------------------- */
[data-theme="adventure"] .brand-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--paper-raised);
}
[data-theme="adventure"] .brand-split.is-reversed > figure { order: 2; }
[data-theme="adventure"] .brand-split > figure { margin: 0; min-height: 330px; position: relative; }
[data-theme="adventure"] .brand-split img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
[data-theme="adventure"] .brand-split-body { padding: 42px 44px; align-self: center; }
@media (max-width: 780px) {
  [data-theme="adventure"] .brand-split { grid-template-columns: 1fr; }
  [data-theme="adventure"] .brand-split.is-reversed > figure { order: 0; }
  [data-theme="adventure"] .brand-split > figure { min-height: 220px; }
  [data-theme="adventure"] .brand-split-body { padding: 28px 24px; }
}

/* --- a deep band, for the line that should land hardest ------------------ */
[data-theme="adventure"] .brand-band {
  background: var(--brass); color: #FBF7F0;
  border-radius: var(--radius-lg); padding: 52px 44px; text-align: center;
}
[data-theme="adventure"] .brand-band h2 { color: #FBF7F0; margin: 0 0 .35em; }
[data-theme="adventure"] .brand-band p { color: rgba(251, 247, 240, .88); margin: 0 auto; max-width: 48ch; }
[data-theme="adventure"] .brand-band .btn {
  background: var(--paper-raised); color: var(--brass); border-color: var(--paper-raised);
  margin-top: 26px;
}
[data-theme="adventure"] .brand-band .btn:hover { background: #fff; border-color: #fff; }

/* --- footer -------------------------------------------------------------- */
[data-theme="adventure"] .footer { background: var(--navy); color: rgba(251, 247, 240, .72); border-top: 0; }
[data-theme="adventure"] .footer a { color: rgba(251, 247, 240, .82); }
[data-theme="adventure"] .footer a:hover { color: #fff; }

/* --- the chapter/season spine picks up the brand's three colours --------- */
[data-theme="adventure"] .season-card .spine,
[data-theme="adventure"] .chapter-card .spine {
  background: linear-gradient(90deg, var(--brass), var(--accent) 60%, var(--navy));
}
