/* NAMUN School — Stories V2 */
:root{
  --namun-ink:#45363D;
  --namun-text:#5E5056;
  --namun-muted:#8B7C82;
  --namun-paper:#FBF6F1;
  --namun-paper-2:#FFFDFC;
  --namun-line:#E8DDD6;
  --namun-orange:#FF6200;
  --namun-orange-dark:#D94F00;
  --namun-berry:#AF0774;
  --namun-plum:#34282E;
}

.namun-stories-page,
.namun-story-single{
  background:var(--namun-paper);
  color:var(--namun-text);
  font-family:Manrope,Arial,sans-serif;
}

.namun-stories-shell{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
}

.namun-stories-hero{
  position:relative;
  overflow:hidden;
  padding:88px 0 82px;
  background:
    radial-gradient(circle at 82% 16%,rgba(255,98,0,.14),transparent 28%),
    radial-gradient(circle at 10% 85%,rgba(175,7,116,.08),transparent 30%),
    linear-gradient(135deg,#FFFDFC 0%,#FBF6F1 66%,#F7ECE5 100%);
  border-bottom:1px solid var(--namun-line);
}

.namun-stories-hero::after{
  content:"";
  position:absolute;
  width:220px;
  height:8px;
  left:calc(50% + 295px);
  bottom:58px;
  background:linear-gradient(90deg,var(--namun-orange),var(--namun-berry));
  border-radius:999px;
  transform:rotate(-4deg);
  opacity:.92;
}

.namun-stories-hero__inner{
  position:relative;
  z-index:1;
  max-width:950px;
}

.namun-stories-eyebrow{
  margin:0 0 16px;
  color:var(--namun-berry);
  font-size:12px;
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.namun-stories-hero h1,
.namun-story-single__masthead h1{
  margin:0;
  color:var(--namun-ink);
  font-family:Fraunces,Georgia,serif;
  font-weight:600;
  letter-spacing:-.035em;
}

.namun-stories-hero h1{
  font-size:clamp(58px,9vw,118px);
  line-height:.92;
}

.namun-stories-lead{
  max-width:760px;
  margin:28px 0 0;
  color:var(--namun-text);
  font-size:clamp(18px,2.3vw,24px);
  line-height:1.52;
}

.namun-stories-feed{
  padding:68px 0 92px;
}

.namun-stories-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:34px 30px;
}

.namun-story-card{
  overflow:hidden;
  border:1px solid var(--namun-line);
  border-radius:22px;
  background:var(--namun-paper-2);
  box-shadow:0 12px 34px rgba(69,54,61,.045);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.namun-story-card:hover{
  transform:translateY(-3px);
  border-color:#DDC9BF;
  box-shadow:0 18px 44px rgba(69,54,61,.075);
}

.namun-story-card--featured{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);
  min-height:470px;
}

.namun-story-card__image-link{
  display:block;
  overflow:hidden;
  background:#F2E8E1;
}

.namun-story-card:not(.namun-story-card--featured) .namun-story-card__image-link{
  aspect-ratio:16/10;
}

.namun-story-card--featured .namun-story-card__image-link{
  min-height:100%;
}

.namun-story-card__image{
  display:block;
  width:100%;
  height:100%;
  margin:0;
  object-fit:cover;
  object-position:center;
  transition:transform .35s ease;
}

.namun-story-card:hover .namun-story-card__image{
  transform:scale(1.015);
}

.namun-story-card__placeholder{
  display:block;
  width:100%;
  height:100%;
  min-height:280px;
  background:linear-gradient(135deg,#F4E5DB,#EFE2E8);
}

.namun-story-card__body{
  padding:30px 30px 32px;
}

.namun-story-card--featured .namun-story-card__body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:50px 46px;
}

.namun-story-card__meta,
.namun-story-single__meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  color:var(--namun-muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.namun-story-card__title{
  margin:13px 0 14px;
  font-family:Fraunces,Georgia,serif;
  font-size:clamp(28px,3vw,39px);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-.025em;
}

.namun-story-card:not(.namun-story-card--featured) .namun-story-card__title{
  font-size:31px;
}

.namun-story-card__title a{
  color:var(--namun-ink)!important;
  text-decoration:none!important;
}

.namun-story-card__excerpt{
  margin:0 0 22px;
  color:var(--namun-text);
  font-size:15px;
  line-height:1.65;
}

.namun-story-card--featured .namun-story-card__excerpt{
  font-size:17px;
  line-height:1.65;
}

.namun-story-card__read,
.namun-story-single__back,
.namun-story-single__footer a{
  color:var(--namun-berry)!important;
  font-weight:800;
  text-decoration:none!important;
}

.namun-story-card__read{
  display:inline-flex;
  gap:7px;
  align-items:center;
  margin-top:auto;
  font-size:14px;
}

.namun-story-card__read:hover,
.namun-story-single__back:hover,
.namun-story-single__footer a:hover{
  color:var(--namun-orange-dark)!important;
}

.namun-stories-pagination{
  margin-top:52px;
}

.namun-stories-pagination ul{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin:0;
  padding:0;
  list-style:none;
}

.namun-stories-pagination a,
.namun-stories-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--namun-line);
  border-radius:999px;
  background:#fff;
  color:var(--namun-ink)!important;
  font-size:13px;
  font-weight:750;
  text-decoration:none!important;
}

.namun-stories-pagination .current{
  border-color:var(--namun-orange);
  background:var(--namun-orange);
  color:#fff!important;
}

/* Single Story */
.namun-story-single__masthead{
  padding:58px 0 54px;
  background:linear-gradient(135deg,#FFFDFC,#F9EFE8);
  border-bottom:1px solid var(--namun-line);
}

.namun-story-single__masthead-inner{
  max-width:1020px;
}

.namun-story-single__back{
  display:inline-block;
  margin:0 0 34px;
  font-size:13px;
}

.namun-story-single__masthead h1{
  max-width:990px;
  font-size:clamp(42px,6vw,76px);
  line-height:1.02;
}

.namun-story-single__meta{
  margin-top:22px;
}

.namun-story-single__article{
  padding:52px 0 94px;
}

.namun-story-single__article>.namun-stories-shell{
  max-width:1060px;
}

.namun-story-single__figure{
  margin:0 auto 52px;
  padding:0;
  background:#F2E8E1;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 34px rgba(69,54,61,.055);
}

.namun-story-single__image{
  display:block;
  width:100%;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  margin:0!important;
}

.namun-story-single__figure figcaption{
  padding:12px 16px 14px;
  border-top:1px solid var(--namun-line);
  background:#FFFDFC;
  color:var(--namun-muted);
  font-size:12px;
  line-height:1.45;
}

.namun-story-single__content{
  max-width:790px;
  margin:0 auto;
  color:#55484E;
  font-size:18px;
  line-height:1.82;
}

.namun-story-single__content>p:first-of-type{
  font-size:21px;
  line-height:1.7;
  color:var(--namun-ink);
}

.namun-story-single__content h2,
.namun-story-single__content h3,
.namun-story-single__content h4{
  margin:2.1em 0 .7em;
  color:var(--namun-ink);
  font-family:Fraunces,Georgia,serif;
  font-weight:600;
  line-height:1.15;
  letter-spacing:-.018em;
}

.namun-story-single__content h2{font-size:36px;}
.namun-story-single__content h3{font-size:29px;}
.namun-story-single__content h4{font-size:24px;}

.namun-story-single__content a{
  color:var(--namun-berry)!important;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.namun-story-single__content blockquote{
  margin:42px 0;
  padding:4px 0 4px 26px;
  border-left:4px solid var(--namun-orange);
  color:var(--namun-ink);
  font-family:Fraunces,Georgia,serif;
  font-size:25px;
  line-height:1.45;
}

.namun-story-single__content hr{
  margin:46px 0 30px;
  border:0;
  border-top:1px solid var(--namun-line);
}

.namun-story-single__footer{
  max-width:790px;
  margin:54px auto 0;
  padding-top:24px;
  border-top:1px solid var(--namun-line);
}

/* Kill legacy MasterStudy title bars on the Stories index/singles if injected. */
body.blog .page_title,
body.blog .page-title,
body.blog .page_title_section,
body.blog .page-title-section,
body.blog .stm_page_bc,
body.blog .stm_breadcrumbs_unit,
body.single-post .page_title,
body.single-post .page-title,
body.single-post .page_title_section,
body.single-post .page-title-section,
body.single-post .stm_page_bc,
body.single-post .stm_breadcrumbs_unit{
  display:none!important;
}

@media(max-width:900px){
  .namun-story-card--featured{
    grid-template-columns:1fr;
    min-height:0;
  }
  .namun-story-card--featured .namun-story-card__image-link{
    aspect-ratio:16/10;
    min-height:0;
  }
  .namun-story-card--featured .namun-story-card__body{
    padding:34px 30px 38px;
  }
  .namun-stories-hero::after{display:none;}
}

@media(max-width:720px){
  .namun-stories-shell{width:min(100% - 28px,1180px);}
  .namun-stories-hero{padding:58px 0 54px;}
  .namun-stories-grid{grid-template-columns:1fr;gap:22px;}
  .namun-story-card__body{padding:24px 22px 26px;}
  .namun-story-card:not(.namun-story-card--featured) .namun-story-card__title{font-size:28px;}
  .namun-story-single__masthead{padding:42px 0 40px;}
  .namun-story-single__back{margin-bottom:26px;}
  .namun-story-single__article{padding:30px 0 66px;}
  .namun-story-single__figure{margin-bottom:34px;border-radius:16px;}
  .namun-story-single__content{font-size:17px;line-height:1.72;}
  .namun-story-single__content>p:first-of-type{font-size:19px;}
}
