﻿/*
Theme Name: Love Fortune Telling
Theme URI: https://lovefortunetelling.com/
Author: Love Fortune Telling
Description: Own block theme for lovefortunetelling.com â€” "Lamp & Ledger" design system: twilight indigo-violet ink, warm terracotta accent, soft 10px card radius, Petrona/Nunito Sans type pairing. Built as a genuinely distinct identity, not a copy of any reference theme.
Requires at least: 6.5
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: lovefortunetelling
*/

/* Fallback rules for browsers/contexts that don't read theme.json-generated CSS
   (defensive only â€” WordPress generates the real presets from theme.json). */
body {
  background-color: #FBF6EF;
  color: #2A2440;
}
a { text-decoration: none; }
.legal-links-row a { text-decoration: underline; }
.wp-block-button__link { border-radius: 6px !important; }
.lft-card { border-radius: 10px !important; }

:root {
  --lft-ink: #1d1933;
  --lft-muted: #5b5470;
  --lft-line: #e4dcec;
  --lft-paper: #fbf6ef;
  --lft-mist: #f6efe4;
  --lft-accent: #8a4530;
  --lft-accent-strong: #6f3324;
  --lft-indigo: #211c3a;
  --lft-shadow: 0 24px 70px rgba(33, 28, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(138, 69, 48, 0.11), transparent 34rem),
    linear-gradient(180deg, var(--lft-paper), #ffffff 42%, var(--lft-paper));
}

.wp-site-blocks > * + * {
  margin-block-start: 0;
}

.wp-block-template-part {
  margin-block-start: 0;
}

header .wp-block-group.alignfull {
  position: sticky;
  top: 0;
  z-index: 20;
  border-color: rgba(228, 220, 236, 0.78) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

header .wp-block-site-title a {
  letter-spacing: 0;
}

header .wp-block-navigation a {
  position: relative;
  white-space: nowrap;
}

header .wp-block-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -0.28rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--lft-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

header .wp-block-navigation a:hover::after,
header .wp-block-navigation .current-menu-item a::after {
  transform: scaleX(1);
}

.wp-block-button__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  box-shadow: 0 12px 24px rgba(138, 69, 48, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(138, 69, 48, 0.24);
}

.wp-block-button__link:active {
  transform: translateY(1px);
}

.is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: none;
}

.is-style-outline .wp-block-button__link:hover {
  border-color: var(--lft-accent) !important;
  color: var(--lft-accent-strong) !important;
}

.lft-card,
.wp-block-column > .wp-block-group[style*="border-width:1px"] {
  box-shadow: 0 18px 48px rgba(33, 28, 58, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lft-card:hover,
.wp-block-column > .wp-block-group[style*="border-width:1px"]:hover {
  border-color: rgba(138, 69, 48, 0.35) !important;
  transform: translateY(-3px);
  box-shadow: var(--lft-shadow);
}

.lft-hero {
  position: relative;
  min-height: min(760px, calc(100dvh - 72px));
  overflow: hidden;
}

.lft-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at 13% 18%, rgba(138, 69, 48, 0.16), transparent 24rem),
    radial-gradient(circle at 92% 5%, rgba(46, 42, 92, 0.14), transparent 30rem);
  pointer-events: none;
}

.lft-hero > * {
  position: relative;
  z-index: 1;
}

.lft-hero .wp-block-heading {
  max-width: 10ch;
  letter-spacing: 0;
}

.lft-hero .wp-block-image {
  position: relative;
  margin: 0;
}

.lft-hero .wp-block-image::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  content: "";
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(46, 42, 92, 0.18), rgba(138, 69, 48, 0.22));
}

.lft-hero img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: 0 32px 80px rgba(33, 28, 58, 0.24);
}

.lft-trust-strip {
  margin-top: -1px;
}

.lft-method-grid .wp-block-column {
  min-width: 0;
}

.lft-method-grid .wp-block-column .wp-block-group {
  height: 100%;
}

.lft-method-grid figure {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f7eee6;
}

.lft-method-grid img {
  display: block;
}

.lft-faq .wp-block-group {
  background: rgba(255, 255, 255, 0.58);
  border-right: 1px solid var(--lft-line);
  border-left: 1px solid var(--lft-line);
  padding-right: clamp(18px, 4vw, 32px);
  padding-left: clamp(18px, 4vw, 32px);
}

.lft-faq h3 {
  margin-bottom: 0.3rem;
}

.lft-footer a {
  color: #fbf6ef;
}

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

@media (max-width: 900px) {
  header .wp-block-columns.is-not-stacked-on-mobile {
    flex-wrap: wrap !important;
    row-gap: 0.75rem;
  }

  header .wp-block-column[style*="28%"],
  header .wp-block-column[style*="47%"],
  header .wp-block-column[style*="25%"] {
    flex-basis: 100% !important;
  }

  header .wp-block-buttons,
  header .wp-block-navigation__container {
    justify-content: flex-start !important;
  }

  .lft-hero {
    min-height: auto;
  }

  .lft-hero .wp-block-heading {
    max-width: 12ch;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  header .wp-block-column[style*="28%"] {
    flex-basis: 22% !important;
  }

  header .wp-block-column[style*="47%"] {
    flex-basis: 54% !important;
  }

  header .wp-block-column[style*="25%"] {
    flex-basis: 24% !important;
  }

  header .wp-block-navigation__container {
    gap: 1rem !important;
  }

  header .wp-block-navigation a {
    font-size: 0.9rem;
  }

  header .wp-block-site-title {
    font-size: 1rem !important;
  }
}

@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, var(--lft-paper), #fff 50%, var(--lft-paper));
  }

  header .wp-block-group.alignfull {
    position: relative;
  }

  .wp-block-navigation__responsive-container-open {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lft-line);
    border-radius: 6px;
  }

  .wp-block-button__link {
    width: 100%;
  }

  .wp-block-buttons,
  .wp-block-button {
    width: 100%;
  }

  .lft-hero .wp-block-heading {
    max-width: 100%;
  }

  .lft-hero img {
    aspect-ratio: 4 / 3;
  }

  .lft-footer .has-text-align-right {
    text-align: left;
  }
}

