/* Kindred Farm - Shared Styles */

:root {
  --color-earth: #5d4e37;
  --color-sage: #7a8b6e;
  --color-stone: #a8a196;
  --color-cream: #f5f2ed;
  --color-parchment: #ebe6df;
  --color-text: #3d3832;
  --color-text-light: #6b6358;
  --font-main: Georgia, 'Times New Roman', serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --max-width: 720px;
  --spacing: 1.5rem;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
}

nav {
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 0.25rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--color-earth);
  border-bottom: 1px solid var(--color-earth);
}

/* Static header for inner pages */
header.static {
  position: relative;
  background-color: var(--color-parchment);
  border-bottom: 1px solid var(--color-stone);
}

/* Main Content */
main {
  flex: 1;
  padding: 3rem 0;
}

/* Hero Section (Home page) */
main.hero {
  position: relative;
  background-image: url('peter-james-eisenhaure-PbWJY0M5hRM-unsplash.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
}

main.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(245, 242, 237, 0.82);
}

main.hero .container {
  position: relative;
  text-align: center;
  max-width: 540px;
}

main.hero h1 {
  font-size: 2.75rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

main.hero .tagline {
  font-size: 1.15rem;
  color: var(--color-sage);
  margin-bottom: 2.5rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

main.hero .intro {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

main.hero .status {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

main.hero .cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--color-earth);
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

main.hero .cta:hover {
  background-color: var(--color-sage);
  color: var(--color-cream);
}

h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--color-earth);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--color-earth);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-earth);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Section spacing */
.section {
  margin-bottom: 2.5rem;
}

.section:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: var(--color-parchment);
  border-top: 1px solid var(--color-stone);
  padding: 1.5rem 0;
  margin-top: auto;
}

footer p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: center;
}

footer a {
  color: var(--color-text-light);
}

footer a:hover {
  color: var(--color-earth);
}

/* Minimal footer for hero pages */
footer.minimal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  border: none;
  padding: 1.5rem;
}

footer.minimal p {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* Contact page specific */
.contact-info {
  background-color: var(--color-parchment);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* Policy pages */
.policy-date {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  :root {
    --spacing: 1.25rem;
  }

  header {
    padding: 1rem 0;
  }

  nav ul {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  main {
    padding: 2rem 0;
  }

  main.hero {
    padding: 5rem 1.25rem 3rem;
  }

  main.hero h1 {
    font-size: 2rem;
  }

  main.hero .tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  main.hero .intro {
    font-size: 0.95rem;
  }

  main.hero .status {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  main.hero .cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  footer {
    padding: 1.25rem 0;
  }

  footer p {
    font-size: 0.8rem;
  }
}
