/* ==========================================================================
   SOW2SAUTE — styles.css
   Single full-bleed hero landing page. Mobile-first, no JS.
   Sections:
     1. Palette & tokens
     2. Reset & base
     3. Hero shell (image, scrim, grain)
     4. Hero content — top / center / bottom
     5. Links & icons
     6. Responsive
     7. Load animation
     8. Accessibility & motion
   ========================================================================== */


/* ==========================================================================
   1. PALETTE & TOKENS
   Change the six colors below and the whole page follows.
   ========================================================================== */

:root {
  --clr-olive-deep:  #2E3A22;  /* scrim over the photo, page fallback */
  --clr-olive:       #55663A;
  --clr-sage:        #B9C29F;  /* small type over the image */
  --clr-terracotta:  #C2653F;  /* the "2" in the wordmark, hover states */
  --clr-cream:       #F7F2E7;  /* headline type */
  --clr-linen:       #ECE3D2;

  --bg-fallback: var(--clr-olive-deep);
  --text-light:  var(--clr-cream);
  --text-muted:  var(--clr-sage);
  --accent:      var(--clr-terracotta);

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-wordmark: clamp(3rem, 13vw, 7.5rem);
  --fs-tagline:  clamp(1.05rem, 3.6vw, 1.55rem);
  --fs-small:    0.875rem;
  --fs-micro:    0.7rem;

  --gutter: 1.5rem;

  /* How much of the photo shows through. Lower = more image, less contrast. */
  --image-opacity: 0.62;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg-fallback);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1 { margin: 0; }
p  { margin: 0; }


/* ==========================================================================
   3. HERO SHELL
   Stack, bottom to top: photo -> olive scrim -> film grain -> content.
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh; /* fallback above for older browsers */
  overflow: hidden;
  background: var(--bg-fallback);
}

/* The photo itself */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: var(--image-opacity);
  background: var(--bg-fallback);
}

/* Olive scrim — heavier top and bottom so the small type stays readable */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(46, 58, 34, 0.72) 0%,
      rgba(46, 58, 34, 0.42) 38%,
      rgba(46, 58, 34, 0.52) 68%,
      rgba(46, 58, 34, 0.86) 100%
    );
}

/* Fine grain — takes the digital sheen off the photo. Remove if you don't want it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}


/* ==========================================================================
   4. HERO CONTENT — three rows: top / center / bottom
   ========================================================================== */

.hero-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 2rem var(--gutter) 2.2rem;
  text-align: center;
}

/* --- Top: place label, flanked by stitched rules --- */
.place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.seam {
  width: 28px;
  height: 1px;
  flex: none;
  background-image: linear-gradient(90deg, var(--clr-sage) 55%, transparent 55%);
  background-size: 6px 1px;
  opacity: 0.75;
}

/* --- Center: wordmark and tagline --- */
.hero-center {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-wordmark);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-light);
  text-shadow: 0 2px 24px rgba(20, 26, 14, 0.35);
}
.wordmark-mark { color: var(--accent); }

.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-tagline);
  line-height: 1.35;
  max-width: 22ch;
  color: var(--text-light);
  text-shadow: 0 1px 16px rgba(20, 26, 14, 0.4);
}

.note {
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 40ch;
}

/* --- Bottom: links and copyright --- */
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.copyright {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(185, 194, 159, 0.75);
}


/* ==========================================================================
   5. LINKS & ICONS
   ========================================================================== */

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .filled { fill: currentColor; stroke: none; }


/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */

@media (min-width: 640px) {
  :root { --gutter: 2.5rem; }

  /* Rules flanking the place label get longer with room to breathe */
  .seam { width: 56px; }

  .hero-inner { padding-block: 2.6rem 2.8rem; }
}

@media (min-width: 900px) {
  .hero-inner { padding-block: 3rem 3.2rem; }
  .links { gap: 2.2rem; }

  /* Copyright tucks to the right on wide screens */
  .hero-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .links { justify-content: flex-start; }
}


/* ==========================================================================
   7. LOAD ANIMATION
   One quiet staggered fade on arrival. Disabled under reduced motion (§8).
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero-top    { animation: rise 0.9s ease-out 0.05s both; }
.hero-center { animation: rise 0.9s ease-out 0.20s both; }
.hero-bottom { animation: rise 0.9s ease-out 0.38s both; }


/* ==========================================================================
   8. ACCESSIBILITY & MOTION
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
  .hero-top, .hero-center, .hero-bottom { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
