/* Self-hosted copies of the Google Fonts that index.html names (Latin subset, variable weights), under the
   SIL Open Font License (OFL-*.txt beside them). build.py puts this ahead of the page's own styles, renames
   each file with a content hash, and the url()s resolve from /assets/. */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/cormorant-garamond.5d618c462b.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(fonts/cormorant-garamond-italic.e6d6d1d738.woff2) format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/jost.235d8f8964.woff2) format("woff2");
}

:root {
  /* Layout: storefront chrome (utility bar, two-tier header) above a centred 1160px journal:
     page head, 3-up article cards, pager, 4-up collections band, 4-column footer. Single light theme by request. */
  --white: #FFFFFF;
  --mist: #F3F9FD;
  --sky: #E2F0FA;
  --powder: #BCDDF1;
  --azure: #2C70A3;
  --ink: #15304A;
  --muted: #587287;
  --line: #D5E6F2;

  --display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --body: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Components set their own display (e.g. .results, .pager are flex), so make the hidden attribute win. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  box-sizing: content-box;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Utility bar ---------- */
.utility { background: var(--powder); color: var(--ink); }
.utility-inner { display: flex; justify-content: space-between; align-items: stretch; min-height: 40px; }
.social { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 22px; height: 22px; color: var(--ink); }
.social a:hover { color: var(--azure); }
.social svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "logo search";
  align-items: center;
  padding-block: 28px;
}
.logo {
  display: inline-flex; align-items: center; position: relative;
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase;
}
.logo span { letter-spacing: .12em; margin-right: -.12em; }
.logo-rule { display: block; width: 1px; height: 30px; margin-inline: 16px; background: var(--azure); }
.logo::after {
  content: ""; position: absolute; top: -4px; right: -14px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--powder);
}
.logo em {
  font-style: italic; font-weight: 500; font-size: 1.14em; letter-spacing: .04em;
  text-transform: none; color: var(--azure);
}
.brand { grid-area: logo; }

.search { grid-area: search; display: flex; align-items: center; border-bottom: 1px solid var(--powder); }
.search input {
  width: 220px; border: 0; background: transparent; padding: 8px 4px;
  font: 400 14px/1.4 var(--body); color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search:focus-within { border-bottom-color: var(--azure); }
.search button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.search svg { width: 17px; height: 17px; }

/* ---------- Journal listing ---------- */
.page-head { padding-block: 64px 44px; }
.eyebrow {
  margin: 0; color: var(--azure);
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.page-head h1 {
  margin: 14px 0 18px;
  font-family: var(--display); font-weight: 500; font-size: 68px; line-height: 1; letter-spacing: -.005em;
}
.page-head h1 em { font-style: italic; font-weight: 400; color: var(--azure); }
.intro { margin: 0; max-width: 60ch; font-size: 17px; color: var(--muted); }

.results {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin: -12px 0 32px; font-size: 15px; color: var(--muted);
}
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--azure);
  font-size: 15px; text-decoration: underline; text-underline-offset: 3px;
}

.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px; row-gap: 56px;
}
.card { min-width: 0; }
.card-media {
  display: block; overflow: hidden; border-radius: 4px;
  aspect-ratio: 3 / 2; max-width: 100%; background: var(--sky);
}
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-title {
  margin: 20px 0 10px;
  font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.15; letter-spacing: .003em;
  text-wrap: balance;
}
.card-title a { text-decoration: none; transition: color .2s ease; }
.card:hover .card-title a, .card-title a:hover { color: var(--azure); }

.meta { display: flex; flex-wrap: wrap; margin: 0; font-size: 13px; color: var(--muted); }
.meta span + span::before { content: "•"; margin-inline: 9px; color: var(--powder); }

.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 64px 0 88px; }
.pager a, .pager span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 4px;
  border: 1px solid var(--line); text-decoration: none;
  font-size: 15px; color: var(--azure); font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--azure); }
.pager .is-current { background: var(--azure); border-color: var(--azure); color: var(--white); }
.pager .pg-step { border-color: transparent; padding-inline: 12px; letter-spacing: .04em; }
.pager .pg-step:hover { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }

.empty {
  grid-column: 1 / -1; padding: 48px 24px; text-align: center;
  background: var(--mist); border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--display); font-size: 24px;
}

/* ---------- Article ---------- */
.post { max-width: 780px; margin-inline: auto; padding-block: 52px 24px; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted);
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.crumbs a { color: var(--azure); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post h1 {
  margin: 18px 0 16px;
  font-family: var(--display); font-weight: 500; font-size: clamp(38px, 5.4vw, 56px); line-height: 1.06;
  text-wrap: balance;
}
.post > .meta { font-size: 14px; }
.post-hero { margin: 34px 0 44px; }
.post-hero img {
  display: block; width: 100%; height: auto; max-width: 100%;
  aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--sky);
}
.post-hero figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.post-hero figcaption a { color: inherit; text-underline-offset: 3px; }
.post-hero figcaption a:hover { color: var(--azure); }

.prose { max-width: 68ch; font-size: 17.5px; line-height: 1.75; }
.prose p { margin: 0 0 1.1em; }
.prose .lede {
  font-family: var(--display); font-style: italic; font-size: 25px; line-height: 1.45; margin-bottom: 1.4em;
}
.prose h2 {
  margin: 1.7em 0 .5em;
  font-family: var(--display); font-weight: 500; font-size: 35px; line-height: 1.15; text-wrap: balance;
}
.prose h3 {
  margin: 0 0 .9em; color: var(--azure);
  font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.prose strong { font-weight: 500; color: var(--azure); }
.prose ul { display: grid; gap: .55em; margin: 0 0 1.3em; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--powder); border: 1px solid var(--azure);
}
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--line); border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th {
  background: var(--sky); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.prose tbody th { font-weight: 500; white-space: nowrap; }
.keypoints {
  margin: 2.2em 0; padding: 26px 30px 12px;
  background: var(--mist); border: 1px solid var(--line); border-radius: 6px;
}
.prose details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.prose details:first-of-type { border-top: 1px solid var(--line); }
.prose summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.3;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; font-family: var(--body); font-weight: 300; font-size: 24px; color: var(--azure); }
.prose details[open] summary::after { content: "–"; }
.prose details p { margin: 12px 0 0; }

.post-note {
  max-width: 68ch; margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.back {
  display: inline-block; margin-top: 28px; color: var(--azure); text-decoration: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.back:hover { text-decoration: underline; text-underline-offset: 4px; }

.related { padding-block: 64px 96px; }
.related h2 {
  margin: 0 0 36px; text-align: center;
  font-family: var(--display); font-weight: 500; font-size: 38px;
}
.related .card-title { font-size: 25px; }

/* ---------- Collections ---------- */
.collections { background: var(--mist); border-top: 1px solid var(--line); }
.collections .wrap { padding-block: 76px 84px; }
.collections h2 {
  margin: 0 0 44px; text-align: center;
  font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1.1; text-wrap: balance;
}
.collections h2 em { font-style: italic; font-weight: 400; color: var(--azure); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.tile { display: grid; gap: 18px; text-decoration: none; justify-items: center; text-align: center; }
.tile-media {
  width: 100%; aspect-ratio: 1; max-width: 100%;
  background: var(--sky); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.tile-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-label { font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.tile:hover .tile-label { color: var(--azure); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sky); color: var(--ink); }
.site-footer .wrap { padding-block: 64px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.foot-brand .logo { font-size: 24px; }
.foot-brand .logo-rule { height: 24px; margin-inline: 13px; }
.foot-brand p { margin: 18px 0 0; max-width: 30ch; font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.45; }
.f-head {
  margin: 0 0 18px; color: var(--azure);
  font-family: var(--body); font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.f-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.f-list a { text-decoration: none; }
.f-list a:hover { color: var(--azure); text-decoration: underline; text-underline-offset: 3px; }
.f-contact { margin: 0 0 14px; font-size: 15px; font-style: normal; line-height: 1.7; }
.f-contact span { display: block; }
.site-footer .social { margin-top: 18px; gap: 18px; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--powder);
  font-size: 13px;
}
.foot-base p { margin: 0; }
.foot-base p:last-child { max-width: 62ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .grid > .card:last-child:nth-child(odd) { grid-column: span 2; }
  .grid > .card:last-child:nth-child(odd) .card-media { aspect-ratio: 21 / 9; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 56px; }
}
@media (max-width: 600px) {
  .header-inner { grid-template-columns: 1fr; grid-template-areas: "logo" "search"; row-gap: 16px; padding-block: 20px; }
  .search input { width: 100%; }
  .logo { font-size: 23px; }
  .logo-rule { height: 23px; margin-inline: 12px; }
  .page-head { padding-block: 44px 32px; }
  .page-head h1 { font-size: 46px; }
  .intro { font-size: 16px; }
  .grid { grid-template-columns: 1fr; row-gap: 44px; }
  .grid > .card:last-child:nth-child(odd) { grid-column: auto; }
  .grid > .card:last-child:nth-child(odd) .card-media { aspect-ratio: 3 / 2; }
  .card-title { font-size: 25px; }
  .pager { margin: 48px 0 64px; gap: 8px; }
  .collections h2 { font-size: 32px; }
  .tile-label { font-size: 11.5px; letter-spacing: .16em; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .prose { font-size: 16.5px; }
  .prose .lede { font-size: 22px; }
  .prose h2 { font-size: 30px; }
  .keypoints { padding: 22px 20px 8px; }
  .related h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
