/* The Ivy — Design System
   Shared tokens and reusable component styles.
   Import this file on every page to keep fonts, colors, and structure consistent. */

:root {
  /* Typography */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Color */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --color-overlay: rgba(0, 0, 0, 0.35);

  /* Text shadow (for text over photography) */
  --shadow-text-strong: 0 2px 12px rgba(0, 0, 0, 0.5);
  --shadow-text-soft: 0 1px 6px rgba(0, 0, 0, 0.4);

  /* Letter spacing */
  --tracking-heading: 0.08em;
  --tracking-body: 0.02em;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Hero component — full-viewport image with centered overlay text.
   Structure:
   <section class="hero" style="background-image: url('...')">
     <div class="hero-content">
       <h1>Title</h1>
       <p>Subtitle</p>
     </div>
   </section> */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh var(--space-md) 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.25rem, 9vw, 6rem);
  line-height: 1.3;
  letter-spacing: var(--tracking-heading);
  text-shadow: var(--shadow-text-strong);
}

.hero p {
  margin-top: var(--space-sm);
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  letter-spacing: var(--tracking-body);
  text-shadow: var(--shadow-text-soft);
}
