/* Silas Energy hub — cream / ochre / sage / wood, dark-first */

:root,
[data-theme="dark"] {
  --bg: #14110e;
  --bg-elev: #1e1914;
  --bg-card: #241e18;
  --bg-soft: #2c241c;
  --ink: #f3ead8;
  --ink-muted: #c4b8a4;
  --ink-faint: #8f8373;
  --ochre: #d4a84b;
  --ochre-deep: #b8892e;
  --sage: #8fa882;
  --sage-deep: #6e8a64;
  --wood: #6b4f36;
  --wood-light: #8a6a4a;
  --cream: #f3ead8;
  --border: rgba(212, 168, 75, 0.22);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --focus: #e8c56a;
  --danger-soft: #c9a07a;
  --radius: 1.1rem;
  --radius-sm: 0.7rem;
  --max: 68rem;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6efe3;
  --bg-elev: #fffaf2;
  --bg-card: #fffdf8;
  --bg-soft: #efe5d4;
  --ink: #2a2118;
  --ink-muted: #5a4d3f;
  --ink-faint: #7a6b58;
  --ochre: #b8892e;
  --ochre-deep: #8f6a1c;
  --sage: #5f7a56;
  --sage-deep: #4a6243;
  --wood: #6b4f36;
  --wood-light: #8a6a4a;
  --cream: #fffaf2;
  --border: rgba(107, 79, 54, 0.18);
  --shadow: 0 16px 40px rgba(74, 55, 30, 0.12);
  --focus: #8f6a1c;
  --danger-soft: #8a5a3a;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 168, 75, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(143, 168, 130, 0.1), transparent 50%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ochre);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sage);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ochre);
  color: #1a1410;
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand__mark {
  color: var(--ochre);
}

.brand__sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  border-color: var(--ochre);
  color: var(--ink);
}

.theme-toggle__icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 760px) {
  .hero__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.75rem;
  }
}

.hero__portrait-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
}

.hero__portrait {
  width: 100%;
  aspect-ratio: 8 / 9;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius) + 0.2rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.hero__badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

[data-theme="light"] .hero__badge {
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--ochre);
  margin: 0 0 1.1rem;
  line-height: 1.35;
}

.lede {
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--ochre), var(--ochre-deep));
  color: #1a1410;
  box-shadow: 0 8px 24px rgba(184, 137, 46, 0.28);
}

.btn--primary:hover {
  color: #1a1410;
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-muted);
}

.btn--ghost:hover {
  border-color: var(--sage);
  color: var(--ink);
}

.btn.is-placeholder {
  opacity: 0.95;
}

.price-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.price-chip strong {
  color: var(--ink);
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.cta-note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--danger-soft);
}

.cta-note[hidden] {
  display: none;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section--tight {
  padding-top: 1.5rem;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
}

.section__head p {
  margin: 0;
  color: var(--ink-muted);
}

.prose {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  color: var(--ink-muted);
}

.prose p {
  margin: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.who {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 800px) {
  .who {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.still-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.still-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.still-card figcaption {
  padding: 0.85rem 1rem 1.05rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* Places */
.places {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .places {
    grid-template-columns: repeat(3, 1fr);
  }
}

.place {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s;
}

.place:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ochre) 45%, var(--border));
}

.place img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.place figcaption {
  padding: 0.8rem 0.95rem 1rem;
}

.place__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.place__meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Product card */
.product {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--ochre) 12%, var(--bg-card)), var(--bg-card) 42%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 820px) {
  .product {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: stretch;
  }
}

.product__kicker {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.product h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.product__promise {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.55rem;
  color: var(--ink-muted);
  align-items: start;
}

.checklist li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 25%, transparent);
}

.product__aside {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.product__price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.product__price span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.product__aside .btn {
  width: 100%;
}

.placeholder-pill {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  background: color-mix(in srgb, var(--ochre) 18%, transparent);
  border: 1px dashed color-mix(in srgb, var(--ochre) 45%, transparent);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

[data-theme="dark"] .placeholder-pill {
  color: var(--ochre);
}

/* Coming soon */
.teasers {
  display: grid;
  gap: 1rem;
}

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

.tease {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.tease h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.tease p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.tease__soon {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Video placeholder */
.video-ph {
  background: var(--bg-card);
  border: 1px dashed color-mix(in srgb, var(--ochre) 40%, var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.video-ph__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--wood) 35%, var(--bg-soft)), var(--bg-soft));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}

.video-ph__frame::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid color-mix(in srgb, var(--ochre) 25%, transparent);
  border-radius: 0.6rem;
  pointer-events: none;
}

.video-ph__icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 2px solid var(--ochre);
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
  color: var(--ochre);
  font-size: 1.1rem;
  position: relative;
}

.video-ph__label {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.video-ph__hint {
  position: relative;
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.95rem;
  max-width: 28rem;
}

.video-ph__meta {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* AI strip */
.ai-strip {
  background: color-mix(in srgb, var(--sage) 12%, var(--bg-elev));
  border-block: 1px solid var(--border);
  padding: 0.85rem 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.ai-strip strong {
  color: var(--ink);
}

/* Footer */
.footer {
  padding: 2.5rem 0 3rem;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.footer a {
  color: var(--ink-muted);
}

.footer__grid {
  display: grid;
  gap: 1.25rem;
}

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

.footer h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.footer p {
  margin: 0 0 0.65rem;
  max-width: 36rem;
}

.footer__legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .place {
    transition: none;
  }
}

/* Launch offer / countdown */
.urgency-bar {
  background: #3c2f1b;
  border-bottom: 1px solid rgba(232, 197, 106, 0.32);
  color: #f7e8bd;
}

.urgency-bar__inner {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.8rem;
  padding-block: 0.42rem;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
}

.urgency-bar__active,
.urgency-bar__ended {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.22rem 0.45rem;
}

.urgency-bar__active strong:first-child {
  color: #fff1ca;
}

.urgency-bar__timer {
  display: inline-flex;
  gap: 0.25rem;
  align-items: baseline;
  margin-left: 0.25rem;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(247, 232, 189, 0.35);
  font-variant-numeric: tabular-nums;
}

.urgency-bar__timer strong {
  letter-spacing: 0.04em;
}

.urgency-bar del,
.price-was,
.cta-was {
  text-decoration-thickness: 0.11em;
  text-decoration-color: currentColor;
}

.urgency-bar.is-ended {
  background: color-mix(in srgb, var(--bg-soft) 82%, var(--bg));
  border-bottom-color: var(--border);
  color: var(--ink-muted);
}

.urgency-bar.is-ended strong {
  color: var(--ink);
}

.price-chip strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-was {
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.78em;
  font-weight: 500;
}

.cta-was {
  display: inline-block;
  margin-left: 0.1rem;
  font-size: 0.72em;
  font-weight: 500;
  opacity: 0.82;
}

.cta-ended {
  display: inline-block;
  margin-left: 0.15rem;
  font-size: 0.72em;
  font-weight: 650;
  opacity: 0.82;
}

.offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  margin-top: 0.7rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--ochre) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ochre) 14%, transparent);
  color: var(--ochre);
  font-size: 0.78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.product__price > strong {
  display: inline-block;
}

.product__price > .price-was {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.42em;
  font-weight: 500;
  vertical-align: middle;
}

.product__price > span[data-price-note] {
  display: block;
}

@media (max-width: 520px) {
  .urgency-bar__inner {
    font-size: 0.82rem;
  }

  .urgency-bar__timer {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .hero__actions .btn--primary {
    width: 100%;
  }
}
