/* Shared journal pages keep the portfolio's living 3D scene behind the writing. */
.blogs-site { min-height: 100vh; }
.blogs-main, .article-main { position: relative; z-index: 3; }
.blogs-site .primary-nav a[aria-current="page"] { color: #edb879; }
.blog-hero { min-height: 100svh; padding-top: 19vh; padding-bottom: 14vh; }
.blog-hero__copy { position: relative; z-index: 2; width: min(700px, 76%); margin-left: 4.5%; }
.blog-hero__copy .eyebrow { margin-bottom: 21px; }
.blog-display { margin: 0; color: #ece2d1; font-family: "Bodoni 72", "Didot", "Yu Mincho", Georgia, serif; font-size: clamp(76px, 11vw, 150px); font-weight: 400; letter-spacing: -.065em; line-height: .81; }
.blog-hero__deck { max-width: 380px; margin: 27px 0 27px 6px; color: #d0c6b6; font-family: "Yu Mincho", Georgia, serif; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; }
.blog-hero__copy > .text-link { margin-left: 6px; color: #d7c7ae; }
.blog-hero__copy > .text-link span { margin-left: 9px; color: #db815a; }
.blog-hero__seal { position: absolute; right: 15%; top: 29%; display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(218,179,133,.62); }
.blog-hero__seal span { font-family: "Yu Mincho", Georgia, serif; font-size: clamp(75px, 13vw, 175px); line-height: 1; text-shadow: 0 8px 30px rgba(0,0,0,.35); }
.blog-hero__seal i { width: 45px; height: 1px; background: rgba(217,163,108,.55); }
.blog-hero__seal small { font-size: 7px; letter-spacing: .2em; line-height: 1.8; text-align: center; }
.blog-list-section { min-height: 100svh; padding-top: 17vh; padding-bottom: 14vh; }
.blog-list-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; width: min(1050px, 88%); margin: 0 auto 32px; }
.blog-list-heading .eyebrow { margin-bottom: 14px; }
.blog-list-title { margin: 0; color: #e8dfd0; font-family: "Bodoni 72", "Didot", "Yu Mincho", Georgia, serif; font-size: clamp(54px, 7.4vw, 92px); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.blog-count { padding-bottom: 9px; color: #d7a36c; font-family: Georgia, serif; font-size: 25px; white-space: nowrap; }
.blog-count i { margin-left: 7px; color: #9f988a; font: 7px "Helvetica Neue", Arial, sans-serif; letter-spacing: .17em; }
.blog-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.3vw, 30px); width: min(1050px, 88%); margin: 0 auto; padding: 0; list-style: none; }
.blog-card { min-width: 0; }
.blog-card > a { position: relative; display: grid; grid-template-columns: 30px 1fr 26px; grid-template-rows: 1fr auto; min-height: 295px; height: 100%; gap: 14px 18px; overflow: hidden; padding: clamp(20px, 3vw, 34px); border: 1px solid rgba(224,214,194,.2); background: linear-gradient(140deg, rgba(18,29,33,.78), rgba(8,14,17,.72)); box-shadow: 0 18px 54px rgba(0,0,0,.13); transition: transform .38s cubic-bezier(.2,.7,.15,1), border-color .35s ease, background .35s ease, box-shadow .38s ease; }
.blog-card > a::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at 76% 2%, rgba(202,87,62,.18), transparent 53%); transition: opacity .38s ease; }
.blog-card > a:hover { transform: translateY(-9px); border-color: rgba(217,163,108,.62); background: linear-gradient(140deg, rgba(26,37,40,.88), rgba(10,16,19,.78)); box-shadow: 0 26px 70px rgba(0,0,0,.28), 0 0 32px rgba(201,78,57,.07); }
.blog-card > a:hover::before { opacity: 1; }
.blog-card__number { position: relative; z-index: 1; grid-row: 1 / 3; padding-top: 2px; color: #ca805b; font-size: 8px; letter-spacing: .15em; }
.blog-card__symbol { position: absolute; right: 20px; top: 17px; color: rgba(205,178,141,.1); font-family: "Yu Mincho", Georgia, serif; font-size: clamp(60px, 8vw, 105px); line-height: 1; transition: color .35s ease, transform .6s cubic-bezier(.2,.7,.15,1); }
.blog-card--code .blog-card__symbol { right: 24px; top: 25px; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 65px); letter-spacing: -.1em; }
.blog-card > a:hover .blog-card__symbol { color: rgba(205,178,141,.2); transform: translateY(-5px) rotate(-4deg); }
.blog-card__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-self: center; gap: 10px; grid-column: 2 / 4; padding: 16px 10px 12px 0; }
.blog-card__meta { color: #b7a68f; font-size: 7px; letter-spacing: .17em; }
.blog-card__meta i { margin: 0 6px; color: #ca7654; font-style: normal; }
.blog-card__copy strong { max-width: 470px; color: #eee4d5; font-family: "Yu Mincho", Georgia, serif; font-size: clamp(23px, 3vw, 37px); font-weight: 400; letter-spacing: -.025em; line-height: 1.13; transition: color .3s ease; }
.blog-card > a:hover .blog-card__copy strong { color: #f2c18e; }
.blog-card__excerpt { max-width: 430px; color: #b8b0a3; font-family: "Yu Mincho", Georgia, serif; font-size: 13px; line-height: 1.75; }
.blog-card__action { position: relative; z-index: 1; grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid rgba(224,214,194,.15); color: #c9b99f; font-size: 7px; letter-spacing: .16em; }
.blog-card__action i { color: #db815a; font-size: 15px; font-style: normal; transition: transform .25s ease; }
.blog-card > a:hover .blog-card__action i { transform: translate(3px, -3px); }
.blog-list-note { display: flex; justify-content: center; align-items: center; gap: 10px; width: min(1050px, 88%); margin: 24px auto 0; color: #9f998d; font-size: 9px; letter-spacing: .04em; }
.blog-list-note span { color: #d0815a; }
.writing-invite { min-height: 91svh; padding-top: 17vh; padding-bottom: 15vh; }
.writing-invite__content { position: relative; z-index: 2; width: min(700px, 75%); margin-left: 9%; }
.writing-invite__content .eyebrow { margin-bottom: 22px; }
.writing-invite__text { max-width: 410px; margin: 27px 0 22px 5px; color: #c6bcae; font-family: "Yu Mincho", Georgia, serif; font-size: 16px; line-height: 1.7; }
.writing-invite__content .text-link { margin-left: 5px; color: #e1c29b; }
.writing-invite__content .text-link span { color: #dc845d; }
.writing-invite__kanji { position: absolute; right: 15%; top: 25%; color: rgba(200,177,144,.08); font-family: "Yu Mincho", Georgia, serif; font-size: clamp(140px, 24vw, 310px); line-height: 1; }
.blogs-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 82px; padding: 15px var(--side); border-top: 1px solid rgba(224,214,194,.18); color: #9d9689; font-size: 7px; letter-spacing: .14em; }
.blogs-footer .wordmark { color: #e2d8c8; }
.blogs-footer .wordmark__mark { font-size: 19px; }
.blogs-footer .back-top { font-size: 7px; }

.article-hero { min-height: 92svh; padding-top: 150px; padding-bottom: 95px; justify-content: center; }
.article-back { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 11px; width: fit-content; margin: 0 0 43px 4px; color: #b8ad9b; font-size: 8px; letter-spacing: .16em; transition: color .2s ease; }
.article-back:hover { color: #edb879; }
.article-back span { color: #d1805b; font-size: 15px; }
.article-hero > .eyebrow, .article-display, .article-deck, .article-byline { position: relative; z-index: 2; width: min(820px, 76%); margin-left: auto; margin-right: auto; }
.article-hero > .eyebrow { margin-bottom: 20px; }
.article-display { margin-top: 0; margin-bottom: 0; color: #ece2d1; font-family: "Bodoni 72", "Didot", "Yu Mincho", Georgia, serif; font-size: clamp(68px, 10vw, 125px); font-weight: 400; letter-spacing: -.065em; line-height: .83; }
.article-display--wide { font-size: clamp(59px, 8.5vw, 104px); }
.article-deck { max-width: 540px; margin-top: 25px; margin-bottom: 19px; color: #c6bcae; font-family: "Yu Mincho", Georgia, serif; font-size: clamp(15px, 1.65vw, 19px); line-height: 1.65; }
.article-byline { display: flex; align-items: center; gap: 12px; color: #a19787; font-size: 7px; letter-spacing: .17em; }
.article-byline i { width: 4px; height: 4px; border-radius: 50%; background: #c87957; }
.article-hero__mark { position: absolute; right: 15%; top: 37%; color: rgba(218,179,133,.12); font-family: "Yu Mincho", Georgia, serif; font-size: clamp(110px, 18vw, 230px); line-height: 1; }
.article-hero__mark--code { right: 13%; top: 40%; font-family: Georgia, serif; font-size: clamp(74px, 12vw, 150px); letter-spacing: -.18em; }
.article-body { min-height: auto; padding-top: clamp(70px, 10vh, 120px); padding-bottom: clamp(80px, 12vh, 145px); justify-content: flex-start; }
.article-copy { width: min(720px, 74%); margin-left: auto; margin-right: auto; color: #d2c9ba; font-family: "Yu Mincho", Georgia, serif; font-size: 16px; line-height: 1.95; }
.article-copy > :first-child { margin-top: 0; }
.article-copy p { margin: 0 0 1.4em; }
.article-copy h2 { margin: 2.2em 0 .7em; color: #e9dfd0; font-family: "Bodoni 72", "Didot", "Yu Mincho", Georgia, serif; font-size: clamp(28px, 4vw, 38px); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; }
.article-copy__lead { color: #e1d5c3; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.7; }
.article-copy__lead strong { color: #e0ac79; font-weight: 400; }
.article-copy code { padding: .08em .33em; color: #e2ba8b; background: rgba(217,163,108,.1); font: .84em "SFMono-Regular", Consolas, monospace; }
.article-copy pre { overflow-x: auto; margin: 1.6em 0 1.9em; padding: 20px 23px; border: 1px solid rgba(224,214,194,.16); background: rgba(5,10,12,.72); color: #e3d2bb; font: 12px/1.85 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre; }
.article-copy pre code { padding: 0; color: inherit; background: transparent; font: inherit; }
.article-pullquote { margin: 2.7em 0; padding: 5px 0 5px 21px; border-left: 1px solid #bf6a4e; color: #d8b590; font-size: clamp(20px, 3vw, 28px); line-height: 1.5; }
.article-closing { min-height: 86svh; padding-top: 130px; padding-bottom: 120px; }
.article-closing__inner { width: min(720px, 80%); margin: auto; text-align: center; }
.article-closing__line { margin: 0 0 27px; color: #e7dece; font-family: "Yu Mincho", Georgia, serif; font-size: clamp(38px, 6.7vw, 76px); line-height: 1.07; }
.article-closing__inner .text-link { color: #d7c7ae; }
.article-closing__inner .text-link span { margin-left: 8px; color: #dc875d; }
.article-closing .blogs-footer { position: absolute; inset: auto 0 0; }
.article-body--second { padding-bottom: 125px; }
.article-body--second .blogs-footer { width: min(1100px, 100%); margin: 100px auto -125px; padding-left: 0; padding-right: 0; }
.article-page .chapter::after { background: linear-gradient(90deg, rgba(7,12,15,.12), rgba(7,12,15,.02) 70%); }

@media (max-width: 900px) {
  .blog-card > a { min-height: 275px; padding: 22px; }
  .blog-card__copy strong { font-size: 25px; }
  .article-copy { width: min(720px, 82%); }
  .article-hero > .eyebrow, .article-display, .article-deck, .article-byline { width: min(820px, 82%); }
}
@media (max-width: 720px) {
  .blog-hero { padding-top: 15vh; padding-bottom: 12vh; }
  .blog-hero__copy { width: 100%; margin-left: 0; }
  .blog-hero__copy .eyebrow { max-width: 300px; }
  .blog-display { font-size: clamp(74px, 17vw, 120px); }
  .blog-hero__deck { max-width: 300px; margin-top: 23px; }
  .blog-hero__seal { right: 7%; top: 17%; opacity: .65; }
  .blog-hero__seal span { font-size: 78px; }
  .blog-hero__seal i, .blog-hero__seal small { display: none; }
  .blog-list-section { min-height: auto; padding-top: 15vh; padding-bottom: 17vh; }
  .blog-list-heading { width: 100%; align-items: end; margin-bottom: 26px; }
  .blog-list-heading .eyebrow { max-width: 250px; }
  .blog-list-title { font-size: clamp(47px, 11vw, 70px); }
  .blog-count { font-size: 19px; }
  .blog-count i { font-size: 6px; }
  .blog-card-list { grid-template-columns: 1fr; width: 100%; gap: 14px; }
  .blog-card > a { min-height: 235px; grid-template-columns: 23px 1fr 18px; gap: 11px; padding: 21px; }
  .blog-card__symbol { right: 18px; top: 11px; font-size: 78px; }
  .blog-card--code .blog-card__symbol { font-size: 52px; }
  .blog-card__copy strong { font-size: 25px; }
  .blog-card__excerpt { font-size: 12px; }
  .blog-list-note { width: 100%; align-items: flex-start; justify-content: flex-start; font-size: 8px; line-height: 1.6; }
  .writing-invite { min-height: 83svh; padding-top: 16vh; padding-bottom: 15vh; }
  .writing-invite__content { width: 100%; margin-left: 0; }
  .writing-invite__content .blog-display { font-size: clamp(66px, 15vw, 105px); }
  .writing-invite__text { max-width: 310px; }
  .writing-invite__kanji { top: 34%; right: 1%; font-size: 170px; }
  .blogs-footer { min-height: 105px; flex-wrap: wrap; justify-content: space-between; padding: 17px var(--side); font-size: 6px; }
  .blogs-footer > span { order: 3; width: 100%; text-align: center; }
  .blogs-footer .back-top { font-size: 6px; }
  .article-hero { min-height: 88svh; padding-top: 115px; padding-bottom: 75px; }
  .article-back { margin-bottom: 38px; }
  .article-hero > .eyebrow, .article-display, .article-deck, .article-byline { width: 100%; }
  .article-display { font-size: clamp(61px, 15vw, 92px); }
  .article-display--wide { font-size: clamp(49px, 12.5vw, 72px); }
  .article-deck { max-width: 330px; font-size: 15px; }
  .article-hero__mark { right: 3%; top: 20%; font-size: 100px; }
  .article-hero__mark--code { right: 1%; top: 20%; font-size: 70px; }
  .article-body { padding-top: 70px; padding-bottom: 80px; }
  .article-copy { width: 100%; font-size: 15px; line-height: 1.85; }
  .article-copy h2 { margin-top: 1.9em; font-size: 30px; }
  .article-copy pre { padding: 15px; font-size: 10px; }
  .article-closing { min-height: 80svh; padding: 95px 0 130px; }
  .article-closing__inner { width: 100%; }
  .article-body--second .blogs-footer { margin-top: 70px; margin-bottom: -80px; }
}
