/* ========================================
   Holdy Announcement Page Styles
   ======================================== */

/* CSS Variables */
:root {
  /* Warm, quiet neutrals */
  --background: hsl(40, 20%, 98%);
  --foreground: hsl(30, 10%, 18%);
  --text-body: hsl(30, 8%, 40%);
  --text-caption: hsl(30, 6%, 55%);
  --divider: hsl(35, 10%, 90%);
  --border: hsl(35, 12%, 88%);
  --accent: hsl(35, 15%, 90%);
  --hover-bg: hsl(35, 15%, 95%);
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsla(40, 20%, 98%, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--foreground);
  text-decoration: none;
}

nav a {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.025em;
}

/* Quiet Link */
.quiet-link {
  position: relative;
  display: inline-block;
  color: hsla(30, 10%, 18%, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.quiet-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: hsla(30, 10%, 18%, 0.3);
  transition: width 0.5s ease;
}

.quiet-link:hover {
  color: var(--foreground);
}

.quiet-link:hover::after {
  width: 100%;
}

/* Article */
.article {
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.date {
  display: block;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-caption);
  margin-bottom: 2rem;
}

.title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 3rem;
}

.divider {
  width: 3rem;
  height: 1px;
  background-color: var(--divider);
  margin-bottom: 3rem;
}

/* Content */
.content {
  /* Container for paragraphs */
}

.paragraph {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.paragraph:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .paragraph {
    font-size: 1.125rem;
  }
}

/* Footer */
.footer {
  padding-bottom: 6rem;
}

.action-container {
  margin-bottom: 6rem;
}

.gentle-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  color: hsla(30, 10%, 18%, 0.7);
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.gentle-action:hover {
  background-color: var(--accent);
  color: var(--foreground);
  border-color: hsla(30, 10%, 18%, 0.2);
}

.check-icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
}

.thank-you {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  color: var(--text-caption);
}

.hidden {
  display: none;
}

.footer-note {
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}

.footer-note p {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  color: var(--text-caption);
}

/* ========================================
   Animations
   ======================================== */

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

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

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* ========================================
   Dark Mode (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --background: hsl(30, 10%, 8%);
    --foreground: hsl(35, 15%, 92%);
    --text-body: hsl(35, 10%, 70%);
    --text-caption: hsl(35, 8%, 55%);
    --divider: hsl(30, 8%, 20%);
    --border: hsl(30, 8%, 18%);
    --accent: hsl(30, 8%, 18%);
    --hover-bg: hsl(30, 8%, 12%);
  }

  .header {
    background-color: hsla(30, 10%, 8%, 0.8);
  }

  .quiet-link {
    color: hsla(35, 15%, 92%, 0.8);
  }

  .quiet-link::after {
    background-color: hsla(35, 15%, 92%, 0.3);
  }

  .quiet-link:hover {
    color: hsl(35, 15%, 92%);
  }

  .gentle-action {
    color: hsla(35, 15%, 92%, 0.7);
  }

  .gentle-action:hover {
    color: hsl(35, 15%, 92%);
    border-color: hsla(35, 15%, 92%, 0.2);
  }
}
