@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --sand: #F5F0E8;
  --sand-dark: #EAE3D2;
  --ocean: #2C4A5A;
  --ocean-light: #3D6475;
  --seafoam: #8FBCB0;
  --seafoam-light: #B8D8D2;
  --rope: #C4956A;
  --rope-light: #DDB896;
  --ink: #1E2D35;
  --muted: #7A8D8A;
  --white: #FDFAF5;
}

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

body {
  background: var(--sand);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  line-height: 1.7;
}

/* Wave background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(143,188,176,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196,149,106,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(44,74,90,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Header */
.site-header {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--ocean);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.site-logo .logo-italic {
  font-style: italic;
  color: var(--rope);
}

.site-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.wave-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--seafoam);
}
.wave-divider::before,
.wave-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--seafoam-light), transparent);
}
.wave-divider svg { flex-shrink: 0; opacity: 0.6; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--ocean); }
.back-link::before { content: '←'; }

/* Module cards (home) */
.modules-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.module-card {
  background: var(--white);
  border: 1px solid rgba(44,74,90,0.1);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--seafoam);
  opacity: 0;
  transition: opacity 0.2s;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(44,74,90,0.08);
  border-color: rgba(44,74,90,0.2);
}
.module-card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.card-body { flex: 1; }

.card-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rope);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ocean);
  line-height: 1.2;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.card-arrow {
  color: var(--seafoam);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Page content */
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 300;
  color: var(--ocean);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rope);
  font-weight: 400;
  margin-bottom: 2rem;
}

.prose {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.prose p + p { margin-top: 1rem; }

/* Letter card */
.letter-card {
  background: var(--white);
  border: 1px solid rgba(44,74,90,0.1);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  position: relative;
}
.letter-card::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  color: var(--seafoam-light);
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  line-height: 1;
  pointer-events: none;
}

/* Steps */
.steps { margin: 2rem 0; }

.step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sand-dark);
}
.step:last-child { border-bottom: none; margin-bottom: 0; }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ocean);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-body { flex: 1; }

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--ocean);
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.step-text {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.7;
}

/* Prompt boxes */
.prompt-box {
  background: rgba(143,188,176,0.12);
  border-left: 3px solid var(--seafoam);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.prompt-box p {
  font-size: 0.85rem;
  color: var(--ocean);
  line-height: 1.6;
  font-style: italic;
}

.prompt-box ul {
  list-style: none;
  padding: 0;
}

.prompt-box ul li {
  font-size: 0.85rem;
  color: var(--ocean);
  line-height: 1.6;
  font-style: italic;
  padding: 0.2rem 0;
}
.prompt-box ul li::before {
  content: '~ ';
  color: var(--seafoam);
}

/* Timing badge */
.timing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sand-dark);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* Section heading */
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--ocean);
  font-weight: 400;
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sand-dark);
}

/* Reflection textarea */
.reflection-block {
  margin: 1.5rem 0;
}
.reflection-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}
.reflection-textarea {
  width: 100%;
  min-height: 100px;
  background: var(--white);
  border: 1px solid rgba(44,74,90,0.15);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s;
  font-weight: 300;
  line-height: 1.6;
}
.reflection-textarea:focus {
  outline: none;
  border-color: var(--seafoam);
}
.reflection-textarea::placeholder { color: var(--muted); opacity: 0.6; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}
.btn-primary:hover { background: var(--ocean-light); }

.btn-outline {
  background: transparent;
  color: var(--ocean);
  border-color: rgba(44,74,90,0.3);
}
.btn-outline:hover { background: var(--white); border-color: var(--ocean); }

.btn-rope {
  background: var(--rope);
  color: var(--white);
  border-color: var(--rope);
}
.btn-rope:hover { background: var(--rope-light); border-color: var(--rope-light); color: var(--ocean); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Info note */
.info-note {
  background: rgba(196,149,106,0.1);
  border: 1px solid rgba(196,149,106,0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.83rem;
  color: var(--ocean);
  line-height: 1.6;
  margin: 1.5rem 0;
}
.info-note strong { font-weight: 500; color: var(--rope); }

/* Footer */
.page-footer {
  text-align: center;
  padding: 2rem 0 0;
  border-top: 1px solid var(--sand-dark);
  margin-top: 3rem;
}
.page-footer p {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* User notes checklist */
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px solid var(--sand-dark);
}
.checklist li:last-child { border-bottom: none; }
.checklist li input[type=checkbox] {
  margin-top: 3px;
  accent-color: var(--seafoam);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Progress indicator */
.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.25rem 0 0.5rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.progress-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--seafoam-light);
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.progress-step.active .progress-step-dot {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--white);
  font-weight: 500;
}

.progress-step.done .progress-step-dot {
  background: var(--seafoam);
  border-color: var(--seafoam);
  color: var(--white);
}

.progress-step-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.progress-step.active .progress-step-label {
  color: var(--ocean);
  font-weight: 500;
}

.progress-line {
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--seafoam-light);
  margin: 0 4px;
  margin-bottom: 1.1rem;
}

/* Responsive */
@media (max-width: 480px) {
  .container { padding: 1.5rem 1rem 3rem; }
  .letter-card { padding: 1.5rem 1.5rem; }
}
