/* --- Inter (Body Font) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* Assumes your file is named something like Inter-Regular.ttf */
  src: url('/fonts/Inter.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  /* Assumes your file is named something like Inter-Bold.ttf */
  src: url('/fonts/Inter.ttf') format('truetype');
}

/* --- Merriweather (Heading Font) --- */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  /* Assumes your file is named something like Merriweather-Bold.ttf */
  src: url('/fonts/Merriweather.ttf') format('truetype');
}

  
  /*
 * THE WEEKLY STEEP - STARTER STYLESHEET
 */

/* 1. FONTS & RESET
--------------------------------------------- */
:root {
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Merriweather', serif;

  --color-text: #333333;
  --color-primary: #006400; /* Dark Green */
  --color-primary-dark: #004d00;
  --color-bg-light: #FFFFFF;
  --color-bg-dark: #3a3a3a; /* Dark gray for hero */
  --color-bg-grey: #f9f9f9;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-primary);
}

/* Visually-hidden utility class */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 2. LAYOUT
--------------------------------------------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/*
 * 2.5 HEADER STYLES
 * -------------------------------------------
 */

header {
  background-color: var(--color-bg-dark);
  padding: 1.5rem 1.5rem;
  text-align: center;
}

header .home-link {
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

header .home-link:hover {
  text-decoration: underline;
}

/* 3. SECTION STYLES
--------------------------------------------- */

/* HERO SECTION */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-image: url('/img/tea.png');
  color: #FFFFFF;
  padding: 6rem 1.5rem;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h3 {
  color: #c0c0c0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-body);
  font-weight: 700;
}

.hero-headline {
  font-size: 3rem;
}

.hero-section .subhead {
  font-size: 1.125rem;
  max-width: 650px;
  margin: 0 auto;
}

.hero-section .privacy-note {
  font-size: 0.875rem;
  color: #c0c0c0;
  margin-top: 1rem;
  margin-bottom: 0;
}
.hero-section .privacy-note a {
  color: #FFFFFF;
  text-decoration: underline;
}

/* FEATURES SECTION */
.features-section {
  padding: 4rem 1.5rem;
  text-align: center;
}
.features-section h2 {
  font-size: 2.25rem;
}
.features-section > .container > p {
  max-width: 700px;
  margin: 0 auto 3rem auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}
.feature-item {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.feature-item h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
}

/* FINAL CTA SECTION */
.cta-section {
  background-color: var(--color-bg-grey);
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-section h2 {
  font-size: 2.25rem;
}

/* 4. FORM STYLES
--------------------------------------------- */
.signup-form {
  display: flex;
  flex-direction: column; /* This stacks the row and the consent box */
  align-items: center;
  gap: 0.75rem; /* This adds space between the row and consent box */
  margin-top: 2rem;
}
.signup-form input[type="email"] {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  flex-grow: 1; /* This makes it fill the space */
  min-width: 250px;
}
.signup-form button[type="submit"] {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.signup-form button[type="submit"]:hover {
  background-color: var(--color-primary-dark);
}
.form-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 500px; /* Adjust as needed */
}
.form-consent {
  /* This aligns it with our other form elements */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
  
  /* Sizing and alignment */
  max-width: 400px;
  text-align: left;
  
  /* Text styling */
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Specific to the hero, where text is light */
.hero-section .form-consent {
  color: #c0c0c0;
}
.hero-section .form-consent a {
  color: #FFFFFF;
  text-decoration: underline;
}

.form-consent input[type="checkbox"] {
  /* Make the checkbox align with the first line of text */
  margin-top: 0.2em;
}

/* 5. RESPONSIVE & FOOTER
--------------------------------------------- */

/* This handles the global footer, which lives in base.njk */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--color-bg-dark);
  color: #c0c0c0;
  font-size: 0.875rem;
}
footer a {
  color: #FFFFFF;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.25rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
    max-width: 400px;
    width: 100%;
  }
  .signup-form {
    flex-direction: column;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .signup-form input[type="email"] {
     min-width: 100%;
  }
}

/* Privacy Site Styles*/
.privacy-section {
  padding: 4rem 1.5rem;
}
.privacy-section .container {
  max-width: 800px; /* Make text easier to read */
}
.privacy-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.privacy-section h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
}
.privacy-section ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}