/* The Journal, shore hubs and Portfolio: editorial layer on top of site.css */
.wrap-wide { width: min(100% - 32px, 1480px); margin-inline: auto; }

/* Masthead */
.j-mast { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); background:
  radial-gradient(1200px 300px at 85% -10%, rgba(212, 122, 82, .10), transparent 60%), var(--shell); }
.j-crumbs { display: flex; flex-wrap: wrap; gap: .6rem; font: 500 .68rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.6rem; }
.j-crumbs a { color: var(--ink-soft); text-decoration: none; }
.j-crumbs a:hover { color: var(--apricot-deep); }
.j-crumbs [aria-current] { color: var(--ink); }
.j-issue { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 .4rem; border-block: 1px solid var(--ink); padding: .55rem 0; font: 500 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.j-issue span { padding: 0 1.2rem; border-right: 1px solid var(--line); }
.j-issue span:first-child { padding-left: 0; }
.j-issue span:last-child { border-right: 0; }
.j-word { font-size: clamp(3.4rem, 11vw, 9rem); line-height: .9; letter-spacing: -.035em; margin: 1.4rem 0 1.2rem; }
.j-intro { margin-bottom: 1.8rem; }
.j-chips { margin-bottom: 0; }
.chip small { font-size: .9em; opacity: .6; margin-left: .3rem; }
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Postmark stamp */
.stamp { position: absolute; top: 14px; right: 14px; width: 84px; height: 84px; border-radius: 50%; background: rgba(251, 247, 241, .92); color: var(--apricot-deep);
  display: grid; place-content: center; text-align: center; box-shadow: 0 0 0 3px rgba(251, 247, 241, .92), inset 0 0 0 1px var(--apricot), inset 0 0 0 4px rgba(251, 247, 241, .92), inset 0 0 0 5px rgba(212, 122, 82, .5);
  transform: rotate(-9deg); pointer-events: none; }
.stamp span { font: 500 .5rem/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; max-width: 64px; }
.stamp b { font: italic 400 1.15rem/1 var(--serif); margin-top: .15rem; color: var(--ink); }

/* Cards */
.j-kicker { display: block; font: 500 .66rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sea); }
.j-meta { font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }
.j-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2.4vw, 2rem); }
.j-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .j-grid, .j-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .j-grid, .j-grid.three { grid-template-columns: 1fr; } }
.j-card { display: flex; flex-direction: column; }
.j-card-img { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand-deep); margin-bottom: 1.1rem; }
.j-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.j-card:hover .j-card-img img { transform: scale(1.05); }
.j-card h2, .j-card h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin: .45rem 0 .5rem; }
.j-card h2 a, .j-card h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--apricot), var(--apricot)) 0 100% / 0 1px no-repeat; transition: background-size .4s; }
.j-card:hover h2 a, .j-card:hover h3 a { background-size: 100% 1px; }
.j-card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: .6rem; }

/* Featured */
.j-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.6rem, 4vw, 4rem); align-items: center; padding-bottom: clamp(2.5rem, 5vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.j-feature-img { position: relative; display: block; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-deep); box-shadow: var(--shadow); }
.j-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.j-feature-img .stamp { width: 110px; height: 110px; top: 20px; right: 20px; }
.j-feature-img .stamp span { font-size: .58rem; max-width: 84px; }
.j-feature-img .stamp b { font-size: 1.5rem; }
.j-feature h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin: .7rem 0 1rem; }
.j-feature h2 a { color: var(--ink); text-decoration: none; }
.j-feature .j-meta { display: block; margin-bottom: 1.6rem; }
@media (max-width: 900px) { .j-feature { grid-template-columns: 1fr; } }

/* Pager */
.pager { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 3.5rem; font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.pager a { color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; padding: .9rem 1.3rem; }
.pager a:hover { background: var(--ink); color: #fff; }
.pager span { color: var(--ink-soft); }

/* Story */
.story-head { padding: clamp(2rem, 5vw, 3.5rem) 0 0; text-align: center; }
.story-head .j-crumbs { justify-content: center; }
.story-head h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: .95; letter-spacing: -.03em; margin: 1rem 0 1.2rem; }
.story-dek { margin-inline: auto; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: var(--ink); max-width: 40ch; }
.story-head .j-meta { margin: 0 auto 2.4rem; max-width: 70ch; }
.story-cover { margin: 0 auto; width: min(100% - 32px, 1400px); border-radius: 32px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sand-deep); box-shadow: var(--shadow); }
.story-cover.is-portrait { aspect-ratio: 16 / 10; }
.story-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
@media (max-width: 700px) { .story-cover, .story-cover.is-portrait { aspect-ratio: 4 / 5; border-radius: 22px; } }
.story-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 6vw, 5rem) 0 1rem; align-items: start; }
.story-text { max-width: 66ch; font-size: 1.08rem; }
.story-text h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: 2.2rem 0 .7rem; }
.story-text h2:first-child { margin-top: 0; }
.story-text h2:first-child + p::first-letter { float: left; font: 400 4.6rem/.8 var(--serif); color: var(--apricot); padding: .35rem .6rem 0 0; }
.story-text .credit { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.4rem; }
.details { position: sticky; top: 110px; background: var(--sand); border-radius: 24px; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.details h2 { font-size: 1.9rem; margin: 0; }
.details dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .75rem 1rem; font-size: .94rem; }
.details dt { font: 500 .64rem/1.7 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sea); }
.details dd { margin: 0; }
.details .btn { justify-content: center; margin-top: .6rem; }
.details .text-link { align-self: center; }
@media (max-width: 900px) { .story-body { grid-template-columns: 1fr; } .details { position: static; } }

/* Story gallery */
.gal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.gal-head h2 { margin: 0; }
.gal-head span { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.story-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 14px; grid-auto-flow: dense; gap: 0 14px; }
.story-gallery figure { margin: 0 0 14px; grid-row: span 18; border-radius: 16px; overflow: hidden; background: var(--sand-deep); position: relative; }
.story-gallery figure.tall { grid-row: span 32; }
.story-gallery figure.wide { grid-column: span 2; grid-row: span 16; }
.story-gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.story-gallery button:focus-visible { outline: 3px solid var(--apricot); outline-offset: -3px; }
.story-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.story-gallery figure:hover img { transform: scale(1.03); }
.story-gallery figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.story-gallery.count-1 { grid-template-columns: 1fr; grid-auto-rows: auto; }
.story-gallery.count-1 figure { grid-row: auto; max-width: 1000px; margin-inline: auto; }
@media (max-width: 900px) { .story-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .story-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; } .story-gallery figure, .story-gallery figure.tall, .story-gallery figure.wide { grid-row: auto; grid-column: auto; } .story-gallery img { height: auto; } }

.j-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.j-prevnext a { text-decoration: none; color: var(--ink); font: 400 1.6rem/1.2 var(--serif); }
.j-prevnext a:last-child { text-align: right; }
.j-prevnext small { display: block; font: 500 .64rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--apricot-deep); margin-bottom: .5rem; }
.j-prevnext a:hover { color: var(--apricot-deep); }

/* Shore notes */
.shore-notes { background: var(--ink); color: #dfe8ea; border-radius: 30px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.shore-notes h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.shore-notes .kicker { color: var(--sea-glass); }
.shore-notes p { color: #c5d2d6; }
.shore-notes dl { margin: 0; display: grid; gap: 1.1rem; align-content: start; }
.shore-notes dl div { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: .9rem; }
.shore-notes dt { font: 500 .64rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--blush); margin-bottom: .45rem; }
.shore-notes dd { margin: 0; font-size: .96rem; }
@media (max-width: 820px) { .shore-notes { grid-template-columns: 1fr; } }

/* Hub */
.hub-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: end; }
.hub-art { margin: 0; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); max-width: 440px; justify-self: end; width: 100%; }
.hub-art img { width: 100%; height: 100%; object-fit: cover; }
.hub-h { margin-bottom: 2rem; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr; } .hub-art { justify-self: start; max-width: 320px; } }

/* Portfolio wall */
.pf-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 10px; }
.pf-wall figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; background: var(--sand-deep); }
.pf-wall figure.tall { grid-row: span 2; }
.pf-wall figure.wide { grid-column: span 2; }
.pf-wall figure.is-hidden { display: none; }
.pf-wall a { display: block; height: 100%; color: #fff; text-decoration: none; }
.pf-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.pf-wall figure:hover img { transform: scale(1.05); }
.pf-wall figcaption { position: absolute; inset: auto 0 0 0; padding: 3rem 1rem 1rem; background: linear-gradient(transparent, rgba(17, 28, 34, .72)); display: flex; flex-direction: column; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.pf-wall figure:hover figcaption, .pf-wall a:focus-visible figcaption { opacity: 1; transform: none; }
.pf-wall figcaption b { font: 400 1.4rem/1.1 var(--serif); }
.pf-wall figcaption span { font: 500 .62rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--blush); }
@media (hover: none) { .pf-wall figcaption { opacity: 1; transform: none; } }
@media (max-width: 560px) { .pf-wall { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .pf-wall figure.wide { grid-column: span 2; } }
