/* =====================================================
   chrismathys.com — static site stylesheet
   Font: Roboto via Google Fonts
   ===================================================== */

/* --- Reset & base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; scrollbar-gutter: stable; }

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: #757575;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: #808080; text-decoration: none; }
a:hover { text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* =====================================================
   HEADER
   ===================================================== */

.site-header {
  background: #000;
  width: 100%;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.site-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 28px;
  font-weight: 400;
  white-space: nowrap;
  margin-right: 20px;
  line-height: 28px;
  padding: 16px 0;
}

.site-title a {
  color: #fff;
}

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

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.site-nav ul li a {
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  line-height: 16px;
  padding: 18px 10px;
  display: block;
}

.site-nav ul li a:hover { text-decoration: none; color: #e2e2e2; }

/* =====================================================
   HERO SECTIONS
   ===================================================== */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Home page: hero fills remaining viewport height so footer stays visible */
.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home .hero {
  flex: 1;
}

/* Inner pages: fixed 480px hero matching original theme */
.hero-page .hero {
  height: 480px;
  min-height: auto;
}

/* No overlay — original SiteOrigin panels have overlay_opacity=none */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.home .hero-content {
  position: relative;
  z-index: 2;
  padding: 200px 24px 100px;
  width: 100%;
}

.hero-page .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  width: 100%;
  margin-top: 200px;
}

/* Home hero title — matches .home-headline from egf-frontend-styles */
.hero-title {
  color: #fff;
  font-size: 52px;
  font-weight: 100;
  line-height: 1.8;
  padding: 0 16px;
}

/* Inner page hero title — matches .general-headline from egf-frontend-styles */
.page-hero-title {
  color: #fff;
  font-size: 52px;
  font-weight: 100;
  line-height: 1.8;
  padding: 0 16px;
}

/* =====================================================
   CTA BUTTONS (home page)
   ===================================================== */

.hero-buttons {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0 20px;
  line-height: 40px;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  margin: 5px;
  cursor: pointer;
  transition: background 0.18s;
}

.btn:hover {
  background: #199cd8;
  text-decoration: none;
}

/* =====================================================
   SOCIAL ICONS (home page content area)
   ===================================================== */

.hero-social {
  margin-top: 40px;
  text-align: center;
}

.hero-social-label {
  color: #fff;
  font-size: 22px;
  font-weight: 100;
  margin-bottom: 18px;
}

.hero-social-icons {
  display: flex;
  justify-content: center;
  gap: 0;
}

.hero-social-icons a { display: inline-block; padding: 0 20px; }

.hero-social-icons img {
  width: 60px;
  height: 60px;
}

/* =====================================================
   PAGE CONTENT (inner pages)
   ===================================================== */

.page-content {
  background: #fff;
  padding: 60px 24px 80px;
}

.page-content-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* =====================================================
   TALKS
   ===================================================== */

/* Full-width text row — white bg, centred, matches original SO panel row */
.talk-entry {
  background: #fff;
  text-align: center;
  padding: 40px 24px;
}

.talk-entry-inner {
  max-width: 980px;
  margin: 0 auto;
}

.talk-title {
  margin-bottom: 8px;
}

.talk-title a {
  font-size: 25px;
  font-weight: 500;
  color: #808080;
}

.talk-title a:hover { color: #adacac; }

.talk-meta {
  font-size: 18px;
  color: #757575;
  line-height: 1.5;
}

/* Full-width 360px image row — matches original SO spacer row with cover bg */
.talk-image-row {
  height: 360px;
  background-size: cover;
  background-position: center;
}

/* =====================================================
   PUBLICATIONS
   ===================================================== */

.publication-list {
  list-style: none;
  padding-left: 2em;
  margin-top: 68px;
  max-width: 677px;
  margin-left: auto;
  margin-right: auto;
}

.publication-item {
  font-size: 20px;
  color: #757575;
  line-height: 2;
  padding: 0;
  border-bottom: none;
  text-indent: -2em;
  margin-bottom: 40px;
}

.publication-item:first-child { padding-top: 0; }
.publication-item:last-child { border-bottom: none; }

.publication-item a {
  color: #808080;
  text-decoration: none;
}

.publication-item a:hover { color: #adacac; }

/* =====================================================
   VIDEOS
   ===================================================== */

.video-item {
  padding: 30px 0;
  text-align: center;
  border-bottom: none;
}

.video-title {
  font-size: 25px;
  font-weight: 300;
  color: #757575;
  margin-bottom: 16px;
}

.video-title a { color: inherit; }
.video-title a:hover { color: #adacac; }

.video-item iframe,
.video-item img {
  display: block;
  margin: 0 auto;
}

/* =====================================================
   CREDITS
   ===================================================== */

.credits-content p {
  font-size: 15px;
  color: #757575;
  line-height: 2;
  margin-bottom: 8px;
}

.credits-content a {
  color: #808080;
  text-decoration: none;
}

.credits-content a:hover { color: #adacac; }

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  background-color: #000;
  color: #fff;
  font-size: 14px;
  padding: 40px 0;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-social {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 12px;
}

.footer-social li { padding: 8px 6px; }
.footer-social li:first-child { padding-left: 0; }

.footer-social {
  padding-right: 12px;
  margin-right: 4px;
  border-right: rgba(255, 255, 255, 0.1) solid 1px;
}

.footer-social a { display: block; height: 24px; }

.footer-social img {
  width: 24px;
  height: 24px;
  max-width: none;
}

.footer-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-nav li { padding: 0 12px 0 0; }
.footer-nav li:last-child { padding-right: 0; }

.footer-nav a {
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  display: block;
}

.footer-nav a:hover { text-decoration: none; color: #e2e2e2; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 700px) {
  .site-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  .hero-page .hero {
    height: auto;
    min-height: 300px;
    padding: 80px 0 60px;
  }

  .hero-title { font-size: 32px; }
  .page-hero-title { font-size: 28px; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn { width: 260px; text-align: center; }

  .site-nav ul { gap: 0; flex-wrap: wrap; }

  .page-content { padding: 40px 16px 60px; }

  .footer-inner { flex-wrap: wrap; }

  .footer-social,
  .footer-nav { flex-wrap: wrap; }
}
