@font-face {
  font-family: "Zain";
  src: url("assets/fonts/Zain/Zain-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zain";
  src: url("assets/fonts/Zain/Zain-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zain";
  src: url("assets/fonts/Zain/Zain-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg: #f6f4f0;
  --page-fog: #f2f3f1;
  --page-glow: #e9efee;
  --header-bg: rgba(240, 244, 242, 0.75);
}

body {
  font-family: "Zain", system-ui, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: #2e2b26;
  min-height: 100vh;
  position: relative;
}

body:not(.home-page) {
  background: #b9f1f8;
}

.home-page {
  background:
    linear-gradient(rgba(246, 244, 240, 0.62), rgba(246, 244, 240, 0.68)),
    url("assets/images/chamonix.jpeg") center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

body:not(.home-page)::before {
  opacity: 0.08;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.blog {
  justify-content: flex-start;
  text-align: left;
  gap: 32px;
  max-width: 720px;
}

.page {
  justify-content: flex-start;
  text-align: left;
  gap: 28px;
  max-width: 720px;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 1px;
  line-height: 1.05;
  margin: 0 0 12px;
}

.subtitle {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: #4a4a44;
  margin: 0;
  max-width: 60ch;
}

.subtitle-centered {
  margin-left: auto;
  margin-right: auto;
}

.blog-intro {
  max-width: 68ch;
}

.ideas {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.idea-card {
  flex: 1 1 220px;
  aspect-ratio: 1 / 1;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0e1b3b, #1a2f5e);
  color: #f4f6f9;
  font-size: clamp(18px, 2.4vw, 24px);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.idea-card:nth-child(2) {
  background: linear-gradient(145deg, #0c1733, #162a55);
}

.idea-card:nth-child(3) {
  background: linear-gradient(145deg, #102043, #1c3466);
}

body > header {
  background: rgba(240, 244, 242, 0);
  width: 100%;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #2e2b26;
  font-size: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  border-color: rgba(46, 43, 38, 0.3);
  background: rgba(255, 255, 255, 0.5);
}

header .logo {
  margin: 0;
}

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

.logo {
  display: block;
  width: 200px;
  height: auto;
  padding: 16px;
  border: none;
  background: transparent;
}

.page-logo-corner {
  padding: 16px 24px 0;
}

.logo-small {
  width: 120px;
  padding: 0;
}

.back-link {
  color: #173a5a;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus {
  text-decoration: underline;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2e2b26;
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus {
  text-decoration: underline;
}

.blog-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  color: #ffffff;
  background: #173a5a;
  border: 1px solid #173a5a;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.inline-cta:hover,
.inline-cta:focus {
  background: #0f2b44;
  border-color: #0f2b44;
}

.page-punchline {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 26px);
  font-style: italic;
  color: #3f3f39;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: #4a4a44;
}

.page-content > * {
  min-width: 0;
}

.page-content p {
  margin: 0;
  overflow-wrap: anywhere;
}

.cta-center {
  text-align: center;
}

.highlight-quote {
  margin: 4px 0;
  padding: 14px 16px;
  border-left: 4px solid #173a5a;
  border-radius: 8px;
}

.highlight-quote p {
  margin: 0;
}

.site-footer {
  display: block;
  width: 100%;
  padding: 16px 24px 24px;
  box-sizing: border-box;
}

.footer-inner {
  margin: 0 auto;
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.iteration-count {
  display: none;
}

.event-poster {
  margin: 0 0 12px;
}

.event-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(21, 28, 38, 0.18);
}

.qr-code-figure {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.qr-code-image {
  background: #ffffff;
  padding: 10px;
}

.coming-soon {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(46, 43, 38, 0.2);
  text-align: center;
}

.coming-soon-text {
  margin: 0;
  font-size: 20px;
  color: #5a564f;
}

.post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.post-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(21, 28, 38, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-meta {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6760;
  margin: 0;
}

.post-title {
  font-size: 24px;
  margin: 0;
}

.post-excerpt {
  margin: 0;
  color: #4a4a44;
  line-height: 1.5;
}

.post-excerpt + .post-excerpt {
  margin-top: 10px;
}

.post-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.post-card:target .post-body,
.post-card.is-open .post-body {
  max-height: 500px;
  opacity: 1;
  margin-top: 10px;
}

.post-link {
  align-self: flex-start;
  text-decoration: none;
  font-weight: 600;
  color: #173a5a;
}

.post-card:target .post-link,
.post-card.is-open .post-link {
  display: none;
}

.post-close {
  align-self: flex-start;
  text-decoration: none;
  font-weight: 600;
  color: #173a5a;
  display: none;
}

.post-card:target .post-close,
.post-card.is-open .post-close {
  display: inline-flex;
}

@media (max-width: 720px) {
  main {
    padding: 0 20px 48px;
  }

  .blog,
  .page {
    gap: 16px;
  }

  .blog-hero,
  .page-hero {
    gap: 8px;
  }

  .inline-cta {
    padding: 11px 16px;
    font-size: 17px;
  }

  h1 {
    margin: 0 0 6px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-link {
    font-size: 16px;
    padding: 6px 10px;
  }

  .logo {
    width: 160px;
    padding: 8px;
  }

  .ideas {
    gap: 16px;
  }

  .idea-card {
    flex-basis: 100%;
  }
}
