/* The Household Covenant: site styles.
   Built from the approved designs in 02-website/design-source.
   Values are carried over from the design as they are. */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */

@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/young-serif-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
  /* Brand colours */
  --pine: #17352A;
  --deep-pine: #102A20;
  --muted-pine: #3D5A4E;
  --mid-sage: #9DB5A2;
  --sage: #CFDCCB;
  --mist: #E6EDE3;
  --ground: #F3F6F1;
  --berry: #A8325A;
  --blush: #F0C9D5;
  --white: #FFFFFF;

  /* Supporting tints used in the design */
  --on-pine: #D7E3D3;
  --on-pine-quiet: #A9C2B0;
  --on-pine-line: #4F7363;
  --on-berry: #FBE7EE;
  --on-deep-pine: #B9CCB8;
  --hairline: #A9BBA6;
  --field-line: #8FA697;
  --row-highlight: #FBEFF3;

  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(80px, 10vw, 136px);
  --h1-size: clamp(44px, 6.2vw, 88px);
  --h2-size: clamp(38px, 4.8vw, 68px);
}

.page-at-work {
  --section-pad: clamp(80px, 10vw, 128px);
  --h1-size: clamp(44px, 6vw, 84px);
  --h2-size: clamp(36px, 4.6vw, 64px);
}

/* ---------- Base ---------- */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--pine);
  font-family: var(--sans);
}

h1, h2, h3, p, ol, ul, dl, dd, blockquote, figure { margin: 0; }
blockquote { font-style: normal; }

a { color: var(--pine); }
/* An email address in a sentence is one long word: let it break so it cannot widen a narrow screen. */
p a[href^="mailto:"] { overflow-wrap: anywhere; }

/* The hidden attribute must win over component display rules. */
[hidden] { display: none !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

/* The berry outline disappears on berry and is weak on pine, so dark bands use white. */
.on-dark a:focus-visible,
.on-dark button:focus-visible,
.on-dark [tabindex]:focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10;
  padding: 14px 20px;
  background: var(--pine);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
  box-sizing: border-box;
}

.band--white { background: var(--white); }
.band--ground { background: var(--ground); }
.band--mist { background: var(--mist); }
.band--pine { background: var(--pine); color: var(--on-pine); }
.band--berry { background: var(--berry); color: var(--white); }

.split { display: flex; flex-wrap: wrap; align-items: center; }
.split > * { min-width: 0; }

/* ---------- Type ---------- */

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--h1-size);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--h2-size);
  line-height: 1.06;
}
.section-title--conviction { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.08; }
.section-title--work { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; }
.band--pine .section-title { color: var(--white); }

.intro {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.65;
  max-width: 32em;
  color: var(--muted-pine);
}

.lead { font-size: 20px; line-height: 1.65; }
.muted { color: var(--muted-pine); }
.on-berry-soft { color: var(--on-berry); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.measure-30 { max-width: 30em; }
.measure-32 { max-width: 32em; }
.measure-34 { max-width: 34em; }

.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-36 { margin-top: 36px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mt-72 { margin-top: 72px; }

.illus { display: block; width: 100%; height: auto; }

/* ---------- Header and navigation ---------- */

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--gutter);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pine);
  font-family: var(--serif);
  font-size: 23px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 16px;
  font-weight: 500;
}
.nav-links a { text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: var(--berry); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 30px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border-radius: 999px;
}
.btn--berry { background: var(--berry); color: var(--white); }
.btn--outline { border: 2px solid var(--pine); color: var(--pine); box-sizing: border-box; }
.btn--outline-light { border: 2px solid var(--on-pine-quiet); color: var(--white); box-sizing: border-box; }
.btn--white { background: var(--white); color: var(--pine); font-weight: 700; }

.btn-row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Home: hero ---------- */

.hero {
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(80px, 9vw, 128px);
  display: flex;
  justify-content: center;
}

.arch-card {
  width: 100%;
  max-width: 860px;
  border: 3px solid var(--pine);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  padding: clamp(104px, 13vw, 176px) clamp(24px, 6vw, 88px) clamp(56px, 6vw, 80px);
  box-sizing: border-box;
  text-align: center;
  background: var(--mist);
  overflow: hidden;
}
.arch-card .symbol { display: block; margin: 0 auto 36px; }
.arch-card .intro { margin: 32px auto 0; }

/* ---------- Home: the day on the horizon ----------
   The top of the home page. A sun crosses a dotted arc, becomes the moon in the evening, and each
   hour of the Rule has a small drawing above its label. assets/js/day.js moves the sun and sets
   the opacities; everything here is the still picture it starts from (dawn). The arch card above
   is still used by the page-not-found page. */

.page-home > header,
.day {
  --ink: var(--pine);
  --ink-soft: var(--muted-pine);
  --line: var(--pine);
  --arc: var(--field-line);
  background-color: var(--ground);
}
/* Only used when the night sky is switched on in day.js */
.page-home > header.is-night,
.day.is-night {
  --ink: var(--white);
  --ink-soft: var(--on-pine);
  --line: var(--sage);
  --arc: var(--on-pine-line);
}
.page-home .brand,
.page-home .nav-links a { color: var(--ink); transition: color .5s ease; }
.page-home .nav-links a:hover { color: var(--berry); }
.page-home .is-night .nav-links a:hover { color: var(--blush); }
.page-home .logo-frame { stroke: var(--line); transition: stroke .5s ease; }
.page-home > header.is-night a:focus-visible,
.day.is-night a:focus-visible,
.day.is-night button:focus-visible { outline-color: var(--white); }

.day { position: relative; overflow: hidden; }

.day-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: var(--sage); opacity: 0; }

.day-top {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 24px) var(--gutter) 0;
  box-sizing: border-box;
}
.day .page-title { font-size: clamp(44px, 4.6vw, 64px); color: var(--ink); transition: color .5s ease; }
/* Wider than a phone, the headline breaks between its two sentences, so it sits on two lines. */
@media (min-width: 761px) {
  .day .page-title span { display: block; }
}
.day .intro { margin-top: 28px; font-size: 18px; max-width: 40em; color: var(--ink-soft); transition: color .5s ease; }
.day .btn-row { margin-top: 32px; justify-content: flex-start; }
.day .btn--outline { border-color: var(--ink); color: var(--ink); transition: color .5s ease, border-color .5s ease; }

/* The sky strip: a ground line, the dotted arc, and the sun. */
.day-scene {
  --body-size: 1;      /* size of the sun and moon */
  --rest-inset: 42px;  /* how far in from the edge of the text the sun rests at morning and evening */
  --edge-room: 32px;   /* keeps the rising sun and the feet of the arc on the screen at in-between widths */
  position: relative;
  margin-top: clamp(12px, 1.6vw, 20px);
  height: clamp(180px, 17vw, 240px);
}
.day-scene::after {
  content: "";
  position: absolute;
  left: max(40px, calc(50% - 680px));
  right: max(40px, calc(50% - 680px));
  bottom: 0;
  height: 4px;
  background-color: var(--line);
  transition: background-color .5s ease;
}
/* The box the sun's path is measured in. Its left and right edges are where the sun rests in the
   morning and the moon rests in the evening, close to the edges of the text below. Its bottom is
   the middle of the ground line. */
.day-sky {
  --text-edge: max(var(--gutter), calc(50% - 600px + var(--gutter)));
  position: absolute;
  top: 0;
  bottom: 2px;
  left: max(calc(var(--text-edge) + var(--rest-inset)), calc(9.55% + var(--edge-room)));
  right: max(calc(var(--text-edge) + var(--rest-inset)), calc(9.55% + var(--edge-room)));
}
/* The arc is the top half of an ellipse 123.6% as wide as the box and 80% as tall. */
.day-arc {
  position: absolute;
  left: calc(-11.8% - 4px);
  width: calc(123.6% + 8px);
  top: calc(20% - 4px);
  bottom: 0;
  overflow: hidden;
}
.day-arc svg { position: absolute; left: 4px; top: 4px; width: calc(100% - 8px); height: calc(200% - 8px); overflow: visible; }
.day-arc ellipse { stroke: var(--arc); transition: stroke .5s ease; }
/* The sun rides the corner of a layer the same size as the box, so moving the layer by a
   percentage of itself places the sun at that percentage of the box. */
.day-body { position: absolute; inset: 0; pointer-events: none; transform: translate(-10.14%, 81.57%); }
.day-body svg {
  position: absolute;
  left: calc(-50px * var(--body-size));
  top: calc(-50px * var(--body-size));
  width: calc(130px * var(--body-size));
  height: calc(100px * var(--body-size));
  overflow: visible;
}
.day-rays,
.day-disc { stroke: var(--line); }
.day-moon-stars { fill: var(--pine); }
.day.is-night .day-moon-stars { fill: var(--mist); }

/* The three hours under the ground line, each with its drawing standing on the line above it. */
.day-foot {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(32px, 4vw, 52px);
  box-sizing: border-box;
}
.day-hours {
  --motif-size: 0.85;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;   /* names in one row, descriptions in the next, so the descriptions line up */
  gap: 0 12px;
}
.day-hour {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: subgrid;
  grid-row: span 2;
}
.day-hour:nth-child(2) { text-align: center; }
.day-hour:nth-child(3) { text-align: right; }
.day-label {
  display: block;
  align-self: start;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 14px 4px 6px;
  background: none;
  border: 0;
  border-top: 3px solid transparent;
  border-radius: 0;
  color: var(--ink-soft);
  font: inherit;
  text-align: inherit;
  transition: color .5s ease, border-color .3s ease;
}
button.day-label { cursor: pointer; }
.day-label .when { display: block; font-size: 16px; font-weight: 600; line-height: 1.45; }
.day-label .name { display: block; margin-top: 4px; font-family: var(--serif); font-size: clamp(16px, 1.7vw, 22px); line-height: 1.15; }
.day-label[aria-pressed="true"] { color: var(--ink); border-top-color: var(--berry); }
/* Each hour's description sits under its name and shows while the sun is over that hour (day.js
   sets the opacity). All three keep their place in the page, so nothing moves when one fades, and
   screen readers can read all three at any time. The page starts at dawn with the morning one. */
.day-what {
  box-sizing: border-box;
  max-width: 19em;
  padding: 0 4px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  opacity: 0;
  transition: color .5s ease;
}
.day-hour:first-child .day-what { opacity: .96; }
.day-hour:nth-child(2) .day-what { margin-left: auto; margin-right: auto; }
.day-hour:nth-child(3) .day-what { margin-left: auto; }

.day-motif { position: absolute; bottom: calc(100% + 2px); height: auto; overflow: visible; color: var(--line); opacity: 0; transition: color .5s ease; }
.day-motif--fire { left: 4px; width: calc(63px * var(--motif-size)); opacity: .68; }
.day-motif--table { left: 50%; width: calc(123px * var(--motif-size)); margin-left: calc(-61.5px * var(--motif-size)); }
.day-motif--hearth { right: 4px; width: calc(115px * var(--motif-size)); }

/* Shown once the script is running; its space is kept so nothing moves when it appears. */
.day-toggle {
  visibility: hidden;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--ink-soft);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color .5s ease;
}
.day.is-live .day-toggle { visibility: visible; }

@media (max-width: 760px) {
  .day-scene { --body-size: 0.6; --rest-inset: 31px; --edge-room: 23px; }
  .day-scene::after { left: 10px; right: 10px; height: 3px; }
  .day-arc ellipse { stroke-width: 2; stroke-dasharray: 2 9; }
  .day-hours { --motif-size: 0.6; gap: 0 6px; }
  .day-label .when { font-size: 14px; }
  /* A third of a phone screen is too narrow for a sentence, so the three descriptions share one
     row the full width of the list. Only one shows at a time. */
  .day-what { width: calc(300% + 12px); max-width: none; font-size: 16px; }
  .day-hour:nth-child(2) .day-what { margin-left: calc(-100% - 6px); }
  .day-hour:nth-child(3) .day-what { margin-left: calc(-200% - 12px); }
}

/* Nothing moves on its own for visitors who have asked for less motion, so there is nothing to pause. */
@media (prefers-reduced-motion: reduce) {
  .day-toggle { display: none; }
}

/* ---------- Home: conviction ---------- */

.split--conviction { gap: 56px 80px; }
.split--conviction > * { flex: 1 1 440px; }

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.points--conviction { margin-top: 80px; gap: 32px 48px; }
.points--work { margin-top: 72px; gap: 40px 48px; }
.points--help { margin-top: 48px; gap: 32px 48px; }

.point { border-top: 2px solid var(--pine); padding-top: 18px; }
.point h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.point p { margin-top: 8px; font-size: 18px; line-height: 1.6; color: var(--muted-pine); }

.points--work .point { border-top-color: var(--white); }
.points--work h3 { font-size: 23px; line-height: 1.25; }
.points--work p { margin-top: 10px; color: var(--on-berry); }

.points--help .point { border-top-color: var(--on-pine-line); padding-top: 16px; }
.points--help h3 { font-size: 20px; line-height: normal; color: var(--white); }
.points--help p { font-size: 16px; color: inherit; }
.points--help a { color: var(--white); }

/* ---------- Home: scripture ---------- */

.pull { margin-top: 44px; max-width: 26em; }
.pull p { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; color: var(--white); }
.pull footer { margin-top: 14px; font-size: 17px; color: var(--on-pine-quiet); }

.doors {
  list-style: none;
  padding: 0;
  margin: 72px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 48px 28px;
}
.doors li { border-top: 2px dashed var(--on-pine-line); padding-top: 28px; }
.doors h3 { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--white); }
.doors p { margin-top: 10px; font-size: 17px; line-height: 1.55; }
.doors .verse { font-size: 16px; line-height: 1.5; color: var(--on-pine-quiet); }

/* ---------- Home: the Rule ---------- */

.rhythm {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
  text-align: center;
}
.rhythm .when { font-size: 16px; font-weight: 600; color: var(--muted-pine); }
.rhythm h3 { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.rhythm .what { margin: 10px auto 0; font-size: 18px; line-height: 1.55; max-width: 18em; color: var(--muted-pine); }

.arches {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}
.arches > div { background: var(--white); border-radius: 120px 120px 12px 12px; padding: 56px 32px 32px; text-align: center; }
.arches dt { font-size: 16px; font-weight: 600; color: var(--muted-pine); }
.arches dd { margin: 8px 0 0; }
.arches .name { display: block; font-family: var(--serif); font-size: 26px; }
.arches .desc { display: block; margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--muted-pine); }

/* ---------- Home: work ---------- */

.split--work { gap: 48px 80px; }
.split--work > div { flex: 1 1 460px; }
.split--work > figure { flex: 1 1 400px; }

.employers {
  margin-top: 72px;
  background: var(--pine);
  color: var(--on-pine);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  align-items: baseline;
}
.employers h3 { flex: 1 1 260px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: var(--white); }
.employers p { flex: 2 1 420px; min-width: 0; font-size: 20px; line-height: 1.65; }

.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.cta-row p { font-size: 17px; line-height: 1.55; color: var(--on-berry); }

/* ---------- Numbered lists (beliefs, request steps) ---------- */

.num {
  flex: 0 0 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px 24px 4px 4px;
  background: var(--pine);
  color: var(--white);
  font-family: var(--serif);
  font-size: 20px;
}
.num--berry { background: var(--berry); }

.articles {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 0 64px;
}
.articles li { display: flex; gap: 22px; padding: 24px 0; border-top: 1px solid var(--hairline); }
.articles p { font-size: 18px; line-height: 1.6; }

/* ---------- Home: how we gather ---------- */

.split--gather { margin-top: 64px; gap: 48px 72px; }
.split--gather > figure { flex: 1 1 460px; }

.levels { flex: 1 1 380px; display: grid; gap: 22px; }
.levels dt { font-family: var(--serif); font-size: 24px; }
.levels dd { margin: 4px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted-pine); }

/* ---------- Home: joining ---------- */

.join-steps {
  list-style: none;
  padding: 0;
  margin: 72px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 40px 32px;
}
.join-steps li { text-align: center; }
.join-steps .step { margin-top: 14px; font-family: var(--serif); font-size: 18px; color: var(--berry); }
.join-steps h3 { margin-top: 4px; font-size: 21px; font-weight: 700; }
.join-steps .what { margin-top: 8px; font-size: 17px; line-height: 1.55; color: var(--muted-pine); }

.split--join { margin-top: 96px; gap: 56px 72px; align-items: flex-start; }

.join-notes { flex: 1 1 380px; display: grid; gap: 40px; }
.join-notes h3,
.connect h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.join-notes p { margin-top: 12px; font-size: 18px; line-height: 1.65; max-width: 30em; color: var(--muted-pine); }

.connect {
  flex: 1 1 440px;
  background: var(--ground);
  border: 2px solid var(--sage);
  border-radius: 200px 200px 16px 16px;
  padding: clamp(88px, 9vw, 112px) clamp(28px, 4vw, 56px) clamp(32px, 4vw, 48px);
  box-sizing: border-box;
  display: grid;
  gap: 18px;
}
.connect h3 { text-align: center; }

.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input,
.field textarea {
  font: inherit;
  font-size: 17px;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  color: var(--pine);
  background: var(--white);
}
.field input { min-height: 50px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; }

.connect button {
  justify-self: center;
  min-height: 54px;
  padding: 0 30px;
  background: var(--pine);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.connect button[disabled] { cursor: progress; opacity: 0.75; }

.form-note { font-size: 15px; line-height: 1.55; color: var(--muted-pine); text-align: center; }

.form-status { font-size: 16px; line-height: 1.5; font-weight: 600; text-align: center; }
.form-status:not(:empty) { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: var(--white); border: 2px solid var(--pine); }
.form-status--error:not(:empty) { border-color: var(--berry); color: var(--berry); }

/* Spam trap: kept off screen, out of the tab order and hidden from assistive tech. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Home: covenant ---------- */

.covenant {
  padding-top: clamp(96px, 11vw, 152px);
  padding-bottom: clamp(80px, 9vw, 120px);
  display: flex;
  justify-content: center;
}

.arch-outline {
  width: 100%;
  max-width: 900px;
  border: 2px solid var(--on-pine-line);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  padding: clamp(96px, 12vw, 152px) clamp(24px, 6vw, 80px) 0;
  box-sizing: border-box;
  text-align: center;
}
.arch-outline .symbol { display: block; margin: 0 auto 40px; }
.arch-outline blockquote p { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 76px); line-height: 1.06; color: var(--white); }
.arch-outline blockquote footer { margin-top: 18px; font-size: 18px; color: var(--on-pine-quiet); }

/* ---------- Footer ---------- */

.site-footer { background: var(--deep-pine); color: var(--on-deep-pine); }
.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  font-size: 15px;
  line-height: 1.6;
}
.site-footer .symbol { display: block; margin-bottom: 16px; }
.site-footer .name { font-family: var(--serif); font-size: 20px; color: var(--white); }
.site-footer a { color: var(--white); }

/* ---------- At work: introduction ---------- */

.at-work-intro {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
.split--intro { align-items: flex-end; gap: 40px 72px; }
.split--intro > div:first-child { flex: 1 1 520px; }

.eyebrow { font-size: 17px; font-weight: 600; color: var(--berry); }
.at-work-intro .page-title { margin-top: 12px; }
.at-work-intro .intro { margin-top: 28px; }

.notice {
  flex: 1 1 340px;
  background: var(--white);
  border: 2px solid var(--pine);
  border-radius: 16px;
  padding: 28px;
  box-sizing: border-box;
}
.notice h2 { font-size: 19px; font-weight: 700; }
.notice p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted-pine); }

/* ---------- At work: three doors ---------- */

.routes {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.route { background: var(--ground); border-radius: 180px 180px 16px 16px; padding: 64px 32px 36px; box-sizing: border-box; }
.route svg { display: block; margin: 0 auto; }
.route h3 { margin-top: 24px; font-family: var(--serif); font-weight: 400; font-size: 28px; text-align: center; }
.route p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--muted-pine); }
.route .key { font-size: 16px; line-height: 1.55; font-weight: 600; color: inherit; }

/* ---------- At work: which law applies ---------- */

.flow { margin-top: 56px; }
.flow-question {
  margin: 0 auto;
  max-width: 420px;
  background: var(--white);
  color: var(--pine);
  border-radius: 999px;
  padding: 20px 32px;
  text-align: center;
  font-family: var(--serif);
  font-size: 24px;
}
.flow-lines { display: block; width: 100%; height: 80px; }
.flow-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.flow-card { border: 2px solid var(--on-pine-line); border-radius: 16px; padding: 28px; }
.flow-card h3 { font-size: 20px; font-weight: 700; color: var(--white); }
.flow-card p { margin-top: 8px; font-size: 16px; line-height: 1.55; }
.flow-card .law { margin-top: 14px; color: var(--white); }
.flow-note { margin-top: 40px; font-size: 17px; line-height: 1.6; }
.flow-note a { color: var(--white); }

@media (max-width: 760px) {
  .flow-lines { display: none; }
  /* With the connector lines hidden, give the question some air above the first card. */
  .flow-cards { margin-top: 20px; }
}

/* ---------- At work: laws by region ---------- */

.table-scroll {
  margin-top: 48px;
  overflow-x: auto;
  background: var(--white);
  border-radius: 16px;
  border: 2px solid var(--sage);
}
.jt { width: 100%; min-width: 760px; border-collapse: collapse; }
.jt th,
.jt td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--sage);
  font-size: 16px;
  line-height: 1.5;
}
.jt th { font-size: 15px; font-weight: 700; background: var(--mist); }
.jt tr.qc td { background: var(--row-highlight); }
.jt a:hover { color: var(--berry); }
.table-note { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--muted-pine); }

/* ---------- At work: request steps ---------- */

.request-steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 36px 40px;
}
.request-steps li { display: flex; gap: 18px; }
.request-steps h3 { font-size: 20px; font-weight: 700; }
.request-steps p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--muted-pine); }

/* ---------- At work: template picker ---------- */

.templates { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }

.tabs { flex: 1 1 260px; min-width: 0; display: grid; gap: 10px; }
.tab {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  text-align: left;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  box-sizing: border-box;
  background: var(--white);
  color: var(--pine);
  border: 2px solid var(--sage);
}
.tab[aria-selected="true"] { background: var(--pine); color: var(--white); border-color: var(--pine); font-weight: 700; }

.panels { flex: 3 1 520px; min-width: 0; display: grid; gap: 24px; }
.panel { min-width: 0; background: var(--white); border-radius: 16px; padding: clamp(24px, 3.5vw, 44px); box-sizing: border-box; }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.panel .who { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--berry); }
.panel .letter { margin-top: 20px; font-size: 16px; line-height: 1.7; white-space: pre-line; color: var(--pine); }

/* ---------- At work: sources ---------- */

.sources { margin-top: 72px; border-top: 1px solid var(--on-pine-line); padding-top: 28px; }
.sources h3 { font-size: 17px; font-weight: 700; color: var(--white); }
.sources ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; }
.sources a { color: var(--on-pine); }

/* ---------- Plain pages: privacy notice and page not found ---------- */

.plain { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(80px, 9vw, 128px); }
.plain .page-title { font-size: clamp(40px, 5vw, 64px); }

.prose { max-width: 42em; }
.prose h2 { margin-top: 48px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.prose p,
.prose ul { margin-top: 16px; font-size: 18px; line-height: 1.65; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a:hover { color: var(--berry); }

/* ---------- Footer links (all pages) ---------- */

.footer-links {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--on-pine-line);
}
.footer-links a { display: inline-block; padding: 8px 0; }

/* ---------- Sub pages: watch and share, brand and media ---------- */

.page-sub {
  --section-pad: clamp(72px, 9vw, 120px);
  --h1-size: clamp(44px, 6vw, 84px);
  --h2-size: clamp(36px, 4.6vw, 64px);
}

.sub-intro { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(64px, 8vw, 104px); }
.sub-intro .page-title { margin-top: 12px; max-width: 14em; }
.sub-intro .intro { margin-top: 28px; }

.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.eyebrow--light { color: var(--blush); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

button.btn { font-family: inherit; cursor: pointer; }
.btn--small { min-height: 46px; padding: 0 22px; font-size: 16px; box-sizing: border-box; }
.btn--pine { background: var(--pine); color: var(--white); border: 2px solid var(--pine); }
button.btn--outline { background: transparent; }

/* Weekly live broadcast */

.split--live { gap: 48px 80px; }
.split--live > div { flex: 1 1 460px; }
.split--live > figure { flex: 1 1 340px; max-width: 460px; }
.split--live .section-title { margin-top: 12px; }

.live-facts { margin-top: 36px; display: grid; gap: 14px; max-width: 34em; }
.live-facts > div { display: flex; flex-wrap: wrap; gap: 4px 20px; border-top: 1px solid var(--on-pine-line); padding-top: 14px; }
.live-facts dt { flex: 0 0 110px; font-weight: 700; color: var(--white); font-size: 17px; line-height: 1.55; }
.live-facts dd { flex: 1 1 220px; font-size: 17px; line-height: 1.55; }

/* Social posts */

.series-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.series-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  box-sizing: border-box;
  border: 2px solid var(--mid-sage);
  border-radius: 999px;
  background: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.series-links a:hover { border-color: var(--pine); }

.series { margin-top: 72px; scroll-margin-top: 24px; }
.series-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }

.posts {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 32px;
}
.post { background: var(--white); border: 2px solid var(--sage); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.post-img { display: block; width: 100%; height: auto; border-bottom: 2px solid var(--sage); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.post-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.post-note { margin-top: 10px; font-size: 15px; line-height: 1.5; font-weight: 600; }
.post-caption { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted-pine); }
.post-tags { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted-pine); overflow-wrap: anywhere; }
.post-actions { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.post-status { font-size: 15px; line-height: 1.5; font-weight: 600; }
.post-status:not(:empty) { margin-top: 12px; }

/* A post made of several slides: one wide card, with the slides in a row
   that scrolls sideways when they do not all fit. */
.post--set { grid-column: 1 / -1; min-width: 0; }
.post--set .post-caption { max-width: 40em; }
.slides {
  /* keeps the hidden link text inside the scrolling row, so it cannot widen the page */
  position: relative;
  list-style: none;
  margin: 0;
  padding: 24px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  background: var(--mist);
  border-bottom: 2px solid var(--sage);
}
.slides:focus-visible { outline-offset: -3px; }
.slide { flex: 0 0 min(62%, 220px); scroll-snap-align: start; }
.slide img { display: block; width: 100%; height: auto; border: 1px solid var(--mid-sage); border-radius: 8px; }
.slide-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }

@media (min-width: 900px) {
  .slide { flex: 1 1 0; min-width: 0; max-width: 220px; }
}

/* Brand and media */

.logo-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}
.logo-card { border: 2px solid var(--sage); border-radius: 16px; overflow: hidden; background: var(--white); }
.logo-tile { display: flex; align-items: center; justify-content: center; padding: 40px 24px; border-bottom: 2px solid var(--sage); }
.logo-tile img { display: block; width: 112px; height: auto; }
.logo-tile--ground { background: var(--ground); }
.logo-tile--pine { background: var(--pine); }
.logo-body { padding: 20px 24px 24px; }
.logo-body h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.logo-body p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--muted-pine); }
.file-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

.kit-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.kit-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 24px;
  background: var(--mist);
  border-bottom: 2px solid var(--sage);
}
.kit-tile img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border: 1px solid var(--mid-sage); }
.kit-tile--round img { width: 132px; border-radius: 50%; }

.swatches {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 20px;
}
.swatch { background: var(--white); border: 2px solid var(--sage); border-radius: 16px; overflow: hidden; }
.swatch-chip { height: 96px; border-bottom: 2px solid var(--sage); }
.swatch-body { padding: 14px 16px 16px; }
.swatch-body h3 { font-size: 17px; font-weight: 700; }
.swatch-body p { margin-top: 2px; font-size: 16px; line-height: 1.5; color: var(--muted-pine); }
.chip--pine { background: var(--pine); }
.chip--deep-pine { background: var(--deep-pine); }
.chip--muted-pine { background: var(--muted-pine); }
.chip--mid-sage { background: var(--mid-sage); }
.chip--sage { background: var(--sage); }
.chip--mist { background: var(--mist); }
.chip--ground { background: var(--ground); }
.chip--berry { background: var(--berry); }
.chip--blush { background: var(--blush); }
.chip--white { background: var(--white); }

.type-samples { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.type-card { background: var(--ground); border-radius: 16px; padding: clamp(24px, 3.5vw, 40px); }
.type-card .use { font-size: 16px; font-weight: 600; color: var(--muted-pine); }
.type-card .sample-serif { margin-top: 10px; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.type-card .sample-sans { margin-top: 10px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; line-height: 1.25; }
.type-card .note { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted-pine); }
.type-card a:hover,
.plain-links a:hover { color: var(--berry); }

.about-box { margin-top: 40px; background: var(--white); border-radius: 16px; padding: clamp(24px, 3.5vw, 44px); max-width: 46em; box-sizing: border-box; }
.about-box p { font-size: 18px; line-height: 1.65; }
.about-box p + p { margin-top: 16px; }

/* Long text in a button, such as an email address, may wrap on very narrow screens. */
.btn--long { max-width: 100%; box-sizing: border-box; padding-top: 12px; padding-bottom: 12px; overflow-wrap: anywhere; }
