/* Foundation - homepage, hub pages, blog shells */

.theme-inner {
  padding: 3.5rem 0 5rem;
}

.fw-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
}

.fw-hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .fw-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.fw-hero__panel {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  backdrop-filter: blur(8px);
}

.fw-hero__panel h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.fw-hero__panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--fw-text-muted);
  font-size: 0.9375rem;
}

.fw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.fw-strip {
  padding: 4rem 0;
  background: var(--fw-dark-parchment);
  border-block: 1px solid var(--fw-border);
}

.fw-strip__title {
  text-align: center;
  max-width: 40ch;
  margin-inline: auto  ;
  margin-bottom: 2.5rem;
}

.fw-card {
  padding: 1.75rem;
  background: var(--fw-white);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  transition: transform 0.3s var(--fw-ease), box-shadow 0.3s var(--fw-ease);
}

.fw-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fw-shadow);
}

.fw-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fw-crimson);
  margin-bottom: 0.75rem;
}

.fw-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.fw-card p {
  font-size: 0.9375rem;
  color: var(--fw-text-muted);
  margin: 0;
}

.fw-hub {
  padding: 4rem 0 5rem;
}

.fw-prose {
  font-size: 1.0625rem;
}

.fw-prose h2 {
  margin-top: 2.5rem;
}

.fw-prose blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--fw-crimson);
  background: rgba(237, 228, 211, 0.5);
  font-family: var(--fw-font-accent);
  font-style: italic;
}

.fw-prose figure {
  margin: 2rem 0;
}

.fw-prose figure img {
  width: 100%;
  height: auto;
  border-radius: var(--fw-radius-lg);
}

.fw-prose hr {
  border: none;
  border-top: 1px solid var(--fw-border);
  margin: 2rem 0;
}

.fw-audience-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.fw-audience-band span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--fw-border);
  border-radius: 999px;
  color: var(--fw-text-muted);
  background: rgba(255, 255, 255, 0.6);
}

body[data-tone="warm-innovation"] .fw-card__label { color: var(--fw-deep-crimson); }

body[data-tone="warm-innovation"] .fw-hero__panel {
  background: rgba(255, 255, 255, 0.72);
}

.fw-article-meta {
  font-size: 0.875rem;
  color: var(--fw-text-muted);
  margin-bottom: 2rem;
}

.fw-article-meta__sep {
  margin: 0 0.5rem;
}

.fw-blog-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 700px) {
  .fw-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fw-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fw-blog-card {
  padding: 0;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.fw-blog-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.fw-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fw-blog-card__meta,
.fw-blog-card__title,
.fw-blog-card__excerpt,
.fw-blog-card__link {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.fw-blog-card__meta {
  font-size: 0.8125rem;
  color: var(--fw-text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.fw-blog-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.fw-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.fw-blog-card__title a:hover {
  color: var(--fw-crimson);
}

.fw-blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--fw-text-muted);
  margin-bottom: 1rem;
}

.fw-blog-card__link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fw-crimson);
  text-decoration: none;
}

.fw-article-featured {
  margin: 0 0 2rem;
}

.fw-article-featured img {
  width: 100%;
  height: auto;
  border-radius: var(--fw-radius-lg);
}


/* Shared multi-brand contact form */
.fw-contact-form {
  margin: 2rem 0 3rem;
  padding: 1.5rem;
  border: 1px solid var(--fw-line, rgba(0,0,0,.12));
  border-radius: 1rem;
  background: var(--fw-bg-elev, #fff);
}
.fw-contact-form__grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .fw-contact-form__grid { grid-template-columns: 1fr 1fr; }
}
.fw-contact-form__field--full { grid-column: 1 / -1; }
.fw-contact-form__field span,
.fw-contact-form__check span { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; font-weight: 600; }
.fw-contact-form__field input,
.fw-contact-form__field select,
.fw-contact-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--fw-line, rgba(0,0,0,.15));
  border-radius: 0.5rem;
  font: inherit;
  background: var(--fw-bg, #fff);
  color: inherit;
}
.fw-contact-form__check { display: flex; gap: 0.6rem; align-items: flex-start; }
.fw-contact-form__check input { margin-top: 0.2rem; }
.fw-contact-form__foot { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.fw-contact-form__note { margin: 0; font-size: 0.85rem; opacity: 0.75; }
.fw-contact-form__status {
  margin-top: 0.75rem;
  padding: 0.75rem 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: 0.5rem;
}
.fw-contact-form__status[hidden] { display: none !important; }
.fw-contact-form__status.is-ok {
  color: #0a7a3e;
  background: rgba(10, 122, 62, 0.08);
  border-color: rgba(10, 122, 62, 0.28);
}
.fw-contact-form__status.is-err {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.28);
}

/* ═══════════════════════════════════════════════════════════
   FW-LOST — Elegant multi-brand 404
   Uses --fw-* tokens so each brand palette applies automatically
   ═══════════════════════════════════════════════════════════ */
.fw-lost {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 46rem);
  padding: clamp(3.5rem, 10vh, 6.5rem) 1.25rem clamp(4rem, 11vh, 7rem);
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 18%,
      color-mix(in srgb, var(--fw-accent, #8c2020) 10%, transparent) 0%,
      transparent 62%
    ),
    linear-gradient(
      180deg,
      var(--fw-surface, #faf7f2) 0%,
      var(--fw-surface-alt, #f4ede0) 100%
    );
  color: var(--fw-text, #2c1810);
  text-align: center;
}

.fw-lost__veil {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 40%,
      color-mix(in srgb, var(--fw-accent, #8c2020) 4%, transparent) 50%,
      transparent 60%
    );
  opacity: 0.9;
}

.fw-lost__frame {
  pointer-events: none;
  position: absolute;
  inset: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid color-mix(in srgb, var(--fw-text, #2c1810) 10%, transparent);
  border-radius: 1.35rem;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 45%, transparent),
    0 24px 60px color-mix(in srgb, var(--fw-text, #2c1810) 6%, transparent);
}

.fw-lost__frame::before,
.fw-lost__frame::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-color: color-mix(in srgb, var(--fw-accent, #8c2020) 55%, transparent);
  border-style: solid;
}
.fw-lost__frame::before {
  top: 0.85rem;
  left: 0.85rem;
  border-width: 1px 0 0 1px;
}
.fw-lost__frame::after {
  right: 0.85rem;
  bottom: 0.85rem;
  border-width: 0 1px 1px 0;
}

.fw-lost__inner {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  margin: 0 auto;
  padding: 0.5rem 0.75rem;
}

.fw-lost__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fw-accent, #8c2020) 92%, var(--fw-text, #2c1810));
}

.fw-lost__kicker-line {
  display: block;
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.fw-lost__num {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(8rem, 28vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--fw-accent, #8c2020) 9%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.fw-lost__title {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fw-text, #2c1810);
}

.fw-lost__lead {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 28rem;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.65;
  color: var(--fw-text-muted, rgba(44, 24, 16, 0.62));
  font-weight: 400;
}

.fw-lost__rule {
  width: 3.5rem;
  height: 1px;
  margin: 1.75rem auto 1.85rem;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--fw-accent, #8c2020) 75%, transparent),
    transparent
  );
}

.fw-lost__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 0.85rem;
  margin: 0 0 1.75rem;
}

.fw-lost__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition:
    background 0.25s var(--fw-ease, ease),
    color 0.25s var(--fw-ease, ease),
    border-color 0.25s var(--fw-ease, ease),
    transform 0.25s var(--fw-ease, ease),
    box-shadow 0.25s var(--fw-ease, ease);
}

/*
 * Brand themes set `.theme-* a { color: … }` which paints link text over buttons
 * (crimson/black on solid fill → invisible or “wrong”). Pin contrast with !important
 * the same way foundation-buttons isolates a.fw-btn.
 */
a.fw-lost__btn--solid,
a.fw-lost__btn--solid:link,
a.fw-lost__btn--solid:visited,
a.fw-lost__btn--solid:hover,
a.fw-lost__btn--solid:active,
a.fw-lost__btn--solid:focus-visible {
  color: var(--fw-btn-fg, #ffffff) !important;
  background: var(--fw-btn-bg, #6b1818) !important;
  border: 1px solid var(--fw-btn-border, var(--fw-btn-bg, #6b1818)) !important;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--fw-btn-bg, #6b1818) 22%, transparent);
}

a.fw-lost__btn--solid:hover,
a.fw-lost__btn--solid:focus-visible {
  color: var(--fw-btn-hover-fg, #ffffff) !important;
  background: var(--fw-btn-hover-bg, #8c2020) !important;
  border-color: var(--fw-btn-hover-bg, #8c2020) !important;
  transform: translateY(-1px);
}

a.fw-lost__btn--ghost,
a.fw-lost__btn--ghost:link,
a.fw-lost__btn--ghost:visited,
a.fw-lost__btn--ghost:hover,
a.fw-lost__btn--ghost:active,
a.fw-lost__btn--ghost:focus-visible {
  color: var(--fw-btn-ghost-fg, #6b1818) !important;
  background: var(--fw-btn-ghost-bg, transparent) !important;
  border: 1px solid var(--fw-btn-ghost-border, rgba(107, 24, 24, 0.4)) !important;
  box-shadow: none;
}

a.fw-lost__btn--ghost:hover,
a.fw-lost__btn--ghost:focus-visible {
  background: var(--fw-btn-ghost-hover-bg, rgba(107, 24, 24, 0.08)) !important;
  border-color: color-mix(in srgb, var(--fw-accent, #8c2020) 55%, transparent) !important;
}

/* Dark theme: use on-dark CTA tokens so solid never becomes “ink on ink” */
html[data-theme="dark"] a.fw-lost__btn--solid,
html[data-theme="dark"] a.fw-lost__btn--solid:link,
html[data-theme="dark"] a.fw-lost__btn--solid:visited,
html[data-theme="dark"] a.fw-lost__btn--solid:hover,
html[data-theme="dark"] a.fw-lost__btn--solid:active,
html[data-theme="dark"] a.fw-lost__btn--solid:focus-visible {
  color: var(--fw-btn-on-dark-text, #1a120e) !important;
  background: var(--fw-btn-on-dark-bg, #ffffff) !important;
  border-color: var(--fw-btn-on-dark-border, #ffffff) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] a.fw-lost__btn--solid:hover,
html[data-theme="dark"] a.fw-lost__btn--solid:focus-visible {
  filter: brightness(1.06);
}

html[data-theme="dark"] a.fw-lost__btn--ghost,
html[data-theme="dark"] a.fw-lost__btn--ghost:link,
html[data-theme="dark"] a.fw-lost__btn--ghost:visited,
html[data-theme="dark"] a.fw-lost__btn--ghost:hover,
html[data-theme="dark"] a.fw-lost__btn--ghost:active,
html[data-theme="dark"] a.fw-lost__btn--ghost:focus-visible {
  color: var(--fw-btn-on-dark-ghost-fg, #ffffff) !important;
  background: var(--fw-btn-on-dark-ghost-bg, rgba(0, 0, 0, 0.28)) !important;
  border-color: var(--fw-btn-on-dark-ghost-border, rgba(255, 255, 255, 0.7)) !important;
}

.fw-lost__hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-lost__hints a {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--fw-text-muted, rgba(44, 24, 16, 0.55));
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fw-lost__hints a:hover {
  color: var(--fw-accent, #8c2020);
  border-bottom-color: color-mix(in srgb, var(--fw-accent, #8c2020) 45%, transparent);
}

/* Dark theme */
html[data-theme="dark"] .fw-lost {
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 18%,
      color-mix(in srgb, var(--fw-accent, #b4463e) 14%, transparent) 0%,
      transparent 62%
    ),
    linear-gradient(180deg, var(--fw-surface, #14100e) 0%, var(--fw-surface-alt, #1c1613) 100%);
}

html[data-theme="dark"] .fw-lost__frame {
  border-color: color-mix(in srgb, var(--fw-text, #f4ede0) 12%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent),
    0 24px 60px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .fw-lost__num {
  color: color-mix(in srgb, var(--fw-accent, #b4463e) 14%, transparent);
}

@media (max-width: 640px) {
  .fw-lost {
    min-height: min(72vh, 40rem);
    padding: 3rem 1rem 3.5rem;
  }
  .fw-lost__frame {
    inset: 0.65rem;
    border-radius: 1.1rem;
  }
  .fw-lost__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .fw-lost__btn {
    width: 100%;
  }
  .fw-lost__hints {
    gap: 0.65rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fw-lost__btn {
    transition: none;
  }
  .fw-lost__btn--solid:hover {
    transform: none;
  }
}
