/* ============================================================
   SARAH SIMPSON DESIGNS — Splash Page Stylesheet
   style.css
   ============================================================

   TABLE OF CONTENTS
   -----------------
   1. TOKENS (colors, fonts, spacing) ← edit your palette here
   2. RESET
   3. TOP ACCENT LINE
   4. CORNER MARKS
   5. PAGE SHELL
   6. HEADER / NAV
   7. HERO HEADLINE
   8. HERO SUPPORT COPY
   9. BADGE (Coming Soon)
  10. FOOTER
  11. ANIMATIONS
  12. RESPONSIVE / MOBILE

   ============================================================ */


/* ============================================================
   1. TOKENS
   Edit these variables to change the whole palette at once.
   ============================================================ */

:root {

  /* — Background — */
  --bg:            #faf8f5;   /* main page background — warm white */
  --bg-rule:       #e4ddd4;   /* subtle divider / border color */

  /* — Ink — */
  --ink:           #18160f;   /* primary text — near black */
  --ink-mid:       #625e58;   /* secondary text — mid grey-brown */
  --ink-muted:     #9e9890;   /* tertiary text — muted warm grey */

  /* — Accent —
     This is the copper/terracotta pulled from the card collection foil.
     Change this one value to recolor all accents at once. */
  --accent:        #b5784a;   /* copper terracotta */
  --accent-light:  #d4a07a;   /* lighter tint — used on hover, gradients */

  /* — Typography — */
  --font-serif:    'Cormorant Garamond', serif;
  --font-serif-alt:'Cormorant Infant', serif;
  --font-sans:     'Inter', sans-serif;

  /* — Hero Headline Size —
     Uses clamp(min, preferred-vw, max).
     Raise the middle value to go bigger. */
  --hero-size:     clamp(3rem, 10.5vw, 8rem);
  --hero-weight:   500;       /* 300=light, 400=regular, 500=medium */
  --hero-lh:       0.97;      /* line height */
  --hero-ls:       -0.025em;  /* letter spacing */

  /* — Spacing — */
  --page-pad-v:    clamp(1.6rem, 4.5vw, 3rem);    /* top/bottom page padding */
  --page-pad-h:    clamp(1.5rem, 7vw, 5rem);       /* left/right page padding */
}


/* ============================================================
   2. RESET
   ============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
}


/* ============================================================
   3. TOP ACCENT LINE
   The thin copper gradient line at the very top of the page.
   To hide it: comment out this rule.
   ============================================================ */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-light) 25%,
    var(--accent) 50%,
    var(--accent-light) 75%,
    transparent 100%
  );
  z-index: 100;
  opacity: 0;
  animation: fadeIn 1.8s ease 0.3s forwards;
}


/* ============================================================
   4. CORNER MARKS
   Subtle L-shaped corner brackets.
   They are hidden by default — to show them, uncomment
   the .corner { display: block } rule below.
   ============================================================ */

.corner {
  display: none; /* ← change to "block" to enable corner marks */
  position: fixed;
  width: 18px;
  height: 18px;
  opacity: 0;
  animation: fadeIn 1s ease 2.8s forwards;
}

.corner.tl { top: 1.5rem;    left: 1.5rem;  border-top: 1px solid var(--bg-rule); border-left:  1px solid var(--bg-rule); }
.corner.tr { top: 1.5rem;    right: 1.5rem; border-top: 1px solid var(--bg-rule); border-right: 1px solid var(--bg-rule); }
.corner.bl { bottom: 1.5rem; left: 1.5rem;  border-bottom: 1px solid var(--bg-rule); border-left: 1px solid var(--bg-rule); }
.corner.br { bottom: 1.5rem; right: 1.5rem; border-bottom: 1px solid var(--bg-rule); border-right: 1px solid var(--bg-rule); }


/* ============================================================
   5. PAGE SHELL
   ============================================================ */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--page-pad-v) var(--page-pad-h);
  position: relative;
  z-index: 1;
}


/* ============================================================
   6. HEADER / NAV
   ============================================================ */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(1.8rem, 4vw, 2.8rem);
  border-bottom: 1px solid var(--bg-rule);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.15s forwards;
}

/* Logo mark + text lockup */
.nav-logo {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 0.9rem);
}

.nav-logo-img {
  width: clamp(28px, 5vw, 40px);
  height: auto;
  display: block;
  /* mix-blend-mode: multiply removes the white background
     from a JPEG logo on a light background.
     If your background is dark, change this to "screen". */
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Brand name — Inter, bolder, tighter tracking */
.nav-brand-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.56rem, 1.1vw, 0.7rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

/* Sub-label beneath brand name */
.nav-brand-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.42rem, 0.75vw, 0.5rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1;
  /* To hide: add display: none; */
}

/* Right-side nav label */
.nav-right {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.48rem, 0.9vw, 0.58rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  /* To hide: add display: none; */
}


/* ============================================================
   7. HERO HEADLINE
   ============================================================ */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

/* Optional eyebrow label above headline */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.3s forwards;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.eyebrow-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.5rem, 1vw, 0.6rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
}

/* The headline itself */
.hero-headline {
  font-family: var(--font-serif);
  font-weight: var(--hero-weight);
  font-size: var(--hero-size);
  line-height: var(--hero-lh);
  letter-spacing: var(--hero-ls);
  max-width: 14ch;
  overflow-wrap: break-word;
}

/* Individual headline line — each span or div */
.hl-line {
  display: block; /* one per line by default */
  opacity: 0;
  animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
  color: var(--ink);
}

.hl-line:nth-child(2) { animation-delay: 0.58s; }
.hl-line:nth-child(3) { animation-delay: 0.74s; }

/* Modifier classes for headline spans */
.hl-line.accent { color: var(--accent); }
.hl-line.muted  { color: var(--ink-mid); }
.hl-line.italic { font-style: italic; }

/* Inline line wrapper — put two spans on the same display line */
.inline-line {
  display: block;
  opacity: 0;
  animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

.inline-line .hl-line {
  display: inline;  /* override block so they sit side by side */
  opacity: 1;
  animation: none;
}


/* ============================================================
   8. HERO SUPPORT COPY
   ============================================================ */

.hero-support {
  margin-top: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 500px;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

/* Short copper rule + label above support copy */
.support-rule {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.4rem);
}

.support-rule-line {
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.support-rule-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.5rem, 0.95vw, 0.6rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Italic serif tagline */
.support-primary {
  font-family: var(--font-serif-alt);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--ink);
  line-height: 1.55;
  display: block;
  margin-bottom: 0.9rem;
}

/* Small-caps descriptor */
.support-secondary {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.58rem, 1.05vw, 0.68rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 2.1;
}


/* ============================================================
   9. BADGE (Coming Soon)
   ============================================================ */

.badge-wrap {
  margin-top: clamp(2rem, 5vw, 3.2rem);
  opacity: 0;
  animation: fadeUp 0.9s ease 1.5s forwards;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--ink);
  padding: 0.65rem 1.5rem 0.65rem 1.2rem;
}

/* Pulsing dot */
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2.8s ease-in-out 2.2s infinite;
}

.badge-main {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.54rem, 1.1vw, 0.65rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Secondary badge text after the divider */
.badge-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.52rem, 1vw, 0.62rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-left: 0.6rem;
  border-left: 1px solid var(--bg-rule);
  margin-left: 0.1rem;
  /* To hide: add display: none; */
}


/* ============================================================
  10. FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--bg-rule);
  padding-top: clamp(1.2rem, 2.5vw, 1.8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.85s forwards;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.5rem, 0.95vw, 0.6rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.footer-sep {
  color: var(--bg-rule);
}

.footer-email {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.5rem, 0.95vw, 0.6rem);
  letter-spacing: 0.15em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--bg-rule);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-light);
}

.footer-copy {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.48rem, 0.85vw, 0.56rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.55;
  /* To hide: add display: none; */
}


/* ============================================================
  11. ANIMATIONS
   ============================================================ */

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

/* To disable all animations — uncomment this block:

*, *::before, *::after {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

*/


/* ============================================================
  12. RESPONSIVE / MOBILE
   ============================================================ */

@media (max-width: 600px) {
  /* Hide nav right label on small screens */
  .nav-right { display: none; }

  /* Badge secondary text hidden on mobile */
  .badge-sub { display: none; }

  /* Copyright hidden on mobile to save space */
  .footer-copy { display: none; }

  /* Headline can go full width on mobile */
  .hero-headline { max-width: 100%; }
}

@media (max-width: 380px) {
  /* Very small screens — hide brand sub too */
  .nav-brand-sub { display: none; }
}
