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

:root {
  /* Light mode - WCAG AAA (7:1+ contrast) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F3EF;
  --text-primary: #1a1a1a;          /* 16.1:1 on white */
  --text-secondary: #2e2e2e;        /* 12.6:1 on white */
  --accent-primary: #8B4513;        /* 7.1:1 on white - saddle brown */
  --accent-primary-hover: #6B3410;  /* darker for hover */
  --accent-secondary: #2F4538;      /* 10.1:1 on white - dark green */
  --accent-secondary-hover: #1F352A;
  --muted: #505050;                 /* 7.4:1 on white */
  --card-bg: #FFFFFF;
  --card-border: #767676;           /* 4.5:1 on white (UI elements) */
  --focus-ring: #8B4513;
  --saturn-planet: #8B4513;
  --saturn-ring: #2F4538;
  --input-border: #595959;          /* 7:1 on white */
  --btn-text: #FFFFFF;              /* button text */
}

[data-theme="dark"] {
  /* Dark mode - WCAG AAA (7:1+ contrast) */
  --bg-primary: #121218;
  --bg-secondary: #1a1a24;
  --text-primary: #f5f5f5;          /* 15.9:1 on #121218 */
  --text-secondary: #d4d4d4;        /* 11.5:1 on #121218 */
  --accent-primary: #f4b8a8;        /* 9.2:1 on #121218 - soft coral */
  --accent-primary-hover: #fcd0c4;
  --accent-secondary: #a8d8a0;      /* 10.1:1 on #121218 - soft green */
  --accent-secondary-hover: #c0e8b8;
  --muted: #b0b0b0;                 /* 7.9:1 on #121218 */
  --card-bg: #1e1e28;
  --card-border: #5a5a6a;           /* 4.5:1 on #1e1e28 */
  --focus-ring: #f4b8a8;
  --saturn-planet: #f4b8a8;
  --saturn-ring: #a8d8a0;
  --input-border: #9a9a9a;          /* 7:1 on #1e1e28 */
  --btn-text: #121218;              /* dark text on light buttons */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 100%;
}

h1, h2, h3 { 
  font-family: 'Cormorant Garamond', serif; 
  font-weight: 600; 
  line-height: 1.3; 
}

a { 
  color: inherit; 
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

*:focus { outline: none; }
*:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 600;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  transition: top 0.3s ease;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 375px) { header { padding: 1.5rem; } }
@media (min-width: 480px) { header { padding: 2rem; } }

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-saturn { width: 24px; height: 24px; flex-shrink: 0; }
.logo-saturn svg { width: 100%; height: 100%; }

.theme-toggle {
  background: none;
  border: 2px solid var(--input-border);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  color: var(--text-primary);
  transition: border-color 0.3s ease, color 0.3s ease;
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 3rem;
  text-align: center;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 375px) { main { padding: 2rem 1.5rem 4rem; } }
@media (min-width: 480px) { main { padding: 3rem 2rem 5rem; } }

.hero-saturn {
  width: clamp(50px, 12vw, 80px);
  height: clamp(50px, 12vw, 80px);
  margin-bottom: 1rem;
}
@media (min-width: 480px) {
  .hero-saturn {
    margin-bottom: 2rem;
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
  }
}
.hero-saturn svg { width: 100%; height: 100%; }

h1 {
  font-size: clamp(1.5rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
}
@media (min-width: 480px) {
  h1 { margin-bottom: 1rem; }
}
h1 em { font-style: italic; color: var(--accent-primary); }

.tagline {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
@media (min-width: 480px) { .tagline { margin-bottom: 2rem; } }

.description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: clamp(0.875rem, 2.5vw, 1.05rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  padding: 0 0.5rem;
}
@media (min-width: 480px) {
  .description {
    margin-bottom: 2.5rem;
    max-width: 590px;
    padding: 0;
  }
}

.email-form {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}
@media (min-width: 480px) {
  .email-form {
    max-width: 450px;
    padding: 0;
    margin-bottom: 2rem;
  }
}
.email-form form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .email-form form { flex-direction: row; }
}

.email-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.email-form .input-wrapper { flex: 1; }

@media (min-width: 480px) {
  .email-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
}

.email-form input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--input-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--card-bg);
  color: var(--text-primary);
}
.email-form input::placeholder { color: var(--muted); opacity: 1; }
.email-form input:focus { 
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.25);
}
[data-theme="dark"] .email-form input:focus {
  box-shadow: 0 0 0 3px rgba(244, 184, 168, 0.25);
}

.email-form button {
  padding: 0.875rem 1rem;
  background-color: var(--accent-primary);
  color: var(--btn-text);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  min-height: 48px;
  width: 100%;
}
@media (min-width: 480px) {
  .email-form button { width: auto; }
}
@media (min-width: 480px) {
  .email-form button { padding: 0.875rem 1.5rem; }
}
.email-form button:hover { background-color: var(--accent-primary-hover); }
.email-form button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.email-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.coming-soon {
  background-color: var(--bg-secondary);
  padding: 1.25rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  width: calc(100% - 1rem);
  max-width: 420px;
  border: 1px solid var(--card-border);
}
@media (min-width: 480px) {
  .coming-soon {
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    width: 100%;
  }
}

.coming-soon-title {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.coming-soon-list {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.coming-soon-list p { margin-bottom: 0.35rem; }
.coming-soon-list p:last-child { margin-bottom: 0; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 480px) { .social-links { gap: 1.5rem; } }

.social-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  padding: 0.5rem;
  min-height: 44px;
  text-decoration: none;
  border-radius: 4px;
}
.social-links a:hover { color: var(--accent-primary); }
.social-links a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.social-links svg { width: 22px; height: 22px; flex-shrink: 0; }

.email-link {
  color: var(--accent-primary);
  font-size: 1rem;
  padding: 0.5rem;
  display: inline-block;
  min-height: 44px;
  line-height: 1.8;
}
.email-link:hover { color: var(--accent-primary-hover); }

footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
@media (min-width: 480px) { footer { padding: 2rem; } }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}