/* Skyfall marketing — visual language ported from Automattic Adventurer (theme.json + patterns). */
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,900;1,900&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300&display=swap");

:root {
  --color-primary: #000000;
  --color-secondary: #000000;
  --color-foreground: #000000;
  --color-background: #ffffff;
  --color-tertiary: #f5f2ec;
  --color-link-hover: #545151;
  --content-max: 620px;
  --wide-max: 1100px;
  --space-page: clamp(1rem, 4vw, 2rem);
  --font-heading: "Rubik", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
  --adv-cover-img: url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=2400&q=82");
  --adv-header-pad-block: clamp(2.75rem, 6vw, 3.75rem);
  /* Clear absolutely positioned home header + one line of nav */
  --adv-hero-top-pad: calc(2 * var(--adv-header-pad-block) + clamp(2.25rem, 5vw, 3rem));
  /* Optional cap when tying heroes to viewport (e.g. full-bleed backgrounds) */
  --hero-screen: 100vh;
  /* Home hero: tall but not a full blank viewport on desktop */
  --hero-home-min: clamp(32rem, 70vh, 46rem);
  /* Inner page heroes: chapter header, not full screen */
  --hero-page-min: clamp(17.5rem, 38vh, 28rem);
  /* Contact / 404 compact hero */
  --hero-short-min: clamp(13rem, 30vh, 20rem);
}

@supports (height: 100dvh) {
  :root {
    --hero-screen: 100dvh;
    --hero-home-min: clamp(32rem, 70dvh, 46rem);
    --hero-page-min: clamp(17.5rem, 38dvh, 28rem);
    --hero-short-min: clamp(13rem, 30dvh, 20rem);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.15em;
}

body a:hover {
  color: var(--color-link-hover);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

main h2 {
  font-size: clamp(1.65rem, 3.2vw, 2rem);
  margin-top: 2rem;
}

main h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  margin-top: 1.5rem;
}

h5 {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: none;
}

h6,
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: inherit;
}

/* Wide content column — same horizontal inset as header / footer / main-wide */
.header-inner,
.footer-inner,
.adv-cover__inner,
.page-cover__content,
.adv-megaband__inner {
  width: 100%;
  max-width: var(--wide-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-page);
  padding-right: var(--space-page);
}

/* —— Headers (transparent over cover vs solid Adventurer secondary-header) —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  color: #fff;
  padding-block: var(--adv-header-pad-block);
}

.site-header-solid {
  position: sticky;
  top: 0;
  padding-block: 1rem;
  color: var(--color-foreground);
  background: var(--color-background);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 40;
}

.site-header .logo {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.0625rem);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  color: inherit;
}

.site-header .logo:hover {
  text-decoration: underline;
  color: inherit;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-header-solid .nav-toggle {
  border-color: rgba(0, 0, 0, 0.35);
}

.nav-drawer-wrap {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.75rem);
}

.nav-links {
  display: flex;
  gap: clamp(0.85rem, 3vw, 1.85rem);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
}

.nav-links a:hover {
  text-decoration: underline;
  opacity: 1;
  color: inherit;
}

.nav-links a.is-active {
  opacity: 1;
  text-decoration: underline;
}

/* Adventurer outline + primary buttons (same corner radius theme.json core/button → 2px) */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-secondary);
  color: var(--color-background);
  border-color: var(--color-secondary);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.92);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-tertiary);
}

/* Matches Adventurer donate CTA — black pill on overlay */
.site-header .btn-primary {
  background: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

.site-header-solid .btn-primary {
  background: var(--color-primary);
  color: var(--color-background);
}

/* —— Home cover (pattern: adventurer/header-with-cover) —— */
.adv-cover {
  position: relative;
  min-height: min(var(--hero-home-min), var(--hero-screen));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #fff;
  overflow: hidden;
}

.adv-cover__media {
  position: absolute;
  inset: 0;
  background-color: #14161a;
  background-image: linear-gradient(180deg, rgba(14, 16, 20, 0.35) 0%, rgba(10, 10, 12, 0.78) 100%), var(--adv-cover-img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 900px) {
  .adv-cover__media {
    background-attachment: scroll;
  }
}

.adv-cover__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.adv-cover__inner {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: max(var(--adv-hero-top-pad), env(safe-area-inset-top, 0px));
  padding-bottom: max(clamp(2rem, 6vh, 5rem), env(safe-area-inset-bottom, 0px));
}

.adv-cover__mega {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 9vw, 4.6rem);
  line-height: 1.06;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.adv-cover__sub {
  max-width: 38ch;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  opacity: 0.95;
  margin: 0 0 2rem;
}

.adv-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: max(clamp(0.75rem, 3vh, 2.5rem), env(safe-area-inset-bottom, 0px));
}

/* Homepage hero — full viewport, copy + execution rail */
.adv-cover--home {
  min-height: var(--hero-screen);
}

.adv-cover--home .adv-cover__inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: max(clamp(1.25rem, 3vh, 2rem), env(safe-area-inset-bottom, 0px));
}

.hero-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vh, 2.75rem);
}

.hero-copy {
  flex: 0 1 auto;
  width: 100%;
  max-width: 42rem;
  align-self: flex-start;
}

.hero-eyebrow {
  opacity: 0.88;
}

.hero-title {
  max-width: 17ch;
  margin: 0 0 1rem;
}

.hero-lede {
  max-width: 40ch;
}

.hero-actions {
  margin-bottom: 0;
}

.adv-cover--home .adv-cover__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.hero-rail {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  padding: clamp(1.15rem, 2.6vw, 1.55rem) clamp(1.15rem, 2.8vw, 1.75rem);
}

.hero-rail__label {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero-rail__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .hero-rail__steps {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
  }

  .hero-rail__steps li {
    flex: 1 1 0;
    min-width: 6.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-rail__steps li:last-child {
    border-right: none;
  }
}

.hero-rail__steps li {
  margin: 0;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}

.hero-rail__steps li:nth-child(2) {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.35);
}

.hero-rail__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-rail__hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.hero-rail__footer {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-height: 520px) {
  .hero-rail {
    max-height: 10.75rem;
    overflow: auto;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.75rem);
  }

  .hero-lede {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

@supports (height: 100dvh) {
  .adv-cover__inner {
    padding-bottom: max(clamp(1.5rem, 5dvh, 4.75rem), env(safe-area-inset-bottom, 0px));
  }

  .adv-cover--home .adv-cover__inner {
    padding-bottom: max(clamp(1.25rem, 3dvh, 2rem), env(safe-area-inset-bottom, 0px));
  }

  .adv-cover__actions {
    margin-bottom: max(clamp(0.75rem, 3dvh, 2.5rem), env(safe-area-inset-bottom, 0px));
  }

  .adv-cover--home .adv-cover__actions {
    margin-bottom: 0;
  }

  .page-cover__content {
    padding-top: max(clamp(2rem, 5dvh, 4rem), env(safe-area-inset-top, 0px));
    padding-bottom: max(clamp(1.5rem, 6dvh, 3rem), env(safe-area-inset-bottom, 0px));
  }
}

@media (max-height: 520px) {
  .adv-cover__mega {
    font-size: clamp(2rem, 8vw, 3.25rem);
    margin-bottom: 0.35rem;
  }

  .adv-cover__sub {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .adv-cover__actions {
    gap: 0.5rem;
    margin-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }
}

/* —— Tertiary “Browse by…” megatype strip (pattern: adventurer/list) —— */
.adv-megaband {
  background: var(--color-tertiary);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.adv-megaband .eyebrow {
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.adv-megatype {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 11vw, 5rem);
  line-height: 1.06;
  margin: 0;
}

.adv-megatype span,
.adv-megatype a {
  display: block;
  color: inherit;
}

.adv-megatype a {
  text-decoration: none;
}

.adv-megatype a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}

/* Stats row (pattern: adventurer/stats) */
.adv-stats {
  display: grid;
  gap: 0;
  max-width: var(--wide-max);
  margin-inline: auto;
  padding-inline: var(--space-page);
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
}

@media (min-width: 760px) {
  .adv-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.adv-stats__tile {
  text-align: center;
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--color-tertiary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 760px) {
  .adv-stats__tile {
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }
  .adv-stats__tile:last-child {
    border-right: none;
  }
}

.adv-stats__num {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 8vw, 4.2rem);
  line-height: 1;
  margin: 0 0 0.5rem;
}

.adv-stats__label {
  margin: 0;
  font-weight: 300;
  font-size: 1rem;
}

/* Inner page stacked covers (templates/page.html simplified) */
.page-cover {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.page-cover .adv-cover__media,
.page-cover .adv-cover__dim {
  position: absolute;
  inset: 0;
}

.page-cover .adv-cover__dim {
  background: rgba(0, 0, 0, 0.68);
}

.page-cover .page-cover__frame {
  position: relative;
  z-index: 2;
  min-height: min(var(--hero-page-min), var(--hero-screen));
  display: flex;
  flex-direction: column;
}

.page-cover--short .page-cover__frame {
  min-height: min(var(--hero-short-min), var(--hero-screen));
}

.page-cover__content {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: max(clamp(2rem, 5vh, 4rem), env(safe-area-inset-top, 0px));
  padding-bottom: max(clamp(1.5rem, 6vh, 3rem), env(safe-area-inset-bottom, 0px));
}

.page-cover .eyebrow {
  opacity: 0.95;
}

.page-cover .page-cover__title {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

/* Pullquote matches core/pullquote: tertiary bg + horizontal borders */
.pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--color-tertiary);
  border-style: solid;
  border-color: var(--color-foreground);
  border-width: 1px 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 900;
  line-height: 1.28;
  text-transform: uppercase;
}

main {
  padding-top: clamp(2.5rem, 6vw, 3.75rem);
  padding-bottom: clamp(3rem, 8vw, 4rem);
}

.main-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-page);
}

.main-wide {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 var(--space-page);
}

.lede {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.main-inner .lede:first-of-type {
  margin-top: 0;
}

.home-main-cta {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.two-col-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .two-col-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.offer-card {
  padding: 1.5rem;
  border-left: 1px solid var(--color-primary);
  background: var(--color-background);
}

.offer-card:nth-child(even) {
  background: var(--color-tertiary);
}

.tagline-banner {
  background: var(--color-primary);
  color: var(--color-background);
  padding: 2rem var(--space-page);
  margin: 2rem 0;
}

.tagline-banner p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.0625rem);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.meta-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
}

.meta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
}

.site-footer {
  background: var(--color-primary);
  color: var(--color-background);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: var(--color-background);
}

.footer-top {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: minmax(0, 38%) minmax(0, 30%) minmax(0, 28%);
    align-items: start;
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.8rem;
}

.footer-credit {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  opacity: 0.55;
}

.cred-muted {
  font-size: 0.85rem;
  opacity: 0.82;
}

main a:hover {
  color: var(--color-link-hover);
}

form.contact-form {
  display: grid;
  gap: 1rem;
}

form.contact-form label span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.875rem;
}

.form-status[data-state="ok"] {
  color: #1a5d1a;
}

.form-status[data-state="err"] {
  color: #8a1c1c;
}

.contact-after-form {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

@media (max-width: 740px) {
  .nav-toggle {
    display: block;
  }

  .nav-drawer-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .site-header-solid .nav-links {
    border-top-color: rgba(0, 0, 0, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-inline-cta {
    align-self: flex-start;
  }
}
