:root {
	--navy: #063458; --sky: #d5e6eb; --far: #a9c5cf; --mid: #55808f; --pine: #1d514d;
	--webbing: #ffd02e; --coral: #e8604c; --ink: #142d3d;
	--display: "Alegreya Sans", "Segoe UI", sans-serif;
	--body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
	--gutter: max(20px, calc((100% - 1160px) / 2));
}
/* CJK needs its own fonts, and Japanese and Chinese share characters with different shapes. */
:root:lang(ja) {
	--display: "Alegreya Sans", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
	--body: "Atkinson Hyperlegible", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
}
:root:lang(zh) {
	--display: "Alegreya Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--body: "Atkinson Hyperlegible", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 18px/1.6 var(--body); overflow-wrap: break-word; }
h1, h2, h3 { margin: 0 0 .45em; color: var(--navy); font-family: var(--display); font-weight: 800; line-height: 1.04; text-wrap: balance; }
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { line-height: 1.3; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
h1 { font-size: clamp(38px, 6vw, 80px); }
h2 { font-size: clamp(30px, 3.7vw, 48px); }
h3 { font-size: 27px; }
p { margin: 0 0 1em; max-width: 62ch; }
ul { margin: 0 0 1.2em; padding-left: 1.15em; }
li { padding: 3px 0; }
li::marker { color: var(--mid); }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
main:focus { outline: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: #fff; padding: 10px; }
.skip-link.screen-reader-text { display: none; } /* the theme has a translated one */
.wp-site-blocks > * { margin-block: 0; }

/* Header */
.topbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 40px; padding: 6px max(20px, calc((100% - 1320px) / 2)); background: var(--navy); color: #fff; font-size: 14px; }
.topbar .status { margin: 0; max-width: none; }
.languages { position: relative; flex: none; }
.languages summary { cursor: pointer; padding: 3px 4px; }
.languages ul { position: absolute; right: 0; top: 100%; min-width: 190px; margin: 6px 0 0; padding: 6px; list-style: none; background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.languages a { display: block; padding: 7px 10px; text-decoration: none; font-size: 16px; }
.languages a:hover, .languages a[aria-current] { background: var(--sky); }
.topbar summary:focus-visible { outline-color: var(--webbing); }
.masthead { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding: 14px max(20px, calc((100% - 1320px) / 2)); background: var(--sky); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--navy); text-decoration: none; font: 800 21px/1.02 var(--display); }
.brand img { width: 68px; height: auto; }
.site-nav ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav li { padding: 0; }
.site-nav a { display: block; padding: 8px 0; border-bottom: 3px solid transparent; color: var(--navy); font: 500 19px var(--display); text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current] { border-color: var(--navy); }
.site-nav a.report-link { padding: 11px 16px; border: 2px solid var(--webbing); border-radius: 3px; background: var(--webbing); font-weight: 800; }
.menu { display: none; padding: 8px 14px; border: 2px solid var(--navy); border-radius: 3px; background: none; color: var(--navy); font: 800 18px var(--display); cursor: pointer; }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.wp-block-button .wp-block-button__link { display: inline-block; padding: 15px 22px; border: 2px solid var(--webbing); border-radius: 3px; background: var(--webbing); color: var(--navy); font: 800 21px/1.1 var(--display); text-decoration: none; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid var(--navy); background: transparent; color: var(--navy); padding: 15px 22px; }

/* Hero: strands of webbing of equal standing. No discipline, height or body is pictured. */
.hero { background: var(--sky); overflow: hidden; }
.hero-copy { padding: 52px 20px 12px; text-align: center; }
.hero-copy h1 { max-width: 15ch; margin: 0 auto .3em; }
.hero-copy p { max-width: 40ch; margin: 0 auto; font-size: 21px; line-height: 1.5; }
.hero-copy .wp-block-buttons { justify-content: center; }
.weave svg { display: block; width: 100%; height: clamp(210px, 22vw, 340px); }

/* Sections */
.band { padding: 80px var(--gutter); }
.split, .two { display: grid; gap: 24px 72px; }
.split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead { color: var(--navy); font-size: 23px; line-height: 1.5; }
.dark { background: var(--navy); color: #fff; }
.dark :is(h2, h3, .lead) { color: #fff; }
.dark :focus-visible { outline-color: var(--webbing); }
.pine { background: var(--pine); }
.pale { background: var(--sky); }
ul.duties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 0; list-style: none; }
.duties li { padding: 17px 0; border-bottom: 1px solid var(--far); color: var(--navy); font: 500 23px/1.25 var(--display); }

/* Values hang from a line. The line is a background so the list stays a plain, editable list. */
ul.values {
	display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 215px; margin: 44px 0 0; padding: 0; list-style: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 120' preserveAspectRatio='none'%3E%3Cpath d='M0 8L350 92L700 8' fill='none' stroke='%23ffd02e' stroke-width='6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") top / 100% 120px no-repeat;
}
.values li { margin-top: 20px; padding: 0 3px; text-align: center; font: 800 clamp(15px, 1.6vw, 20px)/1.1 var(--display); }
.values li:is(:nth-child(2), :nth-child(6)) { margin-top: 44px; }
.values li:is(:nth-child(3), :nth-child(5)) { margin-top: 68px; }
.values li:nth-child(4) { margin-top: 92px; }
.values li::before { content: ""; display: block; width: 3px; height: 54px; margin: 0 auto 12px; background: var(--far); }

/* Inner pages: the hero's five strands, laid side by side. */
.page-head { position: relative; padding: 60px var(--gutter) 100px; background: var(--sky); }
.page-head h1 { max-width: 20ch; margin-bottom: .35em; }
.page-head p { max-width: 44ch; margin: 0; font-size: 21px; }
.page-head::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
	background: linear-gradient(var(--webbing) 0 6px, transparent 0 7px, var(--coral) 0 13px, transparent 0 14px, var(--navy) 0 20px, transparent 0 21px, var(--pine) 0 27px, transparent 0 28px, #6f98a6 0);
}
ul.contents { position: sticky; top: 24px; align-self: start; padding: 0; list-style: none; }
.contents a { display: block; padding: 6px 16px; border-left: 3px solid var(--far); color: var(--navy); font: 500 22px/1.3 var(--display); text-decoration: none; }
.contents a:hover { border-color: var(--webbing); }
.chapter { padding-bottom: 56px; scroll-margin-top: 24px; }
.chapter:last-child { padding-bottom: 0; }
.statement { padding-bottom: 18px; border-bottom: 6px solid var(--webbing); color: var(--navy); font: 800 30px/1.25 var(--display); }
.note { margin-top: 28px; padding: 20px 22px; background: var(--sky); }
.urgent { border-top: 6px solid var(--webbing); }
.route { max-width: 820px; counter-reset: step; }
.step { position: relative; padding: 0 0 42px 88px; counter-increment: step; }
.step::after { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 6px; background: var(--webbing); }
.step:last-child::after { bottom: auto; height: 28px; }
.step::before { content: counter(step); position: absolute; z-index: 1; left: 0; top: 0; display: grid; place-items: center; width: 54px; height: 54px; border: 5px solid var(--navy); border-radius: 50%; background: #fff; color: var(--navy); font: 800 24px var(--display); }
.step h2 { padding-top: 9px; font-size: 34px; }
.email { max-width: none; font: 800 clamp(20px, 3.4vw, 44px)/1.3 var(--display); }
.email a { text-decoration-color: var(--webbing); text-decoration-thickness: 5px; }

/* Pages an editor adds without any layout classes still read well. */
.page-content > :not(.band, .hero) { width: min(760px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.page-content > :not(.band, .hero):first-child { margin-top: 56px; }
.page-content > :not(.band, .hero):last-child { margin-bottom: 64px; }

.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 56px; padding: 44px var(--gutter); background: #042842; color: #fff; font-size: 15px; }
.site-footer img { width: 118px; height: auto; filter: brightness(0) invert(1); }
.site-footer p { margin: 0; }
.site-footer .footer-line { max-width: 42ch; }
.site-footer :focus-visible { outline-color: var(--webbing); }

/* Wide enough for the longest menu of the seven languages. */
@media (max-width: 1279px) {
	.has-js .menu { display: block; }
	.site-nav { width: 100%; }
	.has-js .site-nav { display: none; }
	.has-js .site-nav.open { display: block; }
	.site-nav ul { display: block; }
	.site-nav a { white-space: normal; }
	.site-nav a.report-link { margin-top: 10px; text-align: center; }
}
@media (max-width: 820px) {
	.band { padding-top: 56px; padding-bottom: 56px; }
	.split, .two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	ul.duties { grid-template-columns: minmax(0, 1fr); }
	ul.contents { position: static; margin-bottom: 24px; }
	ul.values { display: block; height: auto; margin-top: 24px; border-left: 6px solid var(--webbing); background: none; }
	.values li, .values li:nth-child(n) { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 0; text-align: left; font-size: 21px; }
	.values li::before { flex: none; width: 24px; height: 3px; margin: 0; }
	.masthead { gap: 12px; }
	.brand { font-size: 17px; }
	.brand img { width: 52px; }
	.hero-copy { padding-top: 32px; }
	.hero-copy p { font-size: 19px; }
}
@media (max-width: 360px) {
	.brand { font-size: 15px; gap: 8px; }
	.brand img { width: 42px; }
	.menu { padding: 6px 8px; font-size: 16px; }
	.step { padding-left: 70px; }
	.step h2 { font-size: 28px; }
}
