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

:root {
  --bg-base: #060504;
  --bg-glow: #1a1510;
  --text-ivory: #F8F3EA;
  --text-muted: #B9B0A4;
  --text-dim: #928B82;
  --gold-antique: #C5A880;
  --hairline: #24211D;
  --hairline-glow: #3D372F;
}

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

html {
  background-color: var(--bg-base);
}

body {
  background-color: var(--bg-base);
  color: var(--text-ivory);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow */
body::before {
  content: "";
  position: fixed;
  top: -20vh;
  left: -20vw;
  width: 140vw;
  height: 140vh;
  background: radial-gradient(circle at 50% 40%, var(--bg-glow) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.7;
  animation: breathe 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes breathe {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 0.8; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-ivory);
  font-weight: 400;
}

a {
  color: var(--gold-antique);
  text-decoration: none;
  transition: all 0.4s ease;
}

a:hover {
  color: var(--text-ivory);
}

a:focus-visible {
  outline: 1px solid var(--gold-antique);
  outline-offset: 4px;
}

strong {
  font-weight: 400;
  color: var(--text-ivory);
}

/* Page load animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.container, .landing-container, .policy-page {
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 32px;
}

/* Landing page specific */
.landing-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.header {
  margin-bottom: auto;
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--text-ivory);
  letter-spacing: 0.05em;
}

.hero {
  margin-top: 15vh;
  margin-bottom: 15vh;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 24px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 56px;
  align-items: flex-start;
}

.btn-primary {
  display: inline-block;
  background-color: var(--text-ivory);
  color: var(--bg-base);
  border: 1px solid var(--text-ivory);
  padding: 18px 48px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-ivory);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
}

.contact-link {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
}

.contact-link:hover {
  color: var(--gold-antique);
  border-bottom-color: var(--gold-antique);
}

.footer {
  margin-top: auto;
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}

.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.footer-link:hover {
  color: var(--text-ivory);
}

/* Document pages (Terms, Privacy) */
.back-link {
  display: inline-block;
  margin-bottom: 64px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  border-bottom: none;
}

.back-link:hover {
  color: var(--text-ivory);
}

.doc-header {
  margin-bottom: 80px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 32px;
}

.doc-title {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.doc-content h2 {
  font-size: 24px;
  font-weight: 400;
  margin-top: 64px;
  margin-bottom: 24px;
  color: var(--gold-antique);
  letter-spacing: 0.02em;
}

.doc-content p {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 16px;
}

.doc-content strong {
  color: var(--text-ivory);
}

.doc-content a {
  color: var(--text-ivory);
  border-bottom: 1px solid var(--hairline-glow);
  padding-bottom: 2px;
}

.doc-content a:hover {
  border-bottom-color: var(--text-ivory);
}

/* Privacy Page Specifics */
.policy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 32px 120px;
}

.policy-masthead {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 40px;
  margin-bottom: 64px;
}

.policy-wordmark {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--text-ivory);
  line-height: 1;
}

.caption {
  color: var(--gold-antique);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-top: 40px;
  text-transform: uppercase;
}

.policy-title {
  font-size: 48px;
  font-weight: 300;
  line-height: 1.15;
  margin-top: 16px;
}

.updated {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-top: 24px;
  text-transform: uppercase;
}

.standfirst {
  color: var(--text-ivory);
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 80px;
  max-width: 600px;
}

.policy-section,
.restraint {
  margin-bottom: 64px;
}

.policy-section h2,
.restraint h2 {
  color: var(--gold-antique);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.policy-section p,
.restraint p {
  margin-bottom: 24px;
  max-width: 65ch;
  color: var(--text-muted);
  font-size: 16px;
}

.ledger {
  border-top: 1px solid var(--hairline);
  margin-top: 32px;
}

.ledger-row {
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 32px;
  grid-template-columns: 200px 1fr;
  padding: 24px 0;
}

.ledger-term {
  color: var(--text-ivory);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.ledger-description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.restraint {
  border-left: 1px solid var(--gold-antique);
  padding: 32px 0 32px 40px;
  background: linear-gradient(90deg, rgba(197, 168, 128, 0.03) 0%, transparent 100%);
}

.contact-line {
  font-size: 16px;
}

.policy-section a {
  color: var(--text-ivory);
  border-bottom: 1px solid var(--hairline-glow);
  padding-bottom: 2px;
}

.policy-section a:hover {
  border-bottom-color: var(--text-ivory);
}

.colophon {
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 96px;
  padding-top: 40px;
  font-weight: 300;
}

.colophon-mark {
  color: var(--gold-antique);
  font-size: 20px;
  margin-bottom: 12px;
  display: block;
  font-family: 'Cormorant Garamond', serif;
}

@media (max-width: 600px) {
  .landing-container {
    padding: 40px 24px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .actions {
    width: 100%;
  }
  .btn-primary {
    width: 100%;
  }
  .contact-links {
    flex-direction: column;
    gap: 20px;
  }
  .container, .policy-page {
    padding: 64px 24px 80px;
  }
  .doc-title, .policy-title {
    font-size: 40px;
  }
  .standfirst {
    font-size: 22px;
  }
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .restraint {
    padding: 24px 0 24px 24px;
  }
}
