:root {
  color-scheme: light;
  --bg: #f3efe8;
  --panel: #fffaf2;
  --text: #1f2421;
  --muted: #5a655f;
  --accent: #234c4a;
  --accent-2: #ff9800;
  --border: rgba(31, 36, 33, 0.12);
  --shadow: 0 18px 50px rgba(31, 36, 33, 0.08);
  --max: 1100px;
  --radius: 24px;
  --section-gap: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(179, 95, 47, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(35, 76, 74, 0.14), transparent 24%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-skip-ink: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 999px;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font: 700 1.1rem/1 sans-serif;
}

.eyebrow {
  margin: 0 0 0.2rem;
  font: 700 0.82rem/1.3 sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.site-nav a {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
}

main {
  padding: 1rem 0 3rem;
}

#content > section + section {
  margin-top: var(--section-gap);
}

.building-image {
  margin-bottom: 0;
  position: relative;
}

.building-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.important-news-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(31, 36, 33, 0.72);
  backdrop-filter: blur(3px);
  color: #ffffff;
}

.important-news-overlay[hidden] {
  display: none !important;
}

.important-news-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-2);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.important-news-body {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  row-gap: 0.2rem;
  align-items: center;
}

.important-news-body .eyebrow {
  color: #ffd9a6;
}

.important-news-body h3 {
  margin: 0.15rem 0 0;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 1;
  grid-row: 2;
}

.important-news-body p {
  margin: 0;
}

.important-news-body > .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.important-news-body > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.important-news-body .button {
  min-height: 2.2rem;
}

.panel {
  background: color-mix(in srgb, var(--panel) 94%, white 6%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  max-width: 35ch;
  margin-bottom: 0.9rem;
}

.hero p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.button.primary {
  background: var(--accent-2);
  color: white;
}

.button.secondary {
  color: var(--accent);
  border: 1px solid var(--border);
  background: white;
}

.hero-card {
  padding: 1.2rem;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(35, 76, 74, 0.06);
}

.hero-card ul,
.list-reset {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.latest-news {
  margin-top: 0;
  padding: 1.4rem;
}

.latest-news h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.latest-news-card h3 {
  margin-bottom: 0.5rem;
}

.latest-news-card .button {
  min-height: 2.4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.grid .panel {
  padding: 1.2rem;
}

.page-header {
  padding: 1.4rem;
}

.page-header h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 0.4rem;
}

.muted,
.meta,
.page-intro,
.article-body {
  color: var(--muted);
  line-height: 1.7;
}

.list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  padding: 1.2rem;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.meta {
  font: 0.95rem/1.4 sans-serif;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
  margin-top: 1rem;
}

.article,
.sidebar {
  padding: 1.2rem;
}


.article-body h1,
.article-body h2,
.article-body h3 {
  margin-top: 1.4rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-body code {
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(31, 36, 33, 0.08);
}

.article-body pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(31, 36, 33, 0.06);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.cookies-bar {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  justify-content: center;
}

.cookies-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max);
  width: 100%;
}

.cookies-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.cookies-content a {
  color: var(--accent);
}

.cookies-accept {
  padding: 0.6rem 1.5rem;
  background: var(--accent-2);
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}

.cookies-accept:hover {
  opacity: 0.9;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  gap: 0.8rem;
  margin-left: auto;
  flex-shrink: 0;
}

.footer-nav a {
  color: var(--text);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .article-layout,
  .grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    justify-items: start;
  }

  .card-head {
    align-items: flex-start;
  }

  .site-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cookies-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .cookies-accept {
    width: 100%;
    text-align: center;
  }

  .important-news-overlay {
    position: static;
    margin-top: 0.75rem;
    border-color: var(--border);
    background: color-mix(in srgb, var(--panel) 90%, white 10%);
    color: var(--text);
    backdrop-filter: none;
  }

  .important-news-body .eyebrow {
    color: var(--accent-2);
  }

  .important-news-body h3 {
    color: var(--text);
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1rem;
  }

  .hero {
    padding: 1rem;
  }

  .grid,
  .list,
  .article-layout {
    margin-top: 0.75rem;
  }
}
