/* Atlantic Journal — editorial magazine theme
   White paper, ink-black type, one Atlantic-blue accent. */

:root {
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --ink: #0b0b0c;
  --ink-2: #2b2d31;
  --ink-3: #5a5e66;
  --rule: #0b0b0c;
  --hair: #d6d9de;
  --atlantic: #0a4f8f;
  --atlantic-deep: #073763;
  --atlantic-pale: #9cc8f2;
  --display: Didot, "Bodoni MT", "Bodoni 72", "Bodoni Moda", "Libre Bodoni", Georgia, "Times New Roman", serif;
  --text: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Cambria, serif;
  --sans: "Franklin Gothic Medium", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --measure: 66ch;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--atlantic); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--atlantic-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--atlantic); outline-offset: 3px; }

/* ---------- Masthead ---------- */
.masthead { background: var(--ink); color: #fff; border-bottom: 4px solid var(--atlantic); }
.masthead-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem;
}
.masthead-logo { display: inline-block; line-height: 0; }
.masthead-logo img { height: 34px; width: auto; }
.masthead-logo:focus-visible, .masthead-nav a:focus-visible { outline-color: var(--atlantic-pale); }

.masthead-nav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.masthead-nav::-webkit-scrollbar { display: none; }
.masthead-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.1rem 1.2rem; white-space: nowrap;
}
.masthead-nav a {
  display: inline-block; padding: 0.35rem 0;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #e9ebee; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.masthead-nav a:hover { color: #fff; border-bottom-color: var(--atlantic-pale); }
.masthead-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--atlantic-pale); }

/* ---------- Folio strip ---------- */
.folio {
  max-width: 1320px; margin: 0 auto;
  padding: 0.55rem var(--gutter);
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}
.folio-mid { display: none; font-family: var(--display); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; color: var(--ink); }

/* ---------- Lede / hero ---------- */
.journal { padding: 0 var(--gutter); }
.lede { max-width: 1200px; margin: 0 auto; padding-top: clamp(2.2rem, 6vw, 4.5rem); text-align: center; }
.lede-kicker {
  margin: 0 0 1.2rem;
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--atlantic);
}
.lede-title {
  margin: 0 auto; max-width: 17ch;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.35rem, 7.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.012em;
  color: var(--ink); text-wrap: balance;
}
.lede-ornament {
  margin: clamp(1.4rem, 3vw, 2.2rem) auto;
  width: min(100%, 22rem); height: 7px;
  border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
  position: relative;
}
.lede-ornament::after {
  content: "\2726";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  background: var(--paper); padding: 0 0.7rem;
  color: var(--atlantic); font-size: 0.95rem; line-height: 1;
}
.lede-plate { margin: 0 calc(var(--gutter) * -1); }
.hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.standfirst {
  max-width: 68rem; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.standfirst p { margin: 0 0 1.1em; max-width: var(--measure); hyphens: auto; }
.standfirst p:first-child {
  max-width: 44rem; margin: 0 auto 1.6rem;
  font-size: clamp(1.18rem, 2.3vw, 1.42rem); line-height: 1.6; color: var(--ink);
}
.standfirst p:first-child::first-letter {
  float: left;
  font-family: var(--display); font-weight: 400;
  font-size: 4.6em; line-height: 0.82;
  margin: 0.06em 0.1em -0.05em 0;
  color: var(--atlantic);
}

/* ---------- Feature body ---------- */
.feature { max-width: 1200px; margin: 0 auto; counter-reset: sec; padding-bottom: clamp(3rem, 7vw, 5rem); }

.sec { counter-increment: sec; padding: clamp(2.4rem, 6vw, 4rem) 0 0; }
.sec-title {
  margin: 0 0 1.2rem;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.12;
  color: var(--ink); text-wrap: balance;
}
.sec-title::before {
  content: counter(sec, decimal-leading-zero);
  display: block; margin-bottom: 0.75rem; padding-top: 0.7rem;
  border-top: 3px solid var(--ink);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--atlantic);
}
.sec-body { max-width: var(--measure); }
.sec-body p { margin: 0 0 1.15em; }
.sec-body strong { color: var(--ink); font-weight: 700; }
.sec-body em { font-style: italic; }
.sec-body ul { list-style: none; margin: 0 0 1.4em; padding: 0.4rem 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.sec-body li { position: relative; padding: 0.45rem 0 0.45rem 1.8rem; }
.sec-body li + li { border-top: 1px dotted var(--hair); }
.sec-body li::before { content: "\2014"; position: absolute; left: 0; color: var(--atlantic); }

/* plain sections: a quieter ruled column */
.sec--plain .sec-title::before { border-top-width: 1px; }

/* ---------- Full-bleed plate ---------- */
.bleed {
  margin: clamp(2.4rem, 6vw, 4rem) calc(50% - 50vw) 0;
  padding: clamp(1.6rem, 5vw, 3.5rem) var(--gutter);
  background: var(--paper-2);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  box-shadow: inset 0 6px 0 var(--paper), inset 0 7px 0 var(--rule), inset 0 -6px 0 var(--paper), inset 0 -7px 0 var(--rule);
}
.bleed .sec-img {
  width: 100%; max-width: 600px; margin: 0 auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--ink);
  outline: 10px solid var(--paper); outline-offset: 0;
  box-shadow: 0 0 0 11px var(--hair);
}

/* ---------- Colophon / footer ---------- */
.colophon { background: var(--ink); color: #d9dce1; border-top: 4px solid var(--atlantic); }
.colophon-inner {
  max-width: 1320px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
  display: grid; gap: 2rem;
}
.colophon-name {
  margin: 0 0 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid #3a3d42;
  font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; color: #fff;
}
.colophon address { font-style: normal; line-height: 1.65; margin-bottom: 1.4rem; }
.colophon-lines { margin: 0; }
.colophon-lines div { padding: 0.65rem 0; border-top: 1px solid #3a3d42; }
.colophon-lines dt {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: #9aa0a8;
}
.colophon-lines dd { margin: 0.2rem 0 0; overflow-wrap: anywhere; }
.colophon a { color: var(--atlantic-pale); }
.colophon a:hover { color: #fff; }
.colophon a:focus-visible { outline-color: var(--atlantic-pale); }
.colophon-map { border: 1px solid #3a3d42; padding: 6px; background: #151618; }
.colophon-map iframe { display: block; filter: grayscale(0.35); }
.colophon-copy {
  max-width: 1320px; margin: 0 auto; padding: 1.1rem var(--gutter) 1.6rem;
  border-top: 1px solid #2a2c30;
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9aa0a8;
}

/* ---------- 768+ ---------- */
@media (min-width: 768px) {
  .masthead-logo img { height: 38px; }
  .folio-mid { display: inline; }
  .masthead-nav ul { flex-wrap: nowrap; gap: 0 1.4rem; }
  .masthead-nav li + li { border-left: 1px solid #3a3d42; padding-left: 1.4rem; }
  .lede-plate { margin: 0; }
  .hero-img { aspect-ratio: 2 / 1; }
  .standfirst { column-count: 2; column-gap: 3rem; column-rule: 1px solid var(--hair); }
  .standfirst p { max-width: none; }
  .standfirst p:first-child { column-span: all; }
  .colophon-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; align-items: start; }
}

/* ---------- 1024+ : ruled two-column sections ---------- */
@media (min-width: 1024px) {
  .masthead-nav a { font-size: 0.75rem; }
  .sec { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); }
  .sec-title { padding-right: 2.5rem; margin: 0; }
  .sec-body { padding-left: 2.5rem; padding-top: 2.6rem; border-left: 1px solid var(--rule); }
  .sec-body > p:first-child::first-line { font-variant: small-caps; letter-spacing: 0.04em; color: var(--ink); }
  .bleed .sec-img { max-width: 640px; }
}

@media (min-width: 1440px) {
  .lede-title { font-size: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
