@font-face {
  font-family: Hanken;
  src: url("../fonts/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Newsreader;
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --serif: Newsreader, Georgia, serif;
  color-scheme: light;
  --navy: #102843;
  --ink: #12263c;
  --blue: #095b9c;
  --bright-blue: #64c5fd;
  --muted: #4a5a69;
  --rule: #bfccda;
  --paper: #fff;
  --wash: #edf4f9;
  --gutter: clamp(1rem, 3vw, 3rem);
  --gap: clamp(.9rem, 1.6vw, 1.6rem);
  --sans: Hanken, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); margin: 0; font: 16px/1.42 var(--sans); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, main:focus-visible {
  outline: 3px solid #137bc1;
  outline-offset: 3px;
}
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(100% - var(--gutter) * 2, 1380px); margin-inline: auto; }
.skip {
  position: absolute;
  inset: .6rem auto auto var(--gutter);
  z-index: 2;
  min-height: 44px;
  padding: .7rem 1rem;
  color: var(--ink);
  background: white;
  transform: translateY(-160%);
}
.skip:focus { transform: translateY(0); }

.masthead {
  color: #f5faff;
  background: var(--navy);
  border-top: 5px solid var(--bright-blue);
}
.masthead-inner {
  min-height: clamp(84px, 6.8vw, 110px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.identity, .utility {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.wordmark { display: block; width: clamp(220px, 26vw, 404px); line-height: 1; }
.wordmark img { display: block; width: 100%; height: auto; }

.identity p {
  white-space: nowrap;
  padding-left: 1.08rem;
  border-left: 1px solid #5490b4;
  color: #c9e5f7;
  font-weight: 740;
  font-size: clamp(.87rem, 1.15vw, 1.07rem);
  line-height: 1.1;
}
.utility {
  color: #e3eef9;
  font-size: .83rem;
  font-weight: 680;
  white-space: nowrap;
}
.search-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding-left: .8rem;
  border-left: 1px solid #477292;
  text-decoration: none;
}
.search-mark {
  position: relative;
  width: .95rem;
  height: .95rem;
  box-sizing: border-box;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}
.search-mark::after {
  content: "";
  position: absolute;
  width: .36rem;
  height: 1.6px;
  bottom: -2px;
  right: -4px;
  transform: rotate(47deg);
  background: currentColor;
}
.search-link:hover, .footer a:hover { text-decoration: underline; }
.masthead a:focus-visible, .footer a:focus-visible { outline-color: var(--bright-blue); }

.nav-band { background: #f4f8fc; border-bottom: 1px solid #abc0d2; }
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.navigation nav { display: flex; gap: clamp(1rem, 3vw, 2.9rem); }
.navigation a {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  min-height: 45px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 810;
  text-decoration: none;
}
.navigation .calculators-link { color: var(--blue); white-space: nowrap; }
.navigation a:hover { color: var(--blue); text-decoration: underline; }


/* Lead photographs share a baseline so all three desks have an equal entrance. */
.front {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 1.65vw, 30px);
  margin-top: clamp(17px, 1.6vw, 27px);
}
.front article { min-width: 0; }
.front article + article { padding-left: clamp(13px, 1.35vw, 23px); border-left: 1px solid var(--rule); }

.front-story, .specials article > a, .department-story, .department-rail a {
  display: block;
  text-decoration: none;
}
.photo {
  display: block;
  overflow: hidden;
  width: 100%;
  background: #d7e2ea;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.front .photo { height: clamp(172px, 15.75vw, 245px); }
.front-copy { padding-top: 11px; }
.kicker {
  color: var(--blue);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}
.front .kicker, .latest .kicker { display: flex; align-items: center; gap: 7px; }
.front .kicker::before { content: ""; width: 21px; height: 3px; background: var(--blue); flex: none; }
.front h1, .front h2 {
  color: var(--ink);
  margin-top: .32rem;
  font-size: clamp(1.75rem, 2.8vw, 2.9rem);
  font-weight: 850;
  line-height: .99;
  letter-spacing: -.05em;
  text-wrap: pretty;
}
.front h1 { font-size: clamp(2.1rem, 3.85vw, 4rem); }
.front-deck { margin-top: .54rem; color: var(--muted); font-size: 1.015rem; line-height: 1.32; max-width: 55ch; }
.latest {
  border-block: 2px solid var(--navy);
  margin-top: clamp(16px, 1.65vw, 28px);
  padding-bottom: clamp(14px, 1.2vw, 23px);
}
.latest-head { display: flex; align-items: center; justify-content: space-between; padding-block: 8px 10px; }
.latest h2 {
  color: var(--navy); font-size: clamp(1.35rem, 1.75vw, 1.85rem); line-height: 1.1;
  font-weight: 850; letter-spacing: -.04em;
}
.latest-archive { color: var(--blue); font-size: .85rem; font-weight: 750; text-underline-offset: 3px; min-height: 28px; display: inline-flex; align-items: center; }
.latest ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 0; margin: 0; list-style: none; }
.latest li { min-width: 0; }
.latest li + li { border-left: 1px solid var(--rule); padding-left: var(--gap); }
.latest li a { display: grid; grid-template-columns: clamp(82px, 9.9vw, 145px) 1fr; gap: clamp(10px, 1.05vw, 17px); align-items: start; text-decoration: none; }
.latest .photo { aspect-ratio: 1.36; }
.latest h3 {
  font-size: clamp(1.15rem, 1.73vw, 1.8rem); font-weight: 795; line-height: 1.05;
  letter-spacing: -.037em; margin-top: 5px; text-wrap: pretty;
}
.latest .kicker { font-size: .7rem; }
.latest li a:hover h3 { color: var(--blue); }

.front a:hover :is(h1, h2),
.specials a:hover h3,
.department a:hover h3,
.calculator-directory li a:hover { color: var(--blue); }
@media (hover: hover) {
  a:hover .photo img { transform: scale(1.025); }
}

.specials {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1.07fr) minmax(0, .91fr);
  gap: var(--gap);
  padding-block: 1rem clamp(1.4rem, 2.5vw, 2.4rem);
}
.specials article {
  min-width: 0;
  background: var(--wash);
  padding: .87rem clamp(.75rem, 1.25vw, 1.25rem) .65rem;
  border-top: 4px solid var(--blue);
}
.specials h2 {
  margin-bottom: .85rem;
  color: var(--blue);
  font-size: clamp(.82rem, 1.4vw, 1.16rem);
  font-weight: 890;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.specials h3 {
  margin-top: .32rem;
  font-size: clamp(1.24rem, 2.2vw, 2.43rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.043em;
  text-wrap: pretty;
}
.specials a p:not(.kicker) {
  margin-top: .48rem;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.38;
}
.special-breakdown .photo { aspect-ratio: 2.3; }
.special-breakdown .kicker { margin-top: .55rem; }
.special-numbers .source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .25rem;
  color: var(--blue);
  font-size: .73rem;
  line-height: 1.25;
  font-weight: 780;
  text-decoration: underline;
}
.pew-chart { margin-top: .72rem; }
.pew-chart figcaption {
  margin-bottom: .57rem;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.2;
}
.pew-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(30px, 1fr) 2.1rem;
  gap: .45rem;
  align-items: center;
  margin-top: .5rem;
  font-size: .76rem;
  line-height: 1.1;
}
.pew-row strong { color: var(--navy); font-size: 1rem; text-align: right; }
.pew-track { background: #cbdbe8; height: .72rem; }
.pew-track i { height: 100%; display: block; background: var(--blue); }
.specials .special-opinion {
  padding: .87rem clamp(.85rem, 1.6vw, 1.55rem) 1rem;
  background: var(--navy);
  border-top-color: var(--bright-blue);
  color: #f8fbff;
}
.special-opinion h2, .special-opinion .kicker { color: #a6dfff; }
.special-opinion h2 { padding-bottom: .75rem; border-bottom: 1px solid #6a879d; }
.special-opinion a p:not(.kicker) { color: #d6eaff; max-width: 35ch; }
.special-opinion a:hover h3 { color: white; text-decoration: underline; }

.departments { display: grid; gap: clamp(1.35rem, 2.6vw, 2.5rem); }
.department, .calculator-directory { min-width: 0; scroll-margin-top: 1rem; }
.department-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  padding-inline: clamp(.65rem, 1.3vw, 1.3rem);
  margin-bottom: .9rem;
  color: white;
  background: var(--blue);
  border-left: .38rem solid var(--bright-blue);
}
.department-band h2 {
  min-width: 0;
  color: inherit;
  font-size: clamp(1.44rem, 2.5vw, 2.55rem);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 875;
}
.department-band a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .5rem;
  margin-left: .4rem;
  white-space: nowrap;
  font-size: .79rem;
  font-weight: 790;
  text-decoration: none;
}
.department-band a:hover { text-decoration: underline; }
.department-band a:focus-visible { outline-color: white; }
.department-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, .89fr);
  grid-template-areas: "feature secondary rail";
  gap: var(--gap);
  align-items: start;
}
.department-feature { grid-area: feature; }
.department-secondary { grid-area: secondary; }
.department-rail { grid-area: rail; }
.department-story > div { min-width: 0; }
.department-story .photo { aspect-ratio: 2.05; margin-bottom: .67rem; }
.department-secondary .department-story .photo { aspect-ratio: 1.65; }
.department :is(h3, p) { text-wrap: pretty; }
.department h3 {
  margin-top: .26rem;
  font-size: clamp(1.24rem, 2.25vw, 2.6rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.037em;
}
.department-secondary h3 { font-size: clamp(1.13rem, 1.9vw, 2.15rem); }
.department-deck {
  max-width: 54ch;
  margin-top: .45rem;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.42;
}
.department-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}
.department-rail li { border-top: 1px solid var(--rule); }
.department-rail li:first-child { border-top: 2px solid var(--navy); }
.department-rail a { min-height: 44px; padding: .7rem 0; }
.department-rail h3 { font-size: clamp(1.13rem, 1.59vw, 1.75rem); }

.department--influence .department-layout {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.81fr);
  grid-template-areas: "rail feature" "rail secondary";
}
.department--influence .department-feature .department-story,
.department--influence .department-secondary .department-story,
.department--behaviour .department-feature .department-story,
.department--media .department-secondary .department-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}
.department--influence .department-story .photo,
.department--behaviour .department-feature .photo,
.department--media .department-secondary .photo { margin: 0; }
.department--influence .department-secondary {
  border-top: 1px solid var(--rule);
  padding-top: .72rem;
}
.department--influence .department-secondary .department-story { grid-template-columns: 112px minmax(0, 1fr); }
.department--influence .department-secondary .photo { aspect-ratio: 1.52; }
.department--influence .department-rail a { padding-block: .94rem; }

.department--technology .department-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .69fr);
}
.department--technology .department-story .photo { aspect-ratio: 2.12; }
.department--technology .department-rail { padding-inline: .85rem; background: var(--wash); }
.department--technology .department-rail li:first-child { border-top: 0; }

.department--behaviour .department-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "feature feature secondary" "rail rail rail";
}
.department--behaviour .department-feature .department-story {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas: "copy visual";
}
.department--behaviour .department-feature .photo { grid-area: visual; aspect-ratio: 1.63; }
.department--behaviour .department-feature .department-story > div { grid-area: copy; }
.department--behaviour .department-secondary .photo { aspect-ratio: 2.32; }
.department--behaviour .department-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  border-block: 1px solid var(--rule);
}
.department--behaviour .department-rail li { border-top: 0; }

.department--media .department-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  grid-template-areas: "feature secondary" "feature rail";
}
.department--media .department-secondary .department-story { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); }
.department--media .department-secondary .photo { aspect-ratio: 1.63; }

.department--culture .department-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr) minmax(0, .94fr);
}
.department--culture .department-feature .photo { aspect-ratio: 1.95; }
.department--culture .department-secondary .photo { aspect-ratio: 1.17; }

.calculator-directory {
  margin-top: clamp(1.6rem, 3.3vw, 3.4rem);
  margin-bottom: clamp(1.6rem, 3.3vw, 3.4rem);
}
.calculator-directory .department-band { background: var(--navy); }
.calculator-directory ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0 var(--gap);
}
.calculator-directory li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
  min-height: 48px;
  padding: .4rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .92rem;
  font-weight: 760;
  text-decoration: none;
}
.calculator-directory li a span { color: var(--blue); }

.footer {
  padding-block: 1.35rem 1.1rem;
  border-top: 4px solid var(--bright-blue);
  background: var(--navy);
  color: #f7faff;
}
.footer-main, .footer-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.15rem;
}
.footer .wordmark { width: clamp(164px, 18vw, 270px); }
.footer p { font-size: .78rem; color: #bdd9ef; margin-top: .25rem; }
.footer nav, .footer-utility > div { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.footer nav a, .footer-utility > div a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .8rem;
  font-weight: 720;
  text-decoration: none;
}
.footer-utility {
  padding-top: .25rem;
  margin-top: .68rem;
  border-top: 1px solid #6a879d;
}
.footer-utility a { color: #d2e7f7; }

@media (max-width: 1100px) {
  .department--influence .department-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.82fr); }
}
@media (max-width: 899px), (pointer: coarse) {
  .wordmark { display: flex; align-items: center; min-height: 44px; }
  .latest-archive, .special-numbers > a:first-of-type { min-height: 44px; }
  .special-numbers > a:first-of-type { display: grid; align-content: center; }
  .navigation nav a { min-width: 44px; }
}

@media (max-width: 899px) {
  .latest li a { grid-template-columns: 80px 1fr; gap: 9px; }
  .latest li + li { padding-left: .72rem; }
  .latest h3 { font-size: 1.14rem; }
  .front .photo { height: clamp(150px, 19vw, 172px); }
  .front h2 { font-size: clamp(1.5rem, 3.1vw, 1.85rem); }
  .front h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
  .front-deck { font-size: .95rem; }
  .specials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .special-opinion { grid-column: 1 / -1; }
  .special-opinion a p:not(.kicker) { max-width: 66ch; }
}

@media (max-width: 759px) {
  .masthead-inner { min-height: 0; padding-block: 13px; }
  .identity { gap: 12px; }
  .identity .wordmark { width: clamp(140px, 31vw, 210px); }
  .identity p { padding-left: 10px; font-size: .78rem; }
  .utility { gap: .4rem; }
  .utility time { display: none; }
  .search-link { font-size: .78rem; }
  .navigation nav { flex: 1; justify-content: space-between; gap: 5px; }
  .navigation a { font-size: .86rem; }
  .navigation .calculators-link { display: none; }

  .specials { grid-template-columns: 1fr; }
  .special-opinion { grid-column: auto; }
  .specials .special-breakdown > a {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    gap: .7rem;
    align-items: start;
  }
  .special-breakdown .photo { aspect-ratio: 1.18; }
  .special-breakdown .kicker { margin-top: 0; }
  .special-breakdown a p:not(.kicker) { max-width: none; }
  .specials h3 { font-size: clamp(1.35rem, 4.4vw, 2.3rem); }
  .department-layout,
  .department--influence .department-layout,
  .department--technology .department-layout,
  .department--behaviour .department-layout,
  .department--media .department-layout,
  .department--culture .department-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "feature feature" "secondary rail";
    gap: .85rem;
  }
  .department h3 { font-size: clamp(1.28rem, 4vw, 2.4rem); }
  .department-feature h3 { font-size: clamp(1.7rem, 5.6vw, 3.1rem); }
  .department-secondary .department-story .photo { aspect-ratio: 1.44; }
  .department--influence .department-secondary { border-top: 0; padding-top: 0; }
  .department--influence .department-secondary .department-story,
  .department--media .department-secondary .department-story { display: block; }
  .department--influence .department-secondary .photo,
  .department--media .department-secondary .photo { margin-bottom: .67rem; }
  .department--influence .department-rail a { padding-block: .7rem; }
  .department--behaviour .department-rail { display: block; border-top: 0; }
  .department--behaviour .department-rail li { border-top: 1px solid var(--rule); }
  .department--behaviour .department-rail li:first-child { border-top: 2px solid var(--navy); }
  .department--behaviour .department-feature .department-story {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: .67rem;
  }
  .department--behaviour .department-feature .photo { aspect-ratio: 1.1; }
  .calculator-directory ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main, .footer-utility { align-items: flex-start; flex-direction: column; }
  .footer-utility a[href$="/rss.xml"] { min-inline-size: 44px; justify-content: center; }
}

@media (max-width: 699px) {
  .front { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 15px; }
  .front-lead { grid-column: 1/-1; padding-bottom: 13px; border-bottom: 1px solid var(--rule); }
  .front-lead .front-story { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; gap: 14px; }
  .front .front-lead .photo { height: auto; aspect-ratio: 1.34; }
  .front-lead .front-copy { padding: 0; }
  .front-lead h1 { font-size: clamp(1.65rem, 5.8vw, 2.7rem); }
  .front article:nth-child(2) { padding: 0; border: 0; }
  .front .front-support { padding-left: 0; border-left: 0; }
  .front .front-support .photo { height: auto; aspect-ratio: 1.7; }
  .front-support .front-copy { padding-top: .5rem; }
  .front-support h2 { font-size: clamp(1.25rem, 4.3vw, 1.74rem); line-height: 1.03; letter-spacing: -.035em; }
  .front .kicker,.latest .kicker { font-size: .7rem; }
  .front .kicker::before { width: 11px; height: 2px; }
  .front-deck { display: none; }
  .latest { margin-top: 17px; padding-bottom: 12px; }
  .latest-head { padding-block: 6px 8px; }
  .latest ul { grid-template-columns: 1fr; gap: 8px; }
  .latest li a { grid-template-columns: 82px minmax(0,1fr); align-items: center; column-gap: 13px; }
  .latest .photo { height: 61px; aspect-ratio: auto; }
  .latest li + li { padding: 8px 0 0; border: 0; border-top: 1px solid var(--rule); }
  .latest h3 { font-size: clamp(1.07rem, 4.2vw, 1.35rem); margin-top: 3px; }
}
@media (max-width: 420px) {
  .specials .special-breakdown > a { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .calculator-directory .department-band { padding-block: .5rem; }
  .identity { gap: 8px; }
  .identity p { font-size: .71rem; padding-left: 8px; }
  .search-link { padding-left: 0; border: 0; }
  .navigation nav { flex-wrap: wrap; }
  .navigation a { font-size: .77rem; }

  .department--influence .department-feature .department-story,
  .department--behaviour .department-feature .department-story {
    display: block;
  }
  .department--influence .department-feature .photo,
  .department--behaviour .department-feature .photo {
    aspect-ratio: 1.85;
    margin-bottom: .67rem;
  }
  .department--technology .department-rail { padding-inline: .4rem; }
  .department-rail h3 { font-size: 1.075rem; }
  .department-band a { font-size: .73rem; }
  .calculator-directory ul { grid-template-columns: 1fr; }
}

@media (max-width: 374px) {
  .navigation nav { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 8px; }
  .navigation nav a:nth-child(3n+2) { justify-content: center; }
  .navigation nav a:nth-child(3n) { justify-content: flex-end; }
  .search-link { width: 44px; justify-content: center; }
  .search-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .photo img { transition: none; }
  a:hover .photo img { transform: none; }
}

.navigation nav a[aria-current] {
  color: var(--blue);
  box-shadow: inset 0 -3px var(--blue);
}
