:root {
  --blue: #2b6cb0;
  --blue-dark: #215387;
  --ink: #1a202c;
  --text: #2d3748;
  --muted: #718096;
  --line: #e2e8f0;
  --tint: #edf2f7;
  --bg: #ffffff;
  --accent: #f8491c;
  --max: 1100px;
  --read: 760px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h1 small { display: block; font-size: 1rem; font-weight: normal; color: var(--muted); margin-top: .35rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }

blockquote {
  margin: 1.25rem 0;
  padding: .25rem 1.25rem;
  border-left: 4px solid var(--blue);
  background: var(--tint);
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main.container { max-width: var(--read); padding-top: 2rem; padding-bottom: 3rem; flex: 1; width: 100%; }
main.container.wide { max-width: var(--max); }

.center { text-align: center; }
figure.center { margin: 1.5rem auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* Header and navigation */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 56px; height: auto; }

.menu-toggle { display: none; background: none; border: 0; color: var(--ink); padding: .5rem; cursor: pointer; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav li { position: relative; }
.site-nav a, .sub-toggle {
  display: flex; align-items: center; gap: .3rem;
  padding: .6rem .9rem;
  color: var(--text); text-decoration: none;
  font: inherit; font-size: 1rem;
  background: none; border: 0; cursor: pointer;
}
.site-nav a:hover, .sub-toggle:hover, .site-nav .active > a, .site-nav .active > .sub-toggle { color: var(--blue); }

.sub-menu {
  list-style: none; margin: 0; padding: .4rem 0;
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(26, 32, 44, .12);
  display: none;
}
.has-sub:last-child > .sub-menu { left: auto; right: 0; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { display: block; }
.sub-menu a { padding: .5rem 1rem; }
.sub-menu a[aria-current="page"] { color: var(--blue); font-weight: 600; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(26, 32, 44, .12); }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; padding: .5rem 16px 1rem; }
  .site-nav a, .sub-toggle { width: 100%; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .brand span { font-size: 1.05rem; }
}

/* Home */
body.home { background: var(--tint) url("/images/dock.jpg") center / cover no-repeat; }
body.home main.container {
  flex: 0 0 auto;
  max-width: 960px;
  margin: 2.5rem auto auto;
  width: calc(100% - 32px);
  padding: 2rem 1.5rem 2.5rem;
  background: rgba(255, 255, 255, .94);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(26, 32, 44, .2);
}
@media (max-width: 600px) {
  body.home main.container { margin: 1.25rem auto; padding: 1.5rem 1rem 2rem; }
}
.hero { text-align: center; padding: 1rem 0 2rem; }
.hero .lead { font-size: 1.2rem; margin: .5rem 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.card {
  display: block; padding: 1.25rem; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--text); background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(43, 108, 176, .15); color: var(--text); }
.card h2 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--blue); }
.card p { margin: 0; font-size: .95rem; }

/* Buttons */
.button {
  display: inline-block; padding: .6rem 1.4rem; border-radius: 6px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .03em;
}
.button:hover { background: var(--blue-dark); color: #fff; }
.button.big { font-size: 1.5rem; padding: .75rem 2rem; }

/* Staff */
.staff-card { background: var(--tint); border-radius: 8px; padding: 2rem 1.5rem; text-align: center; }
.staff-card img { width: 181px; height: 181px; border-radius: 50%; object-fit: cover; object-position: top; }
.staff-card h2 { margin: 1rem 0; text-transform: uppercase; }
.staff-card .role { display: block; font-size: .9rem; letter-spacing: .1em; color: var(--muted); margin-top: .25rem; }
.staff-card p { text-align: left; }
.staff-card p:last-child { text-align: center; }

/* Camp */
.camp-date { color: var(--accent); font-size: 1.15rem; }
.camp-date strong:first-child { font-size: 1.75rem; }

/* Embeds */
.embed { position: relative; width: 100%; margin: 1rem 0; background: var(--tint); border-radius: 6px; overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.map { aspect-ratio: 6 / 5; }
.embed.video { aspect-ratio: 16 / 9; background: #000; }

/* Posts */
.meta { color: var(--muted); font-size: .9rem; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.post-list .meta { display: block; }

/* File listings */
.file-list { list-style: none; padding: 0; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.file-list .meta { white-space: nowrap; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e0; text-align: center; padding: 2rem 0; font-size: .9rem; }
.site-footer p { margin: .35rem 0; }
.site-footer a { color: #fff; }
.social { display: flex; justify-content: center; gap: .75rem; margin-bottom: 1rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff;
}
.social a:hover { background: var(--blue); color: #fff; }
