/* ───────────────
   Fonts
   ─────────────── */
@font-face {
  font-family: "Workbench";
  src: url("/fonts/Workbench/Workbench-Regular-VariableFont_BLED,SCAN.ttf")
       format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "Stylish";
  src: url("/fonts/Stylish/Stylish-Regular.ttf");
  font-style: normal;
}

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

html {
  overflow-x: clip;
}

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

html, body {
  margin: 0;
}

/* ───────────────
   Page shell
   ─────────────── */
body {
  min-height: 100svh;
  padding: 2rem;

  /* background-color: #E1CA96; */
  background: #e6e6e6;
  color: #171717;

  display: flex;
  flex-direction: column;
}

/* ───────────────
   Top-left title
   ─────────────── */
.topbar {
  font-family: "Workbench", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: clamp(2rem, 8vh, 4rem);
}

.topnav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;

  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.topnav a:hover {
  opacity: 1;
}

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

.site-title:hover {
  opacity: 0.9;
}

/* ───────────────
   Center stage
   ─────────────── */
.stage {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* margin-bottom: 4rem; */
  gap: 3.5rem;
}

/* ───────────────
   Hero image
   ─────────────── */
.hero-image {
  max-width: min(80vw, 520px);
  height: auto;
  display: block;
}

/* ───────────────
   Subtitle
   ─────────────── */
.subtitle {
  /* font-family: "Stylish", cursive; */
  font-family: "Lora";
  font-size: clamp(2.5rem, 2vw, 4rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  color: rgb(0, 47, 127);
}

/* ───────────────
   Body text
   ─────────────── */
.stage p {
  max-width: 40ch;
  text-align: center;
  opacity: 0.85;
}

/* ───────────────
   Featured projects
   ─────────────── */
.featured-projects {
  width: 100%;
  max-width: none;          /* allow full bleed */
  margin: 4rem auto 3rem;

  display: flex;
  flex-direction: column;
  /* gap: 0.5rem; */
}

/* Feature block */
.feature {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: none;     /* remove clamp */
  margin: 0;           /* no centering */

  aspect-ratio: 6 / 2;
  overflow: hidden;

  border-radius: 0;    /* edge-to-edge should be sharp */
}

/* Image fill */
.feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title overlay */
.feature h2 {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Workbench", system-ui, sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.03em;

   color: white;
  mix-blend-mode: difference; 

  text-align: center;
  margin: 0;

  /* pointer-events: none; */
}

/* ───────────────
   Closing question
   ─────────────── */
.closing-question {
  font-family: "Stylish", cursive;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;

  margin: 3rem auto 3rem;
  max-width: 20ch;

  color: rgba(23, 23, 23, 0.9);
}

.contact {
  font-family: "Workbench";
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;

  margin: 3rem auto 3rem;
  max-width: 20ch;

}
.contact a {
  text-decoration: none;
  color: rgba(0, 1, 83, 0.9);
}

/* Make links behave like blocks */
.feature-link {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Hover affordance */
.feature-link:hover .feature img {
  transform: scale(1.03);
}

.feature img {
  transition: transform 0.4s ease;
}

/* Optional: slight contrast cue */
.feature-link:hover .feature {
  filter: contrast(1.05);
  cursor: pointer;
}

.feature-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;

  left: 50%;
  width: 100vw;
  transform: translateX(-50%);

  background: var(--feature-bg, #ccc);
  z-index: 0;
}


/* .feature-link.left .feature {
  margin-left: clamp(0.5rem, 3vw, 2rem);
}

.feature-link.right .feature {
  margin-right: clamp(0.5rem, 3vw, 2rem);
} */

@media (max-width: 700px) {
  /* Remove full-bleed background entirely */
  /* .feature-link::before {
    content: none;
  } */

  /* Kill any horizontal offset */
  .feature-link.left .feature,
  .feature-link.right .feature {
    margin-left: 0;
    margin-right: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* Optional: edge-to-edge cards if desired */
  .feature {
    border-radius: 0;
    max-width: 100%;
    aspect-ratio: 4 / 2;
  }
}
/* ───────────────
   Prose / body copy
   ─────────────── */
.prose {
  max-width: 60ch;
  margin-top: 2rem;

  font-family: "Lora", serif;
  font-size: 1.2rem;
  line-height: 1.7;

  text-align: justify;
  color: rgba(23, 23, 23, 0.9);
}

