@import url("mobile-menu.css");
@import url("styles.css");
@import url("pop.css");
@import url("orange-theme.css");
@import url("decorative-shapes-clean.css");

.content-hub-header .desktop-nav { gap: 20px; }
.content-hub-header .desktop-nav a:last-child { color: var(--orange); font-weight: 700; }

.content-page-hero {
  padding: 84px max(6vw, calc((100vw - 1160px) / 2)) 74px;
  background: linear-gradient(120deg, #fff8f2 0%, #fff 57%, #e7f4ee 100%);
  border-bottom: 1px solid #eaded5;
}

.content-page-hero__inner { max-width: 810px; }
.content-page-hero .eyebrow { margin-bottom: 12px; }
.content-page-hero h1 { font-family: var(--sans); font-size: clamp(40px, 5.2vw, 66px); margin-bottom: 17px; }
.content-page-hero h1 em { color: var(--ink); font: inherit; font-style: normal; }
.content-page-hero p:last-child { max-width: 640px; color: #556058; font-size: 15px; }

.content-shell { max-width: 1160px; margin: 0 auto; padding: 70px 26px 100px; }
.content-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.content-section-head h2 { margin: 0; font-size: clamp(25px, 3vw, 37px); letter-spacing: -.04em; }

.journal-lead {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  padding: 35px 38px;
  margin-bottom: 57px;
  background: #fff;
  border: 1px solid #ecd8ca;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #f5d8c5;
}
.journal-lead__label { display: grid; align-content: center; gap: 8px; }
.journal-lead__label strong { color: var(--orange); font: 38px/1 var(--serif); font-style: italic; }
.journal-lead__label span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.journal-lead p { margin: 0; color: #495149; font-size: 14px; line-height: 2; }

.journal-feature { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 370px; margin: 0 0 78px; overflow: hidden; border: 2px solid var(--ink); border-radius: 24px; background: #fff; box-shadow: 9px 9px 0 var(--ink); }
.journal-feature__art { position: relative; min-height: 100%; overflow: hidden; background: #fff7ef; }
.journal-feature__art::before { content: ""; position: absolute; z-index: 0; top: -100px; right: -81px; width: 294px; height: 294px; border-radius: 50%; background: #bce7df; }
.journal-feature__art::after { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 12px; background: var(--orange); }
.journal-feature__masthead { position: absolute; z-index: 3; top: 30px; left: 30px; display: flex; align-items: end; gap: 9px; }
.journal-feature__masthead img { display: block; width: 139px; height: auto; }
.journal-feature__masthead span { padding: 0 0 4px; color: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.journal-feature__art > p { position: absolute; z-index: 2; top: 101px; left: 32px; margin: 0; color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1.06; letter-spacing: -.05em; }
.journal-feature__pei { position: absolute; z-index: 3; right: 20px; bottom: -29px; width: min(45%, 190px); height: auto; filter: drop-shadow(0 6px 0 rgba(37,48,71,.14)); transform: rotate(-3deg); }
.journal-feature__art i { position: absolute; z-index: 3; left: 32px; bottom: 29px; color: var(--orange); font: italic 53px/.8 var(--serif); }
.journal-feature__burst, .journal-feature__sticker, .journal-feature__spark { display: none; }
.journal-feature__tag { position: absolute; z-index: 3; left: 137px; bottom: 36px; padding: 5px 8px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.journal-feature__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 48px 50px; }
.journal-feature__copy .eyebrow { margin: 0 0 8px; }
.journal-feature__date { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; }
.journal-feature__copy h2 { margin: 18px 0 17px; color: var(--ink); font-size: clamp(27px, 3.2vw, 41px); line-height: 1.35; letter-spacing: -.06em; }
.journal-feature__copy h2 em { color: var(--orange); font-style: normal; }
.journal-feature__copy > p:not(.eyebrow):not(.journal-feature__date) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.journal-feature__copy .text-link { margin-top: 23px; }
.journal-count { margin: 0; color: var(--muted); font-size: 12px; }
.journal-count b { color: var(--orange); font-size: 19px; }
.journal-search { margin: 0 0 30px; padding: 22px 24px 19px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 5px 5px 0 #f5d8c5; }
.journal-search__input { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 13px; color: var(--ink); font-size: 12px; font-weight: 900; }
.journal-search__input input { width: 100%; padding: 12px 14px; border: 1px solid #cfd7d2; border-radius: 10px; background: #f8faf8; color: var(--ink); font: 600 13px var(--sans); outline-color: var(--orange); }
.journal-search__topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.journal-search__topics button { padding: 7px 12px; border: 1px solid #c8d2cb; border-radius: 999px; background: #fff; color: #405149; font: 800 11px var(--sans); cursor: pointer; transition: .16s ease; }
.journal-search__topics button:hover, .journal-search__topics button.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.journal-search__result { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; padding-top: 14px; border-top: 1px solid #e5e8e3; }
.journal-search__result p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.journal-search__result b { color: var(--orange); font-size: 17px; }
.journal-search__result button, .journal-empty button { border: 0; border-bottom: 1px solid var(--ink); padding: 0; background: transparent; color: var(--ink); font: 800 11px var(--sans); cursor: pointer; }
.journal-empty { padding: 50px 20px; border: 2px dashed #bfcac3; border-radius: 16px; background: #f2f7f3; text-align: center; }
.journal-empty strong { font-size: 17px; }
.journal-empty p { margin: 9px 0 17px; color: var(--muted); font-size: 12px; }

.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.journal-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 190px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5ded8;
  border-radius: 16px;
  box-shadow: 0 9px 20px rgba(34, 39, 33, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.journal-card[hidden] { display: none; }
.journal-card:hover { transform: translateY(-4px); box-shadow: 0 16px 27px rgba(34, 39, 33, .12); }
.journal-card__figure { position: relative; overflow: hidden; background-color: #fff3e8; background-image: url("assets/pei-home-magazine-logo.png"); background-repeat: no-repeat; background-position: 16px 15px; background-size: 94px auto; }
.journal-card__figure::before { content: ""; position: absolute; z-index: 1; width: 118px; height: 118px; right: -45px; bottom: -38px; border: 1px solid #f56b21; border-radius: 50%; box-shadow: -56px -75px 0 -53px #bce7df, -1px -107px 0 -1px rgba(37,48,71,.3); }
.journal-card__figure::after { content: "HOUSE NOTES\A" attr(data-cover-title) "\A No." attr(data-cover-issue); white-space: pre; position: absolute; z-index: 2; top: 55px; left: 17px; right: 10px; color: var(--ink); font-size: 9px; line-height: 1.55; letter-spacing: .08em; font-weight: 900; }
.journal-card__body { display: flex; flex-direction: column; padding: 22px 23px 19px; }
.journal-card__meta, .news-item__meta { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.journal-card h3 { margin: 9px 0 10px; font-size: 18px; line-height: 1.55; letter-spacing: -.025em; }
.journal-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.journal-card__more { margin-top: auto; padding-top: 9px; color: var(--orange); font-size: 11px; font-weight: 800; }

.journal-topic { margin-top: 72px; padding: 39px; background: #e8f1ed; border-radius: 18px; }
.journal-topic h2 { margin-bottom: 18px; font-size: 24px; }
.topic-links { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-links a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #c9ddd4; color: #3d554b; font-size: 12px; font-weight: 700; }

.news-list { border-top: 2px solid var(--ink); }
.news-item { display: grid; grid-template-columns: 105px 108px 1fr 24px; gap: 18px; align-items: center; padding: 22px 8px; border-bottom: 1px solid #d9d9d2; transition: background .18s ease, padding .18s ease; }
.news-item:hover { background: #fff; padding-left: 16px; padding-right: 16px; }
.news-item time { color: var(--muted); font-size: 12px; }
.news-item__category { width: max-content; padding: 3px 9px; background: #fff2e9; color: var(--orange); border-radius: 999px; font-size: 10px; font-weight: 800; }
.news-item h2 { margin: 0; font-size: 16px; line-height: 1.55; }
.news-item__arrow { color: var(--orange); font-size: 20px; text-align: right; }
.news-note { margin-top: 44px; padding: 25px 28px; border-radius: 12px; background: #fff; border-left: 4px solid var(--orange); color: var(--muted); font-size: 12px; }

.article-wrap { max-width: 940px; margin: 0 auto; padding: 50px 26px 100px; }
.article-back { display: inline-flex; gap: 8px; margin-bottom: 42px; color: var(--orange); font-size: 12px; font-weight: 800; }
.article-header { max-width: 760px; padding-bottom: 39px; border-bottom: 2px solid var(--ink); }
.article-header time { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.article-header h1 { margin: 13px 0 18px; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.32; letter-spacing: -.045em; }
.article-header__lead { margin: 0; color: #596159; font-size: 15px; line-height: 2; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 62px; padding-top: 46px; }
.article-body { color: #3d453f; font-size: 14px; line-height: 2.1; }
.article-body section { margin-bottom: 47px; }
.article-body h2 { margin: 0 0 18px; padding-left: 16px; border-left: 4px solid var(--orange); font-size: 24px; line-height: 1.45; letter-spacing: -.025em; }
.article-body p { margin: 0 0 16px; }
.article-body ul { margin: 18px 0; padding: 0; list-style: none; }
.article-body li { position: relative; margin-bottom: 9px; padding: 12px 15px 12px 33px; border-radius: 8px; background: #f2f5ed; font-size: 13px; }
.article-body li::before { content: "✓"; position: absolute; left: 13px; color: var(--orange); font-weight: 900; }
.article-aside { align-self: start; padding: 22px; background: #fff8f2; border-radius: 14px; }
.article-aside p { margin: 0 0 10px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.article-aside a { display: block; padding: 10px 0; border-top: 1px solid #ecd6c7; font-size: 11px; line-height: 1.6; }

.content-hub-footer { margin-top: 0; }

@media (max-width: 800px) {
  .content-hub-header .desktop-nav { display: none; }
  .content-page-hero { padding: 60px 20px 54px; }
  .content-shell, .article-wrap { padding: 50px 20px 75px; }
  .journal-lead { grid-template-columns: 1fr; gap: 18px; padding: 27px 23px; margin-bottom: 40px; }
  .journal-lead__label strong { font-size: 31px; }
  .journal-feature { grid-template-columns: 1fr; min-height: 0; margin-bottom: 55px; border-radius: 19px; box-shadow: 6px 6px 0 var(--ink); }
  .journal-feature__art { min-height: 215px; }
  .journal-feature__copy { padding: 29px 24px 31px; }
  .journal-feature__copy h2 { font-size: 29px; }
  .journal-feature__masthead { top: 20px; left: 20px; }
  .journal-feature__masthead img { width: 111px; }
  .journal-feature__art > p { top: 81px; left: 21px; font-size: 18px; }
  .journal-feature__pei { right: 11px; bottom: -19px; width: 43%; }
  .journal-feature__tag { left: 109px; bottom: 28px; font-size: 8px; }
  .journal-search { padding: 19px 17px 16px; }
  .journal-search__input { grid-template-columns: 1fr; gap: 7px; }
  .journal-search__result { align-items: flex-start; gap: 12px; }
  .article-grid { grid-template-columns: 1fr; }
  .journal-card { grid-template-columns: 112px 1fr; min-height: 170px; }
  .journal-card__body { padding: 18px 17px; }
  .journal-card h3 { font-size: 16px; }
  .journal-topic { margin-top: 48px; padding: 28px 22px; }
  .news-item { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 18px 2px; }
  .news-item time { grid-column: 1; grid-row: 1; }
  .news-item__category { grid-column: 2; grid-row: 1; }
  .news-item h2 { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .news-item__arrow { display: none; }
  .article-wrap { padding-top: 35px; }
  .article-back { margin-bottom: 28px; }
  .article-header { padding-bottom: 29px; }
  .article-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
  .article-aside { order: -1; }
}
