/* ==========================================================================
   Simon Munzert — simonmunzert.com
   Self-hosted, dependency-free stylesheet.
   No web fonts, no CDNs, no trackers. System fonts + inline SVG icons only.
   Preserves the site's long-standing identity (dark-red headings, blue links).
   ========================================================================== */

:root {
  --red: #b2182b;
  --blue: #2166ac;
  --blue-hover: #0b1f33;
  --ink: #222;
  --muted: #6b6b6b;
  --rule: #e4e4e4;
  --bg: #ffffff;
  --maxw: 1000px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* Typography ---------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  color: var(--red);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: 2.6rem; letter-spacing: -.5px; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .5em; }
strong { font-weight: 700; }
em { font-style: italic; }
small { font-size: .8rem; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { color: var(--blue-hover); text-decoration: underline; }

/* Header & navigation ------------------------------------------------------- */

.site-header { padding-top: 28px; }
.site-header h1 { margin-bottom: .1em; }
.site-header h1 a { color: var(--red); }
.site-header h1 a:hover { text-decoration: none; }
.tagline {
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  padding: .6rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: .95rem;
  margin-bottom: 2rem;
}
.site-nav a { color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--red); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--red); font-weight: 700; }

/* Layout helpers ------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem 2.5rem;
  margin-bottom: 1.5rem;
}
.grid--portrait { grid-template-columns: 1.1fr 1.1fr .8fr; }

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

.section { margin-bottom: 2.5rem; }
.section h3 a { color: var(--red); }

/* Contact / icon lists ------------------------------------------------------ */

.contact { list-style: none; padding: 0; margin: 0 0 1.2em; }
.contact li { display: flex; align-items: center; gap: .6rem; margin-bottom: .45em; }

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: var(--muted);
  vertical-align: -.15em;
}
.pub-icon {
  width: 1em; height: 1em;
  fill: var(--muted);
  margin-right: .35rem;
  vertical-align: -.12em;
}

/* Portrait ------------------------------------------------------------------ */

.portrait { max-width: 100%; height: auto; border-radius: 2px; }
.credit { display: block; margin-top: .3rem; color: var(--muted); font-size: .75rem; }

/* Publications & content lists ---------------------------------------------- */

.pub { margin: 0 0 1.1em; }
.pub .sub { display: block; padding-left: 1.6rem; font-size: .92rem; color: #444; }
.pub .sub a { color: var(--blue); }

/* Year headings and publication type labels */
.year {
  font-size: 1.25rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: .2rem;
  margin: 2rem 0 1rem;
}
.ptype {
  display: inline-block;
  min-width: 5.2em;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: .08em .45em;
  margin-right: .5rem;
  text-align: center;
  vertical-align: .12em;
}

.entry { margin-bottom: 1.4rem; }
.entry h4 { margin-bottom: .15em; }

/* Callout / conditions boxes ------------------------------------------------ */

.callout {
  border-left: 3px solid var(--red);
  background: #faf6f6;
  padding: 1rem 1.2rem;
  margin: 0 0 1.5rem;
  border-radius: 0 3px 3px 0;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* Media box (video + podcast) ---------------------------------------------- */

.media-box {
  background: #f8e9eb;
  border: 1px solid #ecccd1;
  border-radius: 8px;
  padding: 1.4rem 1.6rem 1.6rem;
  margin: 0 0 2.5rem;
}
.media-box .media-title { margin-bottom: .4rem; }
.media-box p { margin-bottom: 0; }

.media-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-top: 1.3rem;
}
@media (max-width: 620px) {
  .media-tiles { grid-template-columns: 1fr; }
}

.media-tile { text-align: center; }
.media-tile a {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.media-tile img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.media-tile a:hover img,
.media-tile a:focus img {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}
.media-tile .label {
  display: block;
  margin-top: .55rem;
  font-weight: 600;
  color: var(--red);
  line-height: 1.3;
}

/* play badge overlaid on the video thumbnail */
.media-tile--video a::before,
.media-tile--video a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transition: transform .15s ease;
}
.media-tile--video a::before {
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: rgba(178, 24, 43, .92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.media-tile--video a::after {
  margin: -17px 0 0 -11px;
  border-style: solid;
  border-width: 17px 0 17px 28px;
  border-color: transparent transparent transparent #fff;
}
.media-tile--video a:hover::before { transform: scale(1.08); }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
  background: #f4e9ea;
  padding: .15em .55em;
  border-radius: 3px;
  margin-bottom: .4rem;
}

/* Footer -------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  font-size: .85rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--red); }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

/* Responsive tweaks --------------------------------------------------------- */

@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 2.1rem; }
  .container { padding: 0 18px 48px; }
}
