/* Storm Luther Stavenuiter — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');

:root {
  --text: #111111;
  --muted: #5c5c5c;
  --border: #e2e2e2;
  --bg: #ffffff;
  --max-width: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header / nav */

.site-header {
  padding: 28px var(--gutter) 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-header.on-image {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-title a:hover { text-decoration: none; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 1.05rem;
}

nav.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav li {
  position: relative;
}

nav.main-nav .has-children > a::after {
  content: "⌄";
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8em;
  transform: translateY(-1px);
}

nav.main-nav .has-children {
  padding-bottom: 16px;
  margin-bottom: -16px;
}

nav.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 0;
  min-width: 220px;
  list-style: none;
  z-index: 20;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

nav.main-nav .has-children:hover .submenu,
nav.main-nav .has-children:focus-within .submenu {
  display: block;
}

nav.main-nav .submenu li { width: 100%; }

nav.main-nav .submenu a {
  display: block;
  padding: 8px 20px;
  white-space: nowrap;
}

/* Hero */

.hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 460px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-full {
  height: 100vh;
  min-height: 100vh;
}

.hero-caption {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  color: #fff;
  font-size: 0.9rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Section headings */

.section {
  padding: 64px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0;
}

.section-heading .view-all {
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1px;
}

/* Post grid */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card figure {
  margin: 0 0 20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
}

.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card a:hover img {
  transform: scale(1.03);
}

.post-card h3 {
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.25;
}

.post-card p.excerpt {
  color: var(--text);
  margin: 0 0 14px;
  font-size: 1rem;
}

.post-card .date {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: underline;
}

/* Page header (non-hero pages) */

.page-heading {
  padding: 56px 0 8px;
}

.page-heading h1 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
}

/* Footer */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--gutter) 48px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a { text-decoration: underline; }

/* Single post page */

.post-hero {
  height: 60vh;
  min-height: 380px;
}

.post-hero-title {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  right: var(--gutter);
  color: #fff;
}

.post-hero-title h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  margin: 0;
  max-width: 900px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.post-body {
  max-width: 760px;
  margin: 56px auto 0;
  font-size: 1.08rem;
}

.post-body p {
  margin: 0 0 1.4em;
}

.post-body h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 1.6em 0 0.7em;
}

.post-body blockquote {
  margin: 1.6em 0;
  padding-left: 20px;
  border-left: 3px solid var(--border);
  font-style: italic;
  color: var(--muted);
}

.post-body figure.content-img {
  margin: 2em 0;
}

.post-body figure.content-img img {
  width: 100%;
}

.post-body .content-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 2em 0;
}

.post-body .content-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .post-body .content-gallery { grid-template-columns: 1fr 1fr; }
}

.post-meta {
  max-width: 760px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Bio table */

.bio-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 1rem;
}

.bio-table td {
  border: 1px solid var(--border);
  padding: 14px 18px;
  vertical-align: top;
}

.bio-table td:first-child {
  width: 220px;
  color: var(--muted);
}

.bio-table + .bio-table {
  margin-top: 48px;
}

.contact-page p {
  font-size: 1.1rem;
}

/* NRC page */

.nrc-page {
  max-width: 900px;
  margin: 0 auto;
}

.nrc-page .content-img {
  margin: 0 0 32px;
}
