/* A Little Bloom — one-page site */

:root {
  --ivory: #f7f1e6;
  --cream: #f3eadf;
  --kraft: #c4a574;
  --sage: #7a9274;
  --sage-deep: #5f755a;
  --pink: #e8b4bc;
  --rose: #d4a5ae;
  --charcoal: #3d342f;
  --script: #b08990;
  --muted: #6b5e55;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--charcoal);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(232, 180, 188, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 20%, rgba(122, 146, 116, 0.14), transparent 50%),
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 45%, #efe6d8 100%);
  min-height: 100vh;
}

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

a {
  color: var(--sage-deep);
  text-underline-offset: 0.2em;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ivory);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 50;
  background: rgba(247, 241, 230, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 165, 174, 0.35);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 241, 230, 0.95);
  box-shadow: 0 1px 0 rgba(61, 52, 47, 0.06);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.header-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--charcoal);
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 1.5rem) 1.25rem 3rem;
  overflow: hidden;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: hero-drift 22s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(247, 241, 230, 0.55) 0%, rgba(247, 241, 230, 0.72) 45%, rgba(243, 234, 223, 0.88) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  animation: rise-in 1.1s var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  width: min(42vw, 13.5rem);
  height: auto;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 8px 24px rgba(61, 52, 47, 0.12));
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.hero-tagline {
  margin: 0.35rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  color: var(--script);
  line-height: 1.2;
}

.hero-support {
  margin: 1rem auto 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1.15rem;
  font-style: italic;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--sage);
  color: var(--ivory);
  border-color: var(--sage);
}

.btn-primary:hover {
  background: var(--sage-deep);
  color: var(--ivory);
  border-color: var(--sage-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--rose);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.45);
  color: var(--charcoal);
}

button.btn {
  appearance: none;
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 1.25rem;
}

.section-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.frames .section-inner,
.order .section-inner {
  max-width: 52rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.story {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35) 30%, transparent);
}

.story-inner {
  max-width: 38rem;
}

.story-sub {
  margin: -0.35rem 0 1.75rem;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
}

.story-body p {
  margin: 0 0 1rem;
  color: var(--charcoal);
}

.story-emphasis {
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--script);
  text-align: center;
  margin: 1.25rem 0 !important;
}

.story-close {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(212, 165, 174, 0.45);
  text-align: center;
}

.story-close p {
  margin: 0.2rem 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.story-brand-line {
  margin-top: 1rem !important;
  font-size: 1.45rem !important;
  font-weight: 600;
  color: var(--charcoal) !important;
  letter-spacing: 0.03em;
}

.story-made {
  margin-top: 0.5rem !important;
  font-family: var(--font-script);
  font-size: 1.75rem !important;
  color: var(--script) !important;
}

.process {
  background:
    linear-gradient(90deg, transparent, rgba(212, 165, 174, 0.12), transparent),
    rgba(255, 255, 255, 0.25);
}

.process-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.process-list li {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--charcoal);
  line-height: 1.2;
  padding-left: 0;
  border-bottom: 1px solid rgba(212, 165, 174, 0.45);
  padding-bottom: 0.85rem;
}

.process-list li:last-child {
  border-bottom: none;
  color: var(--script);
}

/* ——— Gallery ——— */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-slot {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.gallery-slot > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(212, 165, 174, 0.55);
  border-bottom: none;
  display: block;
}

.frame-details {
  margin: 0;
  padding: 0.85rem 0.95rem 1rem;
  background: rgba(247, 241, 230, 0.9);
  border: 1px solid rgba(212, 165, 174, 0.55);
  border-top: 1px solid rgba(212, 165, 174, 0.35);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--charcoal);
}

.frame-details p {
  margin: 0.35rem 0 0;
}

.frame-details p:first-child {
  margin-top: 0;
}

.frame-details .frame-no {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--sage);
  margin-bottom: 0.55rem;
}

.frame-details span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.placeholder {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 25%, rgba(232, 180, 188, 0.25), transparent 45%),
    linear-gradient(160deg, var(--ivory), var(--cream));
  border: 1px solid rgba(212, 165, 174, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

.placeholder-logo {
  width: 4.5rem;
  opacity: 0.55;
}

.placeholder figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.gallery-note {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ——— Order ——— */
.order-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  max-width: 28rem;
}

.order-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.order-form input,
.order-form textarea {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--charcoal);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rose);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--sage);
  background: #fff;
}

.order-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.order-alt {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ——— Footer ——— */
.site-footer {
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(212, 165, 174, 0.4);
  background: rgba(247, 241, 230, 0.65);
}

.site-footer img {
  margin: 0 auto 0.75rem;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.footer-tag {
  margin: 0.25rem 0 0;
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--script);
}

.footer-domains {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; transform: none; }
  .hero-content,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
