:root {
  --navy: #314b63;
  --navy-deep: #263f57;
  --mint: #6ee4c3;
  --cream: #f5f1e7;
  --ink: #5f6265;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #ede8da url("assets/theme/seabluecontentbg.jpg") repeat;
  font: 15px/1.48 "ABeeZee", sans-serif;
}

a { color: inherit; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: 230px;
  padding: 28px 29px 35px;
  overflow-y: auto;
  color: white;
  background: var(--navy);
  box-shadow: 2px 0 0 rgba(255,255,255,.82), 5px 0 14px rgba(34,51,66,.12);
}

.brand {
  display: block;
  margin: 0 -10px 27px;
}

.brand img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: contain;
}

.intro h1 {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.7;
  text-transform: uppercase;
}

.intro p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.76);
  font-size: 14px;
}

.main-nav {
  display: grid;
  gap: 9px;
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(255,255,255,.028);
  font: 22px/1 "BenchNine", sans-serif;
  transition: background .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,.075);
  transform: translateX(3px);
}

.main-nav span {
  width: 29px;
  color: var(--mint);
  font-family: "ABeeZee", sans-serif;
  font-size: 19px;
}

.search { margin-top: 24px; }
.search label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.search div { display: flex; }
.search input,
.search button {
  border: 0;
  padding: 9px;
  font: inherit;
}
.search input { width: 100%; min-width: 0; }
.search button { color: white; background: #20384d; }

.site-content {
  width: min(722px, calc(100% - 290px));
  margin-left: clamp(270px, 39.5vw, 498px);
  padding: 0 0 80px;
}

.view-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.post {
  position: relative;
  margin: 0 0 52px;
  color: var(--ink);
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 2px rgba(67,58,44,.08);
}

.post:first-child { margin-top: 0; }

.post-inner { padding: 64px 60px 0; }
.post-inner > time {
  display: block;
  margin-bottom: 9px;
  color: #aaa49a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .35em;
  font: 12px "BenchNine", sans-serif;
}

.post-title {
  margin: 0 0 27px;
  color: #2d2d31;
  text-align: center;
  text-transform: uppercase;
  font: 700 40px/1.08 "BenchNine", sans-serif;
}

.post-title a { text-decoration: none; }
.post-title a:hover { color: #2f927c; }

.post-content { overflow-wrap: anywhere; }
.post-content p { margin: 0 0 17px; }
.post-content a { color: #a5a19a; }
.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
}
.post-content iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
.post-content audio { width: 100%; }
.post-content blockquote {
  margin: 20px 0;
  padding: 24px 30px;
  color: #334e65;
  border-left: 4px solid var(--mint);
  background: #f4f1e8;
  font-size: 20px;
}
.post-photo { margin: 0 0 22px; }

.post-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 35px;
  margin: 44px -60px 0;
  padding: 8px 15px;
  color: rgba(255,255,255,.78);
  background: var(--navy);
  font: 10px/1.45 "ABeeZee", sans-serif;
  text-transform: uppercase;
}

.post-tags {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-tags a,
.post-notes { text-decoration: none; }
.post-tags a:hover,
.post-notes:hover { color: white; }
.post-notes { white-space: nowrap; }

.date-badge { display: none; }

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -20px 0 45px;
  padding: 18px 24px;
  color: white;
  background: var(--navy);
  text-transform: uppercase;
  font: 18px "BenchNine", sans-serif;
}
.pagination a { text-decoration: none; }
.pagination .disabled { opacity: .35; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}
.archive-month {
  padding: 18px;
  background: white;
}
.archive-month h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font: 700 28px "BenchNine", sans-serif;
  text-transform: uppercase;
}
.archive-month ul { margin: 0; padding-left: 18px; }
.archive-month a { color: #777; }

.static-page { margin-top: 35px; }
.static-page .post-inner { padding-bottom: 55px; }
.static-page section + section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #ece7dd;
}
.static-page h2 {
  margin: 0;
  color: var(--navy);
  font: 700 29px "BenchNine", sans-serif;
  text-transform: uppercase;
}

.empty-state {
  margin: 40px 0;
  padding: 35px;
  background: white;
  text-align: center;
}
.archive-note {
  color: #a39d92;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 900px) {
  .sidebar {
    position: relative;
    width: 100%;
    max-height: none;
    padding: 18px 22px;
  }
  .brand {
    width: 260px;
    max-width: 100%;
    margin: 0 auto 10px;
  }
  .brand img { height: 120px; }
  .intro { max-width: 680px; margin: 0 auto; text-align: center; }
  .intro p { margin-bottom: 18px; }
  .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 720px;
    margin: 0 auto;
  }
  .main-nav a { min-height: 43px; justify-content: center; font-size: 18px; }
  .search { max-width: 420px; margin: 18px auto 0; }
  .site-content {
    width: min(722px, calc(100% - 28px));
    margin: 28px auto;
  }
}

@media (max-width: 600px) {
  .main-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-inner { padding: 38px 22px 0; }
  .post-title { font-size: 34px; }
  .post-footer { margin-left: -22px; margin-right: -22px; }
  .post-content iframe { height: 230px; }
  .archive-grid { grid-template-columns: 1fr; padding: 0; gap: 14px; }
}
