/* ========================================================================
   STRANGE FORECAST
   Editorial. Tactile. Slightly tired.
   ======================================================================== */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Palette */
  --bone: #F5F1E8;
  --bone-warm: #EDE6D6;
  --charcoal: #1F1F1D;
  --olive: #545A3E;
  --olive-deep: #424731;
  --olive-light: #6D7463;
  --navy: #3E4A5A;
  --burgundy: #6A3A3A;
  --gray-fog: #8C8A84;

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-mono-hand: 'Kalam', cursive;
  --font-typewriter: 'Special Elite', 'Courier New', monospace;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 32px;
  --section-pad-y: 96px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--charcoal);
  background-color: var(--bone);
  background-image: url('images/cream-texture.png');
  background-size: 800px 800px;
  background-repeat: repeat;
  background-blend-mode: multiply;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* ========================================================================
   BUTTONS
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-pill { border-radius: 999px; }
.btn-dark { background: var(--charcoal); color: var(--bone); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-olive {
  background: var(--olive);
  color: var(--bone);
  padding: 20px 38px;
  font-size: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}
.btn-olive:hover { background: var(--olive-deep); transform: translateY(-1px); box-shadow: 0 4px 0 rgba(0,0,0,0.10); }
.btn-cream {
  background: var(--bone);
  color: var(--charcoal);
  padding: 18px 32px;
}
.btn-cream:hover { background: #fff; transform: translateY(-1px); }
.arrow { font-family: var(--font-display); font-weight: 400; font-size: 1.2em; transform: translateY(-1px); }

/* ========================================================================
   HEADER
   ======================================================================== */
.site-header {
  padding: 28px 0;
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}
.logo-line-2 { margin-top: 2px; }

.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1.5px solid var(--burgundy);
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--burgundy);
  line-height: 1.4;
  transform: rotate(-2deg);
  background: rgba(245, 241, 232, 0.4);
  box-shadow: 0 0 0 2px rgba(106, 58, 58, 0.06);
}

.primary-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--burgundy); }
.nav-link.is-active {
  color: var(--burgundy);
}
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
}

.nav-cta { font-size: 12px; padding: 14px 24px; }

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  padding: 32px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.hero-text { padding-top: 16px; }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 7.2vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--charcoal);
  font-variation-settings: 'opsz' 144;
}
.hero-headline .line {
  display: block;
}
.hero-headline .shit-day-line {
  position: relative;
  display: inline-block;
}
.hero-headline .accent {
  color: var(--burgundy);
  font-style: italic;
  font-variation-settings: 'opsz' 144;
}
.brush-underline {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -34px;
  width: 108%;
  height: 32px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0.95;
}

.hero-eyebrow {
  font-family: var(--font-typewriter);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--charcoal);
  max-width: 480px;
  margin: 56px 0 28px;
}

.hero-sub {
  font-family: var(--font-typewriter);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal);
  max-width: 440px;
  margin: 0 0 36px;
}
.hero-sub mark {
  background: linear-gradient(180deg, transparent 30%, #DDD18A 30%, #DDD18A 92%, transparent 92%);
  color: inherit;
  padding: 0 2px;
}

.hero-cta {
  margin-top: 8px;
}

/* Hero collage / cards */
.hero-visual {
  position: relative;
  min-height: 680px;
  padding-top: 40px;
}
.hero-coffee-ring {
  position: absolute;
  top: -60px;
  right: -120px;
  width: 560px;
  height: auto;
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  transform: rotate(12deg);
}
.hero-collage {
  position: relative;
  z-index: 1;
  width: 135%;
  height: auto;
  max-width: none;
  margin-left: -15%;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.12));
}
.forecast-label {
  position: absolute;
  top: 8px;
  left: 22%;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 36px;
  color: var(--burgundy);
  transform: rotate(-6deg);
  z-index: 2;
}
.forecast-arrow {
  position: absolute;
  top: 42px;
  left: calc(22% + 198px);
  width: 84px;
  height: 60px;
  z-index: 2;
  transform: rotate(20deg);
}
.forecast-arrow path { stroke: var(--burgundy); }

/* ========================================================================
   VALUE PROPS
   ======================================================================== */
.value-props {
  padding: 72px 0;
  border-top: 1px solid rgba(31, 31, 29, 0.12);
  border-bottom: 1px solid rgba(31, 31, 29, 0.12);
  background-color: rgba(237, 230, 214, 0.45);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.props-grid::before,
.props-grid::after {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(31, 31, 29, 0.15);
}
.prop {
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.prop:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(31, 31, 29, 0.15);
}
.prop-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.prop-icon img {
  max-height: 100%;
  width: auto;
}
.prop-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--charcoal);
}
.prop-text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--charcoal);
  margin: 0;
}
.prop-text em {
  font-style: italic;
  background: linear-gradient(180deg, transparent 60%, #DDD18A 60%, #DDD18A 92%, transparent 92%);
  padding: 0 2px;
  font-style: normal;
}

/* ========================================================================
   OLIVE FEATURE SECTION
   ======================================================================== */
.feature-olive {
  position: relative;
  background-color: #545A3E;
  background-image: url('images/olive-texture.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
  color: var(--bone);
  padding: 96px 0 110px;
  overflow: hidden;
}
.feature-inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr minmax(280px, 420px);
  gap: 48px;
  align-items: center;
}

.feature-phone {
  position: relative;
}
.feature-phone img {
  max-width: 100%;
  filter: drop-shadow(0 20px 44px rgba(0,0,0,0.40));
  transform: rotate(-15deg);
  transform-origin: center;
}

.feature-copy {
  color: var(--bone);
  padding: 0 8px;
}
.feature-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.75);
  margin: 0 0 18px;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--bone);
}
.feature-rule {
  width: 140px;
  height: 2px;
  background: var(--burgundy);
  margin-bottom: 24px;
}
.feature-text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.88);
  margin: 0 0 32px;
  max-width: 360px;
}
.feature-cta { margin-bottom: 18px; }
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--bone);
  border-bottom: 1px solid rgba(245, 241, 232, 0.4);
  padding-bottom: 2px;
  margin-left: 16px;
  transition: border-color 0.2s ease;
}
.feature-link:hover { border-color: var(--bone); }

.feature-illustration {
  position: relative;
}
.feature-illustration img {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: 0;
  display: block;
  opacity: 0.95;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer {
  background-color: var(--bone);
  background-image: url('images/cream-texture.png');
  background-size: 800px 800px;
  background-blend-mode: multiply;
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 64px;
  row-gap: 24px;
  align-items: center;
  position: relative;
}
.footer-note {
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: 100%;
  width: 100%;
  transform: rotate(-4deg);
  margin-bottom: 0;
  align-self: center;
}
.footer-signup {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  max-width: 340px;
  width: 100%;
  align-self: end;
}
.footer-nav {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-end;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-top: 24px;
}
.footer-nav a { color: var(--charcoal); transition: color 0.2s; }
.footer-nav a:hover { color: var(--burgundy); }
.footer-copyright {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--charcoal);
  margin: 0;
  opacity: 0.7;
}

.footer-coffee {
  position: absolute;
  right: 30%;
  bottom: 40px;
  width: 110px;
  opacity: 0.55;
  pointer-events: none;
}

.footer-signup {
  justify-self: end;
  max-width: 280px;
  width: 100%;
}
.signup-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.signup-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--charcoal);
  background: rgba(255,255,255,0.5);
}
.signup-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--charcoal);
  outline: none;
}
.signup-row input::placeholder { color: rgba(31,31,29,0.5); }
.signup-row button {
  border: none;
  background: var(--charcoal);
  color: var(--bone);
  padding: 0 16px;
  font-size: 16px;
}
.signup-row button:hover { background: #000; }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: auto; padding-top: 0; }
  .hero-collage { margin: 0 auto; width: 100%; max-width: 640px; }
  .feature-inner { grid-template-columns: 1fr 1fr; }
  .feature-illustration { grid-column: 1 / -1; max-width: 800px; margin: 0 auto; }
  .feature-illustration img { width: 100%; margin: 0; }
  .props-grid { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .prop:not(:last-child)::after { display: none; }
  .prop-icon { height: 140px; }
}

@media (max-width: 820px) {
  :root { --section-pad-y: 64px; }
  .header-inner { flex-wrap: wrap; gap: 16px; }
  .primary-nav { width: 100%; order: 4; justify-content: center; gap: 18px; flex-wrap: wrap; }
  .nav-cta { order: 3; margin-left: auto; }
  .stamp { font-size: 8px; }
  .hero { padding-top: 16px; }
  .hero-headline { font-size: clamp(48px, 12vw, 72px); }
  .forecast-label { font-size: 26px; left: 8%; top: 8px; }
  .forecast-arrow { left: calc(8% + 110px); top: 36px; width: 60px; }
  .feature-olive { padding: 80px 0 100px; }
  .feature-inner { grid-template-columns: 1fr; }
  .feature-illustration { max-width: 480px; }
  .feature-phone img { transform: rotate(-15deg); }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-icon { height: 120px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-note { grid-column: 1; grid-row: auto; max-width: 480px; margin: 0 auto; }
  .footer-signup { grid-column: 1; grid-row: auto; justify-self: center; }
  .footer-nav { grid-column: 1; grid-row: auto; justify-content: center; margin-top: 0; }
  .footer-copyright { grid-column: 1; grid-row: auto; text-align: center; margin: 0; }
  .footer-coffee { display: none; }
}

@media (max-width: 520px) {
  :root { --container-pad: 20px; }
  .props-grid { grid-template-columns: 1fr; }
  .prop-icon { height: 140px; }
  .primary-nav { gap: 12px; font-size: 14px; }
  .nav-link { font-size: 15px; }
  .nav-cta { font-size: 11px; padding: 10px 14px; }
  .stamp { display: none; }
}

/* ========================================================================
   ENTRANCE ANIMATIONS
   ======================================================================== */
.hero-text > *,
.hero-visual {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.7s ease-out forwards;
}
.hero-text .hero-headline { animation-delay: 0.05s; }
.hero-text .hero-eyebrow  { animation-delay: 0.20s; }
.hero-text .hero-sub      { animation-delay: 0.30s; }
.hero-text .hero-cta      { animation-delay: 0.40s; }
.hero-visual              { animation-delay: 0.35s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
