@font-face {
  font-family: 'Delius Swash Caps';
  src: url('../fonts/DeliusSwashCaps-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Main palette */
  --color-primary: #2f7898;
  --color-secondary: #2d5a52;
  --color-bg: #fcfaf2;
  --color-text: #423e3b;
  --color-white: #ffffff;
  --color-border: #ddd8cc;

  /* Tints and variations */
  --color-primary-light: #a8d8d0;
  --color-primary-extralight: #e8f5f3;

  /* System colors */
  --color-error: #aa0000;
  --color-error-light: #fce8e8;

  --shadow-light: rgba(0, 0, 0, 0.06);
  --shadow-medium: rgba(0, 0, 0, 0.08);
  --shadow-heavy: rgba(0, 0, 0, 0.1);
  --border-white-muted: rgba(255, 255, 255, 0.1);

  --font-headings: 'Delius Swash Caps', cursive;
  --font-family: 'Quicksand', Verdana, Arial, sans-serif;
  --container-max-width: 1000px;
  --spacing: 1rem;
  font-size: 112.5%;
}

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

h1, h2 {
  font-family: var(--font-headings);
}

h1 {
  font-style: italic;
  margin-top: 0;
}
h3 {
  font-size: 1.3rem;
}
p {
  font-size: 1.1rem;
}

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

/* Header */
.header {
  padding: 1.5rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

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

.logo img {
  max-width: 280px;
  height: auto;
  display: block;
}

.menu {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-family: var(--font-family);
}

.menu a:hover {
  color: var(--color-secondary);
}

/* Intro */
.intro {
  padding: 1rem 0;
  text-align: center;
  background: var(--color-bg);
}

.intro h1 {
  color: var(--color-primary);
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 400;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.25rem;
}

/* Events */
.events {
  padding: 3.5rem 0;
  background-color: var(--color-bg);
}

.event {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px var(--shadow-light);
  border-left: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-main.has-image {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.event-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  border: 4px solid var(--color-primary);
}

.event-text {
  flex: 1;
}

.event h2 {
  color: var(--color-primary);
  margin-top: 0;
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 400;
}

.event .subtitle {
  font-style: italic;
  color: var(--color-secondary);
  font-size: 1.3rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

.dates {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--color-primary);
}

.dates h3 {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.dates ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dates li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.dates li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.event-footer {
  margin-top: 2rem;
}

.event-footer p {
  margin: 0;
}

/* Team */
.about {
  padding: 3.5rem 0;
}

.about h2 {
  text-align: center;
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  font-weight: 400;
}

.about-flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.team-info {
  flex: 1;
  min-width: 300px;
}

.team-member {
  margin-bottom: 3rem;
}

.team-member:last-child {
  margin-bottom: 0;
}

.team-member h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.team-member .bio {
  margin-bottom: 0.5rem;
}

.team-image {
  flex: 1;
  min-width: 300px;
}

.team-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-medium);
}

/* Gallery */
.gallery {
  padding: 3.5rem 0;
  background: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  transition: all 0.4s ease;
}

.gallery-item:hover img {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-heavy);
  filter: sepia(0);
}

/* Content Pages */
.content-page {
  padding: 3.5rem 0;
  min-height: 60vh;
}

.content-page h3 {
  color: var(--color-secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: var(--color-primary-extralight);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.footer h3 {
  color: var(--color-primary-light);
  margin-top: 0;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 400;
}

.footer p {
  margin: 0.5rem 0;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  border-top: 1px solid var(--border-white-muted);
  padding-top: 2rem;
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .menu {
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .event {
    padding: 2rem;
  }

  .event-main.has-image {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .event-main.has-image .event-image {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* Contact Form */
.contact {
  background-color: var(--color-bg);
}

.contact h2 {
  text-align: center;
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-weight: 400;
}

.contact-text {
  text-align: center;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
}

.contact-form {
  margin: 0 auto;
  background: var(--color-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-light);
}

.field {
  margin-bottom: 1.5rem;
}

.field.honey {
  display: none;
}

.field label, .field .label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  background-color: var(--color-white);
  transition: border-color 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field abbr {
  color: var(--color-error);
  text-decoration: none;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  font-size: 1rem;
}

.radio-group input[type="radio"],
.radio-group input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--color-primary);
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--color-secondary);
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.alert.success {
  background-color: var(--color-primary-extralight);
  color: var(--color-secondary);
  border: 1px solid var(--color-primary-light);
}

.alert.error {
  background-color: var(--color-error-light);
  color: var(--color-error);
  border: 1px solid var(--color-error-light);
}

.alert ul {
  margin: 0;
  padding-left: 1.2rem;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 2rem;
  }
}
