/* Drift Website - Arts & Crafts Inspired Design */

:root {
  /* Colours from the app theme */
  --midnight-blue: #1a3a52;
  --navy-blue: #2c4a5e;
  --forest-green: #2c5f4a;
  --sage-teal: #7ea6aa;
  --rich-gold: #c9a961;
  --light-gold: #d4b574;
  --warm-copper: #c88b58;
  --paper-white: #fffcf7;
  --paper-cream: #faf5ed;
  --warm-paper: #f9f3ea;
  --charcoal-grey: #535f63;
  --text-dark: #4a4a4a;

  /* Vertical Rhythm System */
  /* Base line height: 1.5 (24px at 16px font size) */
  --baseline: 1.5rem;

  /* Spacing scale - multiples of baseline */
  --space-0: 0;
  --space-1: calc(var(--baseline) * 0.5);  /* 0.75rem = 12px */
  --space-2: var(--baseline);               /* 1.5rem = 24px */
  --space-3: calc(var(--baseline) * 2);    /* 3rem = 48px */
  --space-4: calc(var(--baseline) * 3);    /* 4.5rem = 72px */
  --space-5: calc(var(--baseline) * 4);    /* 6rem = 96px */
  --space-6: calc(var(--baseline) * 5);    /* 7.5rem = 120px */

  /* Typography scale */
  --text-base: 1rem;
  --text-lg: 1.5rem;
  --text-xl: 2rem;
  --text-2xl: 3rem;
  --text-3xl: 4rem;
  --text-4xl: 5rem;
}

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

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--paper-cream);
  background: linear-gradient(135deg, var(--midnight-blue), var(--navy-blue));
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--midnight-blue), var(--navy-blue));
  padding: var(--space-2) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo img {
  border-radius: 12px;
}

.logo h1 {
  font-family: 'Cinzel', serif;
  font-size: var(--text-4xl);
  line-height: 1;
  color: var(--paper-white);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Quote Section */
.quote-section {
  padding: var(--space-4) 0;
}

.macfarlane-quote {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.macfarlane-quote p {
  font-size: var(--text-lg);
  line-height: 2;
  color: var(--paper-cream);
  font-style: italic;
  margin: 0;
}

.macfarlane-quote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: 'Cinzel', serif;
  font-size: var(--text-lg);
  color: var(--light-gold);
  font-style: normal;
  text-align: right;
}

/* About Section */
.about {
  padding: var(--space-4) 0;
}

.about h2 {
  font-family: 'Cinzel', serif;
  font-size: var(--text-3xl);
  line-height: 1.125;
  text-align: center;
  color: var(--paper-white);
  margin-bottom: var(--space-4);
  font-weight: 400;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-text p {
  font-size: var(--text-xl);
  color: var(--paper-cream);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.about-text strong {
  color: var(--light-gold);
}

.about-text em {
  font-style: italic;
  color: var(--light-gold);
}

/* Form Section */
.form-section {
  padding: var(--space-4) 0;
}

.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: var(--space-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-wrapper iframe {
  width: 100%;
  height: 1112px;
  border: none;
  border-radius: 4px;
  display: block;
}

/* Footer */
footer {
  background: var(--midnight-blue);
  color: var(--paper-cream);
  padding: var(--space-3) 0;
  border-top: 3px solid var(--rich-gold);
  margin-top: auto;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--paper-cream);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--light-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo h1 {
    font-size: var(--text-lg);
  }

  .macfarlane-quote p {
    font-size: var(--text-base);
  }

  .macfarlane-quote cite {
    font-size: var(--text-base);
  }

  .about h2 {
    font-size: var(--text-xl);
  }

  .about-text p {
    font-size: var(--text-lg);
  }

  .form-wrapper {
    padding: var(--space-1);
  }

  .form-wrapper iframe {
    height: 900px;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}
