/* ===== Global (light theme) ===== */
:root{
  color-scheme: light;

  --card-radius: 16px;
  --card-gap: 30px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --serif: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html, body{
  background: #fff;
  color: #000;
}

body{
  font-family: var(--sans);
  margin: 40px;
  line-height: 1.5;
}

header, main, section, article, nav{
  background: transparent;
  color: inherit;
}

a{
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover{ opacity: 0.8; }

/* Default nav links (inside content pages) */
nav a{
  margin-right: 12px;
  text-decoration: none;
  opacity: 0.9;
}
nav a:hover{ opacity: 1; }

/* ===== Blog: “More Stories” grid ===== */
.stories{ margin-top: 28px; }
.stories__header{ margin-bottom: 18px; }

.stories__title{
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.stories__rule{
  height: 2px;
  background: #000;
  opacity: 0.12;
}

.stories__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}

.story{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.story:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.story__media{
  display: block;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.story__img{
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.story__headline{
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.story__headline a{ text-decoration: none; }
.story__headline a:hover{ text-decoration: underline; opacity: 1; }

.story__date{ margin: 0; font-size: 0.95rem; opacity: 0.7; }
.story__excerpt{ margin: 0; opacity: 0.9; line-height: 1.65; max-width: 60ch; }

.story__author{
  margin-top: 14px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.95;
}
.story__avatar{ width: 34px; height: 34px; border-radius: 999px; object-fit: cover; }
.story__name{ font-weight: 700; }

/* ===== About page (side-by-side) ===== */
.about{ margin-top: 28px; }
.about__header{ margin-bottom: 18px; }

.about__title{
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.about__rule{
  height: 2px;
  background: #000;
  opacity: 0.12;
}

.about__hero{
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.about__media{
  flex: 0 0 240px;
  width: 240px;
  height: 240px;
  border-radius: 18px;
  overflow: hidden;
}

.about__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__copy{
  flex: 1 1 auto;
  min-width: 0;
}

.about__lede{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ===== Homepage: split hero (NO CROPPING) ===== */
/* Homepage removes margin so it can be full-bleed */
body.index{
  margin: 0;
}

/* optional: if your base.liquid wraps content with padding, this prevents it on home */
body.index main{
  padding: 0;
}

.hero-split{
  min-height: 100vh;
  display: grid;
  position: relative; /* anchor the overlay */
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
}

/* left column: full height image area */
.hero-split__media{
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff; /* matches your “white space is ok” request */
}

/* NO CROPPING */
.hero-split__img{
  max-width: 100%;
  height: 100%;
  /*width: auto;
  height: auto;
  display: block;*/
  object-fit: cover;
}

/* right panel */
.hero-split__panel{
  background: #fff;
  height: 100vh;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.hero-split__nav{
  display: flex;
  gap: 30px;          /* wider spacing */
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-right: 30px;
  margin-top: 20px;
}

.hero-split__nav a{
  margin-right: 0;
  text-decoration: none;
  opacity: 0.9;
}
.hero-split__nav a:hover{ opacity: 1; }

.hero-split__content{
  margin-top: auto;
  padding-bottom: 24px;
}

.hero-split__kicker{
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0 0 18px;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  /* Blog cards go 1-column */
  .stories__grid{ grid-template-columns: 1fr; }
  .story__img{ height: 220px; }

  /* About stacks */
  .about__hero{ flex-wrap: wrap; }
  .about__media{ width: 100%; height: auto; flex: 1 1 100%; }
  .about__img{ width: 100%; height: auto; }

  /* Home stacks */
  .hero-split{
    grid-template-columns: 1fr;
  }

  .hero-split__media{
    height: 55vh;
  }

  .hero-split__panel{
    height: auto;
  }
}

.cutout{
  font-size: clamp(74px, 12vw, 150px);
  font-weight: 800;
  font-family: var(--serif);
  letter-spacing: -0.05em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 0 60px rgba(255,255,255,0.65))
          drop-shadow(0 0 60px rgba(255,255,255,0.65));

  /* the magic */
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: url("/assets/homepage-01p.avif");
  background-size: 160%;
  background-position: 0% 0%; /* x y (center, slightly up) */
  background-repeat: no-repeat;

  -webkit-background-clip: text;
  background-clip: text;
}

.cutout--overlay{
  position: absolute;
  left: 59%;
  top: 40%;
  transform: translate(-50%, -50%);

  white-space: nowrap;      /* <-- prevents wrapping */
  max-width: none;          /* don't constrain */
  margin: 0;
  z-index: 5;
  pointer-events: none;     /* overlay won't block clicks */
}

.cutout__indent{ 
    display: inline-block; padding-left: 1em; 
}

/* Overlay that shows what's underneath (glass effect) */
.hero-split__overlay{
  position: absolute;
  width: 90vw;
  height: 90vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  inset: 2;
  z-index: 2;

  /* the “same background” effect */
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

 /*box-shadow:
  0 30px 80px rgba(0,0,0,0.12),          /* outer drop shadow */
  0 0 40px rgba(0,0,0,0.18),       /* soft white glow */
  inset 0 0 30px rgba(0,0,0,0.18);*/

  pointer-events: none;
}

.hero-split__overlay::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  /* this is the shadow */
  box-shadow: 0 35px 90px rgba(0,0,0,0.18);

  /* put it behind the overlay */
  z-index: -1;
}