@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Serif:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 300;
  background-color: #2e5890;
  color: rgba(255, 255, 255, 0.87);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== LINKS ===== */
a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
a:visited { color: rgba(255, 255, 255, 0.65); }
a:hover { color: #fff; text-decoration: underline; }

/* ===== SITE HEADER (logo) ===== */
.site-header {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}
.site-header a { text-decoration: none; }
.site-header img { max-width: 100%; height: auto; filter: brightness(0) invert(1); }

/* ===== NAVIGATION ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(18, 36, 68, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0 2rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.site-nav li a {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav li a:hover,
.site-nav li a.active {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.65rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  user-select: none;
}

/* ===== MAIN CONTENT ===== */
#content { flex: 1; }

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: #fff;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; margin-top: 2rem; }
h3 { font-size: 1.75rem; margin-top: 1.5rem; }
h4 { font-size: 1.3rem; margin-top: 1.25rem; }

p {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.87);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

p.dropcap::first-letter {
  float: left;
  font-size: 3.5rem; /* Make it large */
  line-height: 1;    /* Prevent extra vertical space */
  margin-right: 8px; /* Space between letter and text */
  font-weight: bold;
}

p.topborder {
  border-top: 1px solid white;
  padding-top: 0.5em;
}

p.clearboth {
  display: block;
  clear: both;
}

p.intro {
  display: inline-block;
  padding-left: 0.5rem;
}


ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.87);
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

blockquote {
  border-left: 3px solid rgba(255, 255, 255, 0.28);
  margin: 1.75rem 0;
  padding: 0.5rem 1.5rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}

blockquote cite::before { content: "\2014 \0020"; }

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.9);
}

pre {
  background: rgba(0, 0, 0, 0.32);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 2.5rem 0;
}

/* ===== HOMEPAGE ===== */
.home-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 3rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.home-grid {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
  padding-top: 3rem;
}

.home-intro { flex: 1; }
.home-intro h2 { margin-top: 0; }

.home-profile {
  flex: 0 0 260px;
}

.polaroid { display: inline-block; }

.polaroid img {
  display: block;
  width: 100%;
  max-width: 260px;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-bottom: 54px solid rgba(255, 255, 255, 0.13);
  box-shadow: 6px 18px 32px rgba(0, 0, 0, 0.5);
}

.polaroid-label {
  display: block;
  text-align: center;
  margin-top: -42px;
  font-family: 'Noto Serif', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.home-recent {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.home-recent h2 { margin-top: 0; margin-bottom: 1.75rem; }

/* ===== BLOG LIST ===== */
.post-list { list-style: none; padding: 0; }

.post-list-item {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  padding-left: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-list-item:last-child { border-bottom: none; }

.post-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
}

.post-title a {
  color: #fff;
  text-decoration: none;
}

.post-title a:hover { text-decoration: underline; }

.post-meta {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.65rem;
}

.post-meta a { color: rgba(255, 255, 255, 0.45); }
.post-meta a:hover { color: rgba(255, 255, 255, 0.8); }

.post-summary {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

/* ===== SINGLE POST ===== */
.post-header { margin-bottom: 2rem; }

.post-header h1 { margin-bottom: 0.5rem; }

.post-content { font-size: 1.02rem; line-height: 1.85; }

.post-content h2, .post-content h3, .post-content h4 { margin-top: 2rem; }

.post-content p { margin-bottom: 1.35rem; }

.post-content a { text-decoration: underline; color: rgba(255, 255, 255, 0.8); }
.post-content a:hover { color: #fff; }

.post-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 3rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.post-grid {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
  padding-top: 0.5rem;
}


/* ===== TAG / CATEGORY LINKS ===== */
.tag-link {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.1em 0.55em;
  border-radius: 2px;
  margin: 0 0.2em;
  text-decoration: none;
  vertical-align: middle;
}

.tag-link:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  background: rgba(0, 0, 0, 0.22);
  margin-top: 4rem;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 0;
}

.social-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.6rem;
  transition: color 0.2s;
  text-decoration: none;
  line-height: 1;
}

.social-links a:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

/* ===== 404 ===== */
.error-wrap {
  max-width: 600px;
  margin: 6rem auto;
  padding: 0 2rem;
  text-align: center;
}

.error-wrap h1 { font-size: 4rem; margin-bottom: 0.5rem; }
.error-wrap p { margin-bottom: 1.5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .home-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .post-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .home-profile { flex: none; width: 100%; text-align: center;}
  .polaroid img { max-width: 220px; }

  .home-wrap, .page-wrap { padding: 2rem 1.25rem; }

  .nav-toggle-label { display: block; }

  .site-nav {
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(18, 36, 68, 0.98);
    padding: 0.5rem 0 1rem;
    gap: 0;
  }

  .nav-toggle:checked ~ ul { display: flex; }

  .site-nav li a {
    padding: 0.55rem 1.5rem;
    border-bottom: none;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .post-title { font-size: 1.4rem; }

  p.topborder { margin-top: 1.5em; }
}
