:root {
  --bg: #f5f2ec;
  --bg-alt: #e7e0d2;
  --text: #2b261f;
  --accent: #7c5a32;
  --accent-dark: #5a3e1f;
  --muted: #6f665a;
  --border: #d2c6b5;
  --footer-bg: #201b15;
  --footer-text: #e4ded3;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --container-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 242, 236, 0.98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.logo img {
  height: 64px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-wrap: nowrap;
}

.main-nav a {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Language Switcher */

.lang-switcher {
  flex-shrink: 0;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.lang-switcher a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.lang-switcher img {
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Buttons */

.btn-primary,
.btn-secondary {
  display: inline-block;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.btn-primary:hover,
.btn-secondary:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-dark);
}

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

/* Hero */

.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  margin: 0 0 1.5rem;
}

.hero-logo-large {
  width: 100%;
  max-width: 690px;
  height: auto;
}

.lead {
  font-size: 1.05rem;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.page-header {
  padding: 3.5rem 0 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-top: 0.3rem;
}

.overtitle {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--muted);
}

.prose > p,
.prose > ul,
.prose > ol,
.prose > h2,
.prose > h3 {
  max-width: 46rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

/* Inline links inside text need more than color to stand out */
.prose p a:not([class]),
.contact-details a,
.form-hint a,
.note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}

.center {
  text-align: center;
}

/* Cards, calls to action, notes */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
}

.card p {
  flex-grow: 1;
}

.card-link {
  font-weight: bold;
}

.cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta h2 {
  margin-top: 0;
}

.cta p {
  max-width: 36rem;
  margin-inline: auto;
}

.note {
  color: var(--muted);
  font-style: italic;
  border-left: 3px solid var(--border);
  padding-left: 1rem;
}

/* Gallery & news */

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

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.gallery-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.news-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.news-item time {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-item h2 {
  margin: 0.25rem 0 0.5rem;
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 3rem;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: underline;
  text-decoration-color: rgba(228, 222, 211, 0.35);
  text-underline-offset: 3px;
}

.site-footer a:hover {
  text-decoration-color: currentColor;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-block: 2.5rem 1.5rem;
}

.footer-nav {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-nav li+li {
  margin-top: 0.35rem;
}

.site-footer .footer-nav a {
  text-decoration: none;
}

.site-footer .footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem 0;
  font-size: 0.8rem;
  color: #c9c1b4;
}

.footer-bottom p {
  margin: 0;
}

/* Contacts */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-details h2,
.contact-form-wrapper h2 {
  margin-top: 0;
}

.contact-details dl {
  margin: 0;
}

.contact-details dt {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

.contact-form-wrapper {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--accent-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fdfdfd;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.form-hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 1rem;
  }

  .logo img {
    height: 52px;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-logo-large {
    max-width: 85%;
    margin-inline: auto;
  }

  .contact-form-wrapper,
  .cta {
    padding: 1.25rem;
  }
}
