/* ===== Reset & Box Model ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero-container {
    position: relative;
    height: 40%;
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
}


.hero-subtext {
    display: flex;
    align-items: top;
    justify-content: center;
}

/* ===== Rotator effect ===== */
  .rotator-item {
    margin-top: 1em;
    margin-left: 10%;
    margin-right: 10%;
    text-wrap: pretty;
    line-height: 1.4em;
    font-size: clamp(0.5em, 3vw, 1.4em);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

.divider {
    height: 1px;
    width: 40px;
    margin:auto;
    margin-top: 1em;
    margin-bottom: 1em;
    border: solid 1px #85bda6 ;
}

.birthday {
  position: fixed;
  bottom:1em;
  left: 1em;
}

/* ===== Root Defaults ===== */
:root {
  --text: #0d3129;
  --text-muted: #555;
  --bg: linear-gradient(155deg, #e8f0ed, #e0ebe6);
  --accent: #2d6249;
  --max-width: 680px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
}

/* ===== Base ===== */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Lora;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p, li, blockquote {
  text-wrap: pretty;
  max-width: 65ch;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* ===== Media ===== */
img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Layout Utility ===== */
.container {
  width: min(var(--max-width), 100% - var(--space-lg) * 2);
  margin-inline: auto;
}

/* ===== Responsive Spacing ===== */
section {
  padding-block: var(--space-xl);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e4eeea;
    --text-muted: #999;
    --bg: linear-gradient(155deg,#072320, #051d17);
    /* --bg: radial-gradient(#072320, #051d17); */
    --accent: #85bda6;
  }
}

html {
  background-color: #e8f0ed;
}

@media (prefers-color-scheme: dark) {
  html {
    background-color: #072320;
  }
}