/* ═══════════════════════════════════════════════════════════
   OPEN HEART FLORA
═══════════════════════════════════════════════════════════ */


/* ── FONTS ──────────────────────────────────────────────── */

@font-face {
  font-family: 'Rascal';
  src: url('fonts/RASCAL__.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ── TOKENS ─────────────────────────────────────────────── */

:root {
  /* Light palette — pulled from backdrop, hero photo, and flower illustration */
  --c-ground:  #F0EADB;   /* warm parchment, echoes backdrop.png */
  --c-text:    #6D230B;   /* deep burgundy-brick */
  --c-muted:   #9E5C3A;   /* warm terracotta mid-tone */
  --c-accent:  #7A7A28;   /* muted olive-gold, from flower centre */
  --c-divide:  #D8C9A4;   /* warm tan */

  /* Dark sections (work, footer) — always dark regardless of OS theme */
  --c-dark-bg: rgba(36, 11, 4, 0.85);

  /* Type */
  --f-display: "IM Fell English", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body:    "IM Fell English", "Palatino Linotype", Palatino, Georgia, serif;

  /* Scale */
  --t-2xs: 0.75rem;
  --t-xs:  0.875rem;
  --t-sm:  1.0625rem;
  --t-md:  1.125rem;
  --t-lg:  1.5rem;
  --t-xl:  1.75rem;
  --t-2xl: 2.125rem;
  --t-3xl: clamp(2rem, 4.2vw, 3rem);

  /* Space */
  --s-xs:  0.5rem;
  --s-sm:  1rem;
  --s-md:  2rem;
  --s-lg:  4.5rem;
  --s-xl:  8rem;
  --s-2xl: 13rem;
}

/* Dark mode — adaptive sections (manifesto, story, closing) go dark */
@media (prefers-color-scheme: dark) {
  :root {
    --c-ground:  #1E1008;
    --c-text:    #F0E8D8;
    --c-muted:   #C4906A;
    --c-accent:  #AAAA3A;
    --c-divide:  #3D2015;
  }
}

:root[data-theme="dark"] {
  --c-ground:  #1E1008;
  --c-text:    #F0E8D8;
  --c-muted:   #C4906A;
  --c-accent:  #AAAA3A;
  --c-divide:  #3D2015;
}

:root[data-theme="light"] {
  --c-ground:  #F0EADB;
  --c-text:    #6D230B;
  --c-muted:   #9E5C3A;
  --c-accent:  #7A7A28;
  --c-divide:  #D8C9A4;
}


/* ── RESET ──────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background-color: var(--c-ground);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-transform: lowercase;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ── SCROLL REVEAL ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity  3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Sequential stagger within sections */
.story__row:nth-child(2).reveal     { transition-delay: 0.1s; }
.work__grid.reveal                  { transition-delay: 0.14s; }
.contact-section__form-wrap.reveal  { transition-delay: 0.2s; }
.footer__nav.reveal                 { transition-delay: 0.1s; }


/* ── SITE HEADER ────────────────────────────────────────── */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--s-sm) var(--s-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  padding-top: 40px;
  margin: 0 auto;
  width: 100%;
}

.site-header__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo {
  height: 48px;
  width: auto;
  opacity: 1;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
}

.site-header__contact {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 1.2rem;
  border: 1.5px solid rgba(255, 255, 255, 1);
  background-color: transparent;
  color: rgba(255, 255, 255, 1);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-style: italic;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 9999px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header__contact:hover {
  background-color: rgba(255, 255, 255, 0.90);
  color: var(--c-text);
}

/* Hero2 "Get in touch" CTA — same pill style as header contact */
.hero-cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--s-md);
  padding: 0.5rem 1.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background-color: transparent;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--f-body);
  font-style: normal;
  font-size: var(--t-xs);
  letter-spacing: 0.13em;
  text-transform: lowercase;
  text-decoration: none;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.hero-cta:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 1);
}


/* ── HERO LOAD ANIMATION ────────────────────────────────── */

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeOnly {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__logo-wrap {
  animation: heroFadeIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero .hero__tagline {
  animation: heroFadeIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero__scroll {
  animation: heroFadeIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.site-header__logo-link,
.site-header__contact {
  animation: heroFadeOnly 3s ease 0.7s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-wrap,
  .hero .hero__tagline,
  .hero__scroll,
  .site-header__logo-link,
  .site-header__contact {
    animation: none;
  }
}

/* ── HERO ───────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  background-image: url(images/openhearthero.png);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero2 {
  position: relative;
  width: 100%;
  padding: var(--s-xl) var(--s-md);
  background-color: var(--c-ground);
  background-image: url(images/backdrop.png);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-color-scheme: dark) {
  .hero2 {
    background-image:
      linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
      url(images/backdrop.png);
  }
}
:root[data-theme="dark"] .hero2 {
  background-image:
    linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
    url(images/backdrop.png);
}
:root[data-theme="light"] .hero2 {
  background-image: url(images/backdrop.png);
}

/* Vignette: lightens top slightly for header legibility, darkens bottom for tagline */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(8, 7, 5, 0.28) 0%, transparent 58%),
    linear-gradient(
      to bottom,
      rgba(8, 7, 5, 0.22) 0%,
      transparent 16%,
      rgba(8, 7, 5, 0.04) 50%,
      rgba(8, 7, 5, 0.58) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.hero2__inner {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
}

.hero2__flower {
  width: min(120px, 20vw);
  height: auto;
  flex-shrink: 0;
  opacity: 0.85;
  filter: url(#logo-sketch);
}

/* Banner quote — dark text */
.hero2 .hero__tagline {
  font-family: 'Rascal', var(--f-display);
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  color: var(--c-text);
  text-shadow: none;
}

.hero2 .hero__tagline p {
  text-align: center;
}

/* Each sentence on its own line, wrapped evenly */
.hero2__line {
  display: block;
  text-wrap: balance;
}

.hero2 .accent-word {
  font-size: 1em;
  filter: none;
}

.hero2 .story__body {
  text-align: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.hero2__cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--s-md);
  padding: 0.35rem 1.4rem;
  border: 1.5px solid var(--c-text);
  border-radius: 9999px;
  background: transparent;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-style: italic;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero2__cta:hover {
  background-color: var(--c-text);
  color: var(--c-ground);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-sm);
  padding: 0 var(--s-md);
  text-align: center;
}

.hero__logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.hero__logo-text {
  font-family: 'Rascal', var(--f-display);
  font-size: clamp(3.75rem, 10vw, 8rem);
  font-weight: normal;
  color: rgba(255, 255, 255, 0.95);
  text-transform: none;
  white-space: nowrap;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45), 0 4px 40px rgba(0, 0, 0, 0.28);
  filter: url(#logo-sketch) drop-shadow(0 2px 22px rgba(0, 0, 0, 0.3));
}


@media (max-width: 600px) {
  .hero__logo-text {
    font-size: clamp(3rem, 17vw, 5.5rem);
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-text {
    filter: drop-shadow(0 2px 22px rgba(0, 0, 0, 0.3));
  }
  .eyebrow,
  .contact-section__heading,
  .accent-word,
  .hero2__flower,
  .contact-info__flower {
    filter: none;
  }
}

.hero__tagline {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.90);
  letter-spacing: 0.025em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.42);
  margin-top: 0.25rem;
}

.hero__scroll {
  position: absolute;
  bottom: var(--s-md);
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--t-xl);
  line-height: 1;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { translate: -50% 0; }
  50%       { translate: -50% 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll { animation: none; }
}


/* ── SECTION DIVIDERS ───────────────────────────────────── */
/* Thin inset hairline between consecutive paper sections */

.story,
.work {
  position: relative;
}

.story::before,
.work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: min(1120px, calc(100% - 2 * var(--s-md)));
  height: 1px;
  background-color: var(--c-divide);
  z-index: 1;
}


/* ── MANIFESTO ──────────────────────────────────────────── */
/* Light: parchment backdrop. Dark: dark overlay on backdrop. */

.manifesto {
  background-color: var(--c-ground);
  background-image: url(images/backdrop.png);
  background-size: cover;
  background-position: center;
  padding: var(--s-xl) var(--s-md);
}

@media (prefers-color-scheme: dark) {
  .manifesto {
    background-image:
      linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
      url(images/backdrop.png);
  }
}
:root[data-theme="dark"] .manifesto {
  background-image:
    linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
    url(images/backdrop.png);
}
:root[data-theme="light"] .manifesto {
  background-image: url(images/backdrop.png);
}

.manifesto__inner {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-md);
  text-align: center;
}

.manifesto__line {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  letter-spacing: 0.19em;
  text-transform: lowercase;
  color: var(--c-muted);
  line-height: 2.1;
}

.manifesto__rule {
  width: 32px;
  height: 1px;
  background-color: var(--c-accent);
  flex-shrink: 0;
}


/* ── STORY ──────────────────────────────────────────────── */
/* Plain backdrop — clean reading, flower centred as illustration */

.story {
  background-color: var(--c-ground);
  background-image: url(images/backdrop.png);
  background-size: cover;
  background-position: center;
  padding: var(--s-xl) var(--s-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
}

@media (prefers-color-scheme: dark) {
  .story {
    background-image:
      linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
      url(images/backdrop.png);
  }
}
:root[data-theme="dark"] .story {
  background-image:
    linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
    url(images/backdrop.png);
}
:root[data-theme="light"] .story {
  background-image: url(images/backdrop.png);
}

.story__body {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--s-md);
}

/* Centered image + text pairs */
.story__row {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.story__col--image {
  flex: 0 0 min(420px, 40vw);
}


.story__col--image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.story__col--text {
  flex: 1;
  padding: var(--s-md) 0;
  text-align: center;
}

.story__col--text p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--t-lg);
  line-height: 1.9;
  color: var(--c-text);
}


/* ── WORK ───────────────────────────────────────────────── */
/* Always dark — backdrop with deep burgundy overlay */

.work {
  background-color: var(--c-ground);
  background-image: url(images/backdrop.png);
  background-size: cover;
  background-position: center;
  padding: var(--s-xl) var(--s-md);
}

.work__header {
  text-align: center;
  margin-bottom: var(--s-lg);
}

.work__instagram {
  margin-top: var(--s-md);
  font-size: var(--t-lg);
  font-style: italic;
  color: var(--c-muted);
  text-align: center;
}

.work__instagram-link {
  color: var(--c-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.work__instagram-link:hover {
  color: var(--c-text);
  border-bottom-color: var(--c-text);
}

/* ── LIGHTBOX ────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 2, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox--open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(240, 232, 216, 0.6);
  cursor: pointer;
  font-family: var(--f-body);
  transition: color 0.2s ease;
  line-height: 1;
  padding: var(--s-sm);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  color: rgba(240, 232, 216, 1);
}

.lightbox__close {
  top: var(--s-md);
  right: var(--s-md);
  font-size: var(--t-xl);
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.lightbox__prev { left: var(--s-md); }
.lightbox__next { right: var(--s-md); }

.work__item { cursor: pointer; }

.accent-word {
  font-family: 'Rascal', var(--f-display);
  font-style: normal;
  font-size: 1.5em;
  filter: url(#logo-sketch);
}

.eyebrow {
  display: inline-block;
  font-family: 'Rascal', var(--f-body);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--c-muted);
  filter: url(#logo-sketch);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1260px;
  margin: 0 auto;
}

.work__item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.work__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0, 0.25, 1);
}

.work__item:hover img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .work__item img { transition: none; }
}


/* ── CLOSING ────────────────────────────────────────────── */
/* Light: parchment backdrop. Dark: dark overlay. */

.closing {
  background-color: var(--c-ground);
  background-image: url(images/backdrop.png);
  background-size: cover;
  background-position: center;
}

@media (prefers-color-scheme: dark) {
  .closing {
    background-image:
      linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
      url(images/backdrop.png);
  }
}
:root[data-theme="dark"] .closing {
  background-image:
    linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
    url(images/backdrop.png);
}
:root[data-theme="light"] .closing {
  background-image: url(images/backdrop.png);
}

.closing__inner {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--s-2xl) var(--s-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-lg);
}

.closing__location {
  font-size: var(--t-xs);
  letter-spacing: 0.17em;
  text-transform: lowercase;
  color: var(--c-muted);
}

.closing__quote {
  border: none;
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.52;
  color: var(--c-text);
}

.closing__quote p {
  text-wrap: balance;
}


/* ── SQUIGGLY MARQUEE ───────────────────────────────────── */

.marquee-section {
  position: relative;
  background-color: var(--c-ground);
  background-image: url(images/backdrop.png);
  background-size: cover;
  background-position: center;
  height: 240px;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .marquee-section {
    background-image:
      linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
      url(images/backdrop.png);
  }
}
:root[data-theme="dark"] .marquee-section {
  background-image:
    linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
    url(images/backdrop.png);
}
:root[data-theme="light"] .marquee-section {
  background-image: url(images/backdrop.png);
}

#marqueeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* Width is set wider than the section by JS so letters are fully formed
     before they enter the visible area; section overflow:hidden clips the rest */
}

/* Shown only when JS is disabled */
.marquee-fallback {
  display: none;
  font-family: var(--f-body);
  font-size: var(--t-sm);
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--c-muted);
  padding: var(--s-md);
  text-align: center;
  line-height: 2.5;
}


/* ── FOOTER ─────────────────────────────────────────────── */
/* Always dark — deeper overlay than work section */

.footer {
  --c-text:   #F0E8D8;
  --c-muted:  rgba(240, 232, 216, 0.48);
  --c-accent: #B8B83A;
  color: var(--c-text);
  background-image:
    linear-gradient(rgba(28, 8, 2, 0.90), rgba(28, 8, 2, 0.90)),
    url(images/backdrop.png);
  background-size: cover;
  background-position: center;
  padding: var(--s-lg) var(--s-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-sm);
}

.footer__logo {
  width: auto;
  height: 32px;
  opacity: 0.35;
  margin-bottom: var(--s-sm);
}

.footer__location {
  font-family: var(--f-body);
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  color: var(--c-muted);
  text-align: center;
}

.footer__icons {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer__icon:hover {
  color: var(--c-text);
}


/* ── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 700px) {
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .story__row {
    flex-direction: column;
    max-width: 480px;
  }

  .story__col--image {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }

  .marquee-section {
    height: 160px;
  }
}

@media (max-width: 600px) {
  :root {
    --s-xl:  5.5rem;
    --s-2xl: 9rem;
    --s-lg:  3.25rem;
  }

  .site-header__logo {
    height: 40px;
  }


  .hero__tagline {
    font-size: var(--t-md);
  }

}


/* ── CONTACT SECTION ────────────────────────────────────── */

.contact-section {
  background-color: var(--c-ground);
  background-image: url(images/backdrop.png);
  background-size: cover;
  background-position: center;
  padding: var(--s-xl) var(--s-md);
}

@media (prefers-color-scheme: dark) {
  .contact-section {
    background-image:
      linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
      url(images/backdrop.png);
  }
}
:root[data-theme="dark"] .contact-section {
  background-image:
    linear-gradient(rgba(36, 11, 4, 0.85), rgba(36, 11, 4, 0.85)),
    url(images/backdrop.png);
}
:root[data-theme="light"] .contact-section {
  background-image: url(images/backdrop.png);
}

/* Centred single-column layout */
.contact-section__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info__flower {
  width: min(42px, 10%);
  height: auto;
  flex-shrink: 0;
  filter: url(#logo-sketch);
}

.contact-heading-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  margin-bottom: var(--s-lg);
}

/* Form wrap centred */
.contact-section__form-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-section__heading {
  font-family: 'Rascal', var(--f-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  font-style: normal;
  color: var(--c-text);
  text-align: left;
  filter: url(#logo-sketch);
}


/* ── CONTACT FORM ───────────────────────────────────────── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--t-sm);
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--c-muted);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-divide);
  padding: 0.55rem 0;
  font-family: var(--f-body);
  font-size: var(--t-lg);
  color: var(--c-text);
  outline: none;
  width: 100%;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: var(--c-divide);
}

.form-input:focus {
  border-bottom-color: var(--c-text);
}

.form-input--textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-submit {
  align-self: flex-start;
  margin-top: var(--s-sm);
  padding: 0.65rem 2rem;
  border: 1px solid var(--c-text);
  border-radius: 9999px;
  background: transparent;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  letter-spacing: 0.13em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.form-submit:hover {
  background-color: var(--c-text);
  color: var(--c-ground);
}

.form-submit:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .contact-section__inner {
    max-width: 100%;
  }
}
