/* ============================================================
   STRANGE FORECAST - HOMEPAGE STYLES (self-contained)
   Everything the homepage needs: tokens, fonts, base, and layout.
   Does NOT depend on a body class being present.
   ============================================================ */

/* ============================================================
   STRANGE FORECAST
   Editorial design system for a brutally honest daily reading.
   ============================================================ */

/* ---- 1. TOKENS ------------------------------------------- */
:root {
  /* color */
  --bone: #F5F1E8;
  --bone-warm: #EDE7D7;
  --charcoal: #1F1F1D;
  --olive: #6D7463;
  --olive-dark: #4A5042;
  --navy: #3E4A5A;
  --burgundy: #6A3A3A;
  --burgundy-bright: #8C4A4A;
  --smoke: #8C8A84;
  --pink: #F2C6BD;

  /* type */
  --font-display: "Fraunces", "Recoleta", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* scale */
  --step--2: clamp(0.7rem, 0.66rem + 0.18vw, 0.78rem);
  --step--1: clamp(0.83rem, 0.8rem + 0.18vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.14rem + 0.3vw, 1.35rem);
  --step-2:  clamp(1.44rem, 1.35rem + 0.45vw, 1.7rem);
  --step-3:  clamp(1.73rem, 1.6rem + 0.66vw, 2.1rem);
  --step-4:  clamp(2.07rem, 1.88rem + 0.96vw, 2.6rem);
  --step-5:  clamp(2.49rem, 2.21rem + 1.38vw, 3.2rem);
  --step-6:  clamp(3rem, 2.59rem + 2vw, 4rem);
  --step-7:  clamp(3.5rem, 2.8rem + 3.5vw, 5.5rem);

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* layout */
  --maxw: 1240px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
}

/* ---- 2. RESET -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
input { font: inherit; }

/* ---- 3. BASE --------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--bone);
  /* warm paper texture using layered radial gradients + grain */
  background-image:
    radial-gradient(at 12% 8%, rgba(212, 197, 165, 0.18) 0, transparent 45%),
    radial-gradient(at 88% 92%, rgba(180, 165, 130, 0.12) 0, transparent 40%),
    radial-gradient(at 50% 50%, rgba(245, 241, 232, 0.0) 0, var(--bone) 80%);
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0.13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, header, footer, section { position: relative; z-index: 2; }

::selection {
  background: var(--burgundy);
  color: var(--bone);
}


/* hand-drawn underline under the headline */
.underline-brush {
  display: block;
  height: 14px;
  margin-top: var(--space-2);
  background-image: url("assets/brush-line.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 110% 100%;
  opacity: 0.85;
}

/* highlighter style emphasis */
mark {
  background: linear-gradient(180deg, transparent 55%, rgba(141, 144, 100, 0.32) 55%);
  color: inherit;
  padding: 0 0.1em;
}


/* ============================================================
   HOMEPAGE LAYOUT
   ============================================================ */

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--bone);
  margin: 0;
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.25rem);
}

/* ---- HEADER ---- */
.site-header {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  background: var(--bone);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  flex-shrink: 0;
}

.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--burgundy);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  line-height: 1.15;
  text-align: center;
  flex-shrink: 0;
  transform: rotate(-1.5deg);
  background: var(--bone);
}

.stamp span { display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.25em 0;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--burgundy); }

.nav-link.is-active {
  color: var(--burgundy);
  font-style: italic;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.85em 1.6em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-pill { border-radius: 999px; }

.btn-dark {
  background: var(--olive-dark);
  color: var(--bone);
}
.btn-dark:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(31,31,29,0.4);
}

.btn-olive {
  background: var(--olive-dark);
  color: var(--bone);
  font-size: 0.95rem;
  padding: 1em 1.9em;
}
.btn-olive:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(31,31,29,0.4);
}

.btn-cream {
  background: var(--bone);
  color: var(--charcoal);
}
.btn-cream:hover {
  background: #fff;
  transform: translateY(-1px);
}

.nav-cta { font-size: 0.78rem; padding: 0.7em 1.4em; }

.arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---- HERO ---- */
.hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--bone);
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.hero-text { max-width: 540px; }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.hero-headline .line { display: block; }

.shit-day-line {
  position: relative;
  display: inline-block;
}

.shit-day-line .accent {
  color: var(--burgundy);
  font-style: italic;
  font-weight: 500;
}

.brush-underline {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.42em;
  width: 108%;
  height: 0.55em;
  object-fit: fill;
  pointer-events: none;
  opacity: 0.9;
}

.hero-eyebrow {
  font-family: "Special Elite", "Courier New", monospace;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  text-transform: uppercase;
}

.hero-sub {
  font-family: "Special Elite", "Courier New", monospace;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
}

.hero-sub mark {
  background: linear-gradient(180deg, transparent 55%, rgba(240, 211, 90, 0.55) 55%);
  color: inherit;
  font-style: normal;
  position: relative;
  padding: 0 0.05em;
}

/* ---- HERO VISUAL ---- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(500px, 66vw, 820px);
  margin-right: clamp(-4rem, -5vw, -2rem);
  overflow: visible;
}

.hero-collage {
  width: 100%;
  max-width: 1080px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-coffee-ring {
  position: absolute;
  width: clamp(100px, 11vw, 155px);
  bottom: 8%;
  right: 4%;
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

.forecast-label {
  position: absolute;
  top: 4%;
  left: 8%;
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--charcoal);
  z-index: 3;
  transform: rotate(-4deg);
  white-space: nowrap;
}

.forecast-arrow {
  position: absolute;
  top: 8%;
  left: 28%;
  width: clamp(50px, 6vw, 80px);
  height: auto;
  z-index: 3;
  transform: rotate(8deg);
  pointer-events: none;
}

/* ---- VALUE PROPS ---- */
.value-props {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(31,31,29,0.08);
  border-bottom: 1px solid rgba(31,31,29,0.08);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
}

.prop {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prop-icon {
  width: clamp(184px, 21.4vw, 261px);
  height: clamp(184px, 21.4vw, 261px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.prop-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prop-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin: 0 0 0.5em;
  line-height: 1.3;
}

.prop-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--charcoal);
  margin: 0;
  font-style: italic;
  opacity: 0.85;
}

.prop-text em {
  color: var(--burgundy);
  font-style: italic;
  font-weight: 500;
}

/* ---- OLIVE FEATURE SECTION ---- */
.feature-olive {
  background: #3E4A2A;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  color: var(--bone);
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.feature-phone img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.feature-copy {
  text-align: center;
}

.feature-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--bone);
  margin: 0 0 1rem;
  opacity: 0.75;
}

.feature-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 1.05;
  color: var(--bone);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.feature-rule {
  width: 60px;
  height: 2px;
  background: var(--bone);
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

.feature-text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--bone);
  margin: 0 0 2rem;
  opacity: 0.95;
}

.feature-illustration img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---- SITE FOOTER (homepage variant) ---- */
.site-footer {
  background: var(--bone);
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2rem, 3vw, 3rem);
  position: relative;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  position: relative;
}

.footer-note {
  max-width: 560px;
  width: 100%;
  height: auto;
  display: block;
}

.footer-signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.signup-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  color: var(--charcoal);
  line-height: 1.4;
}

.signup-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1.5px solid var(--charcoal);
  gap: 0.5rem;
  width: min(280px, 100%);
}

.signup-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  outline: none;
}

.signup-row input::placeholder {
  color: var(--smoke);
  font-style: italic;
}

.signup-row button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  font-size: 1.1rem;
  padding: 0 0.25rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.footer-nav a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--burgundy); }

.footer-copyright {
  color: var(--smoke);
  font-weight: 500;
  margin-top: 0.5rem;
}

.footer-coffee {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: 90px;
  height: auto;
  opacity: 0.4;
  pointer-events: none;
}

/* ---- RESPONSIVE (homepage) ---- */
@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .stamp { font-size: 0.55rem; padding: 0.35rem 0.55rem; }
  .primary-nav { margin-left: 0; order: 3; width: 100%; justify-content: center; }
  .nav-cta { order: 4; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .props-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .prop:nth-child(4), .prop:nth-child(5) { grid-column: span 1; }
  .feature-inner { grid-template-columns: 1fr; }
  .feature-phone img, .feature-illustration img { max-width: 260px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .footer-note, .signup-label { margin: 0 auto; text-align: center; }
  .footer-nav { align-items: center; }
  .footer-coffee { display: none; }
}

@media (max-width: 600px) {
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .prop:nth-child(5) { grid-column: 1 / -1; }
  .nav-cta { display: none; }
}
