:root {
  --white: #f7f7f5;
  --line: rgba(255, 255, 255, 0.65);
  --shadow: rgba(0, 0, 0, 0.35);
  --header-glass: rgba(255, 255, 255, 0.18);
  --title-color: #78a2d6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Paragraph spacing: give paragraphs vertical breathing room */
p {
  margin: 0.75rem 0;
}

body {
  min-height: 100vh;
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--white);
}

/* Headings should use the serif display font */
h1, h2, h3, h4, h5, h6,
.blog-hero h1,
.post-article h1,
.about-panel h1,
.blog-post h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.page:not(.page--plain) {
  height: 100vh;
  overflow: hidden;
}

.page > :not(.bg-slider):not(.bg-controls) {
  position: relative;
  z-index: 1;
}

.bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.bg-slider img.is-active {
  opacity: 1;
}

.bg-controls {
  position: absolute;
  right: 32px;
  bottom: 84px;
  display: flex;
  gap: 10px;
  z-index: 2;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.bg-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6rem;
  padding: 8px 12px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-btn:hover,
.bg-btn:focus {
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.page--plain {
  background-image: none;
  background-color: #ffffff;
}

.post-page {
  color: #1f1f1f;
  background-color: #ffffff;
}

.post-page .blog-content {
  background: transparent;
  border: none;
  margin: 32px auto 0;
  padding: 56px 48px 48px;
}

.post-page .blog-kicker {
  color: var(--title-color);
}

.post-page .blog-post {
  border-bottom: 1px solid rgba(120, 162, 214, 0.25);
}

.post-page .post-link {
  color: #1f1f1f;
  border-bottom: 1px solid rgba(120, 162, 214, 0.35);
}

.post-page .post-link:hover,
.post-page .post-link:focus {
  color: #1f1f1f;
}

.post-header,
.post-footer {
  background: #78a2d6 !important;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.post-page .site-header,
.post-page .site-footer {
  background: #78a2d6 !important;
  border-color: rgba(255, 255, 255, 0.55);
}

.post-header .site-nav a,
.post-header .site-nav a[aria-current="page"],
.post-header .site-nav a:hover,
.post-header .site-nav a:focus {
  color: #ffffff;
}

.post-header .site-nav a {
  border-color: rgba(255, 255, 255, 0.6);
}

.post-header .site-nav a[aria-current="page"] {
  font-weight: 700;
}

.post-header .logo img {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.post-footer {
  color: #ffffff;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--line);
  background: var(--header-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-top: 1px solid var(--line);
  background: var(--header-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-transform: uppercase;
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  margin-top: auto;
}

/* Footer grid and columns (extracted from inline styles) */
.site-footer .footer-grid {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 4px 8px 4px 8px;
}

.site-footer .footer-col {
  min-width: 120px;
}

.site-footer .footer-left {
  flex: 1;
  min-width: 120px;
}

.site-footer .footer-center {
  flex: 0 0 auto;
  text-align: center;
  min-width: 160px;
}

.site-footer .footer-right {
  flex: 1;
  min-width: 160px;
  text-align: right;
}

.site-footer .footer-col img {
  height: 32px;
  max-height: 32px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 0.25rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffffff;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 56px;
  width: auto;
  filter: drop-shadow(0 8px 16px var(--shadow));
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 10px 18px;
  border-left: 1px solid var(--line);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2em;
}

.site-nav a:first-child {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.site-nav a:last-child {
  border-right: 1px solid var(--line);
}

.site-nav a:hover,
.site-nav a:focus {
  color: #ffffff;
}

.home-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 48px 48px 32px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.about-panel {
  max-width: 520px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.about-panel h1 {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.about-panel p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.blog-content {
  flex: 0 1 auto;
  padding: 56px 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 32px 48px;
}

.page:not(.page--plain) .blog-content {
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.08);
}

.page:not(.page--plain) .blog-content::-webkit-scrollbar {
  width: 10px;
}

.page:not(.page--plain) .blog-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.page:not(.page--plain) .blog-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.page:not(.page--plain) .blog-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

.blog-hero {
  max-width: 640px;
}

.blog-kicker {
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  margin-bottom: 12px;
}

.blog-hero h1 {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
}

.blog-list {
  display: grid;
  gap: 28px;
  max-width: 680px;
}

.blog-post {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

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

.post-meta {
  display: flex;
  gap: 16px;
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  margin-bottom: 10px;
  opacity: 0.85;
}

.blog-post h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-post p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0.75rem 0;
}

.post-link {
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.64rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.post-link:hover,
.post-link:focus {
  color: #ffffff;
}

.post-content {
  flex: 1;
  padding: 56px 48px 48px;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.post-article {
  max-width: 680px;
  /* allow internal scrolling if needed */
  min-height: 0;
}

.post-content::-webkit-scrollbar {
  width: 10px;
}
.post-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.04);
}
.post-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.04);
}

.post-kicker {
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--title-color);
  margin-bottom: 12px;
}

.post-article h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f1f1f;
}

.post-article .post-meta {
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  color: #6a6a6a;
  margin-bottom: 18px;
}

.post-article p {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 16px;
  color: #242424;
}

.post-article blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--title-color);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3a4f6a;
  background: rgba(120, 162, 214, 0.08);
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px;
  }

  .home-content {
    padding: 32px 20px 20px;
  }

  .about-panel {
    padding: 22px 20px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav a {
    border: 1px solid var(--line);
    margin: 4px 6px;
  }

  .site-nav a:first-child,
  .site-nav a:last-child {
    border: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] {
    font-weight: 700;
  }

  .blog-content {
    padding: 36px 20px 20px;
    margin: 20px;
  }

  .post-page .blog-content {
    padding: 36px 20px 32px;
    margin: 0 auto;
  }

  .bg-controls {
    right: 16px;
    bottom: 72px;
  }

  .post-content {
    padding: 36px 20px 32px;
  }
}
