:root {
  --green: #527c1f;
  --green-light: #80bf9a;
  --green-pale: #cce5d7;
  --text: #3a3a3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 system-ui, sans-serif;
  color: var(--text);
  overflow-wrap: anywhere;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* Header */
.topbar { height: 50px; background: var(--green-light); }

.hero {
  position: relative;
  height: 221px;
  border-top: 1px solid #e5e5e5;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(128, 191, 154, .45), rgba(128, 191, 154, .3));
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px 16px 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.brand img { width: 73px; height: 102px; }
.brand strong { display: block; font: bold 28px/1.2 Georgia, serif; color: var(--green); overflow-wrap: normal; }
.brand small  { font-size: 15px; color: var(--green); }

nav a {
  margin-left: 28px;
  text-decoration: none;
}

/* Content */
.layout {
  display: flex;
  gap: 74px;
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

main { flex: 1; }
main p { margin: 20px 0 36px; }

aside {
  width: 231px;
  padding: 60px 0 0 62px;
  border-left: 1px solid #ddd;
}
aside a { display: block; margin-bottom: 20px; }

.sponsors { text-align: center; margin-top: 60px; }
.sponsors a { display: block; margin: 0 auto 40px; }
.sponsors a:first-child { width: 566px; }

/* Privacy page */
.crumbs {
  margin: 0;
  padding: 7px max(24px, (100% - 1264px) / 2);
  border-bottom: 1px solid #ddd;
  color: #666;
}
.crumbs a { color: #000; text-decoration: none; }
.crumbs span { color: var(--green); }

h1 { font: bold 30px Georgia, serif; margin: 100px 0 20px; }
h2 { font: bold 20px Georgia, serif; text-align: center; margin: 0; }
.updated { font-size: 10px; text-align: right; color: #bbb; }

/* Footer */
footer {
  background: var(--green-light);
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.columns {
  display: flex;
  max-width: 1330px;
  margin: 0 auto;
  padding: 50px 24px 70px;
}
.columns > div { flex: 1; }
.columns a { color: #111; text-decoration: none; }

.copyright { padding: 20px 24px; background: var(--green-pale); }

@media (max-width: 1000px) {
  .hero { height: 140px; }

  .site-header { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 24px; }
  .brand strong { font-size: 22px; }
  .brand small  { font-size: 14px; }
  nav a { margin: 0 20px 0 0; }

  .layout { flex-direction: column; gap: 0; }
  aside { width: auto; padding: 0; border: 0; text-align: center; }
  aside a { max-width: 300px; margin: 0 auto 20px; }

  h1 { margin-top: 40px; }
  .sponsors a:first-child { width: auto; }

  .columns { flex-direction: column; gap: 24px; padding: 40px 24px; }
}
