:root {
  --accent: hsl(186, 100%, 33%);
  --accent-dark: hsl(186, 100%, 23%);
  --text: #111;
  --muted: #767676;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --serif: "Hoefler Text", Garamond, "Times New Roman", serif;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font: 1.125rem/1.8 var(--serif); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, .site-header, .site-footer, table { font-family: var(--sans); }

.site-header { padding: 1rem 1.25rem; }
.home .site-header {
  color: #fff;
  min-height: 60vh;
  background: linear-gradient(hsla(186, 100%, 33%, 0.75), hsla(186, 100%, 33%, 0.75)), url("/assets/images/header.jpeg") center / cover;
}
.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-title { font-weight: 700; font-size: 1.25rem; color: inherit; text-decoration: none; }
.home .site-title, .home .site-nav a { color: #fff; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.main-menu { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.75rem !important; }
.main-menu > li { position: relative; }
.site-nav a { font-weight: 700; text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; }
.sub-menu { display: none; position: absolute; z-index: 1; background: var(--accent); padding: 0.5rem 1rem !important; min-width: 14rem; }
.sub-menu a { color: #fff; }
.main-menu > li:hover .sub-menu, .main-menu > li:focus-within .sub-menu { display: block; }

.page-header h1 { font-size: 2.25rem; line-height: 1.2; margin: 2rem 0 0; }
.home .page-header { display: none; }

.content { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.content table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid #ccc; padding: 0.5em; text-align: left; }
.content img { max-width: 100%; height: auto; }

.button { display: inline-block; background: var(--accent); color: #fff; font: 700 1.125rem var(--sans); padding: 0.75rem 1.25rem; border-radius: 5px; text-decoration: none; }
.button:hover { background: var(--accent-dark); color: #fff; }

.site-footer { color: var(--muted); font-size: 0.9rem; padding: 2rem 1.25rem; max-width: 46rem; margin: 0 auto; }

@media (max-width: 600px) {
  .sub-menu { position: static; display: block; background: none; padding: 0 0 0 1rem !important; }
  .sub-menu a { color: inherit; }
  .page-header h1 { font-size: 1.75rem; }
}
