/* Gateways: magazine site. Photo-led, one headline face, generous whitespace. */
:root {
  --ink: #14213d;        /* logo navy: headings, rules */
  --text: #2a3142;       /* body copy */
  --muted: #6b7180;      /* captions, meta */
  --rule: #e2e4ea;       /* hairlines */
  --paper: #ffffff;
  --tint: #f4f6f9;       /* quiet bands */
  --accent: #0f6e78;     /* lagoon teal: kickers and links */
  --display: "Marcellus", Georgia, serif;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.site-head .logo img { height: 26px; width: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-family: var(--sans); font-size: 14px; letter-spacing: .02em; }
.site-nav a { text-decoration: none; color: var(--ink); padding-block: 4px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Shared type */
.kicker { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.05; }
.meta { font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* Home: lead story */
.lead { padding-block: 40px 56px; }
.lead a { text-decoration: none; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.lead .photo { aspect-ratio: 3 / 2; overflow: hidden; }
.lead .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lead a:hover .photo img { transform: scale(1.02); }
.lead h2 { font-size: clamp(44px, 6vw, 76px); margin: 12px 0 16px; }
.lead p { font-size: 21px; font-style: italic; line-height: 1.45; margin: 0 0 18px; color: #3a4252; }
.read { font-family: var(--sans); font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* Home: story grid */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 28px; }
.section-head h2 { font-size: 30px; }
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; padding-bottom: 72px; }
.story a { text-decoration: none; display: block; }
.story .photo { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 16px; }
.story .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story a:hover .photo img { transform: scale(1.03); }
.story h3 { font-size: 32px; margin: 8px 0 8px; }
.story a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.story p { margin: 0; font-size: 17px; color: #3a4252; }

/* Home: issues band */
.issues { background: var(--tint); padding-block: 56px 64px; }
.issues .intro { max-width: 560px; margin: 0 0 32px; font-size: 18px; }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cover a { text-decoration: none; display: block; }
.cover .frame { aspect-ratio: 210 / 275; position: relative; overflow: hidden; box-shadow: 0 14px 30px -14px rgba(20, 33, 61, .45); transition: transform .3s ease; }
.cover a:hover .frame { transform: translateY(-4px); }
.cover .frame img.ph { width: 100%; height: 100%; object-fit: cover; }
.cover .frame .mast { position: absolute; left: 7%; right: 7%; top: 5%; }
.cover .frame .hl { position: absolute; left: 7%; right: 7%; bottom: 8%; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 0 14px rgba(0,0,0,.45); font-family: var(--display); font-size: clamp(16px, 2.1vw, 26px); line-height: 1.05; }
.cover .label { font-family: var(--sans); font-size: 13px; margin-top: 12px; color: var(--ink); }
.cover .label span { color: var(--muted); display: block; }

/* Article */
.hero { position: relative; margin: 0; }
.hero img { width: 100%; height: min(72vh, 680px); object-fit: cover; }
.hero figcaption { max-width: var(--wrap); margin: 8px auto 0; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); font-family: var(--sans); font-size: 12px; color: var(--muted); }
.article-head { max-width: 760px; margin: 48px auto 0; text-align: left; }
.article-head h1 { font-size: clamp(48px, 7vw, 84px); margin: 12px 0 18px; }
.standfirst { font-size: 23px; font-style: italic; line-height: 1.45; color: #3a4252; margin: 0 0 20px; }
.article-head .meta { padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.body { max-width: 680px; margin: 32px auto 0; }
.body p { margin: 0 0 1.1em; }
.body > p:first-of-type::first-letter { font-family: var(--display); float: left; font-size: 74px; line-height: .85; padding: 6px 10px 0 0; color: var(--ink); }
.pull { font-family: var(--display); font-size: 32px; line-height: 1.2; color: var(--ink); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding-block: 20px; margin: 36px 0; }
.inline-fig { margin: 40px 0; }
.inline-fig img { width: 100%; }
.inline-fig figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 8px; }
.wide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair img { aspect-ratio: 4 / 3; object-fit: cover; }
.info { font-family: var(--sans); font-size: 15px; line-height: 1.6; background: var(--tint); padding: 22px 24px; margin: 40px 0 0; }
.info h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.info p { margin: 0; }
.islands { list-style: none; margin: 8px 0 0; padding: 0; }
.islands li { border-top: 1px solid var(--rule); padding-block: 22px; }
.islands h3 { font-size: 30px; }
.islands .for { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.islands p { margin: 0; }
.more { border-top: 1px solid var(--ink); margin-top: 80px; padding-top: 14px; padding-bottom: 72px; }
.more h2 { font-size: 30px; margin-bottom: 28px; }
.more .stories { grid-template-columns: repeat(3, 1fr); padding-bottom: 0; }
.more .story h3 { font-size: 26px; }

/* Footer */
.site-foot { background: var(--ink); color: #c9d0dd; font-family: var(--sans); font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px; }
.site-foot img { height: 24px; width: auto; margin-bottom: 14px; }
.site-foot h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: 12px; color: #8f99ad; }

/* Header button, card meta, ad slot */
.btn { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; white-space: nowrap; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: #fff; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.readtime { font-family: var(--sans); font-size: 12px; color: var(--muted); white-space: nowrap; }
.story .read { display: inline-block; margin-top: 14px; }
.lead .meta { margin-bottom: 22px; }
.ad { padding-block: 0 72px; }
.ad .label { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; text-align: center; }
.ad .slot { max-width: 970px; height: 250px; margin: 0 auto; border: 1px dashed #c3c9d4; background: var(--tint); display: grid; place-items: center; text-align: center; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.ad .slot b { display: block; font-weight: 500; color: var(--ink); font-size: 15px; }
.body .ad { padding: 0; margin: 48px 0 0; }
.body .ad .slot { height: 120px; }
.issues .section-head a, .more-link { font-family: var(--sans); font-size: 14px; color: var(--ink); }
.site-foot p { margin: 0 0 8px; }

@media (max-width: 860px) {
  .site-head .wrap { flex-wrap: wrap; row-gap: 12px; padding-block: 14px 10px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; gap: 24px; padding-bottom: 2px; margin-left: 0; }
  .ad .slot { height: 200px; }
  .site-head .logo img { height: 19px; }
  .btn { font-size: 12px; padding: 6px 12px; }
  .site-head .wrap { justify-content: space-between; }
  .lead a { grid-template-columns: 1fr; gap: 20px; }
  .stories, .more .stories { grid-template-columns: 1fr; gap: 40px; }
  .covers { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .article-head { margin-top: 32px; }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
