/* ==========================================================================
   DMS resources

   The DMS webinar site's style: flat ink on paper. No gradients, rounded
   corners, drop shadows or translucent panels. Structure comes from a grid,
   full-width rules and large, tight display type. The palette is the DMS navy
   from the logo, a mid navy for labels, and paper.

   Type: Archivo (display, run slightly expanded) / Public Sans (body) /
   IBM Plex Mono (figures and labels). All self-hosted.

   Most visitors arrive from a QR code, so every layout starts as one column
   for a phone and gains columns at wider sizes.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --ink:   #0E2135;   /* 16.3:1 on paper */
  --ink-2: #55637A;   /*  6.1:1 on paper */
  --blue:  #2C4C70;   /*  8.9:1 on paper */
  --rule:  #0E2135;
  --hair:  #DBE1E8;
  --wash:  #F4F6F8;
  --warn:  #853322;

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body:    "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 78rem;
  --gutter:  clamp(1.25rem, 0.7rem + 2.6vw, 3.25rem);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

*, *::before, *::after { box-sizing: border-box; }

/* Page state is toggled with the hidden attribute, which any display rule
   would otherwise override. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); }
p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, textarea { border-radius: 0; }
button:disabled { opacity: .55; cursor: wait; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--ink); color: #fff;
  padding: .7rem 1.1rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { transform: translateY(0); color: #fff; }

.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Buttons and links that act like buttons: square and flat
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 50px;
  padding: .85rem 1.5rem;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: .9375rem;
  font-weight: 700;
  font-variation-settings: "wdth" 105;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--blue); color: #fff; }
.btn--block { display: flex; width: 100%; justify-content: space-between; }
.btn--outline { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
.btn--outline:hover { background: var(--wash); color: var(--ink); }
.btn--invert { background: #fff; color: var(--ink); }
.btn--invert:hover { background: var(--hair); color: var(--ink); }

.text-button {
  border: 0; background: transparent; padding: .2rem 0;
  color: var(--blue); cursor: pointer;
  font: inherit; font-size: .82rem;
  text-decoration: underline; text-underline-offset: 4px;
}
.text-button:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Form fields and messages
   -------------------------------------------------------------------------- */

label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
input:not([type="radio"]), textarea {
  font: 1rem var(--body);
  width: 100%; min-height: 50px;
  color: var(--ink); background: #fff;
  border: 1px solid #8B99AA;
  padding: .85rem;
}
textarea { resize: vertical; line-height: 1.6; }
input::placeholder { color: #69758A; }

.message {
  padding: .9rem 1rem; margin-top: 1rem;
  font-size: .86rem;
  background: var(--wash);
  border-left: 3px solid var(--blue);
}
.message--error { color: var(--warn); border-color: var(--warn); background: #FCF4F0; }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead { background: var(--paper); border-bottom: 1px solid var(--hair); }
.masthead__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem;
  min-height: 64px; padding-block: .6rem;
}
.masthead__logo { display: inline-flex; }
.masthead__logo img { width: 98px; }
.masthead__nav { display: flex; align-items: center; gap: 1.25rem; font-size: .85rem; }
.masthead__nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.masthead__nav a:hover { text-decoration: underline; }
/* --------------------------------------------------------------------------
   Email form page
   -------------------------------------------------------------------------- */

.entry {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2rem, 1rem + 5vw, 5.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.entry h1 { font-size: clamp(2.9rem, 1.2rem + 5.6vw, 5rem); }
.page-head h1 { font-size: clamp(2.9rem, 1.2rem + 7.4vw, 6.25rem); }
.entry h1, .page-head h1 {
  font-weight: 650;
  font-variation-settings: "wdth" 108;
  letter-spacing: -.045em;
  line-height: .95;
  text-wrap: balance;
}
.deck {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.panel { border-top: 5px solid var(--ink); background: var(--wash); padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); scroll-margin-top: 1rem; }
.panel label { font-size: .95rem; }
.panel .btn { margin-top: .75rem; }
.panel .panel__help { margin-top: 1.1rem; font-size: .86rem; color: var(--ink-2); }
.panel .panel__help + .panel__help { margin-top: .45rem; }

/* A field no person sees or reaches. A program that fills every field gives itself away. */
.hp { display: none; }

/* Shown once when an address looks mistyped. */
.typo { margin-top: .9rem; padding: 1rem; background: var(--paper); border-left: 3px solid var(--ink); }
.typo p { font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.typo .btn { margin-top: .75rem; overflow-wrap: anywhere; text-align: left; }
.typo .text-button { margin-top: .7rem; font-size: .88rem; text-align: left; overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .entry { grid-template-columns: 1.35fr 1fr; gap: 5rem; align-items: start; }
}

/* --------------------------------------------------------------------------
   Resource rows: the samples on the email form page and the list behind it
   -------------------------------------------------------------------------- */

.page-head { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1.75rem, 1rem + 2vw, 3rem); }
.page-head .message { max-width: 44rem; margin-top: 1.5rem; }

.included { padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.included > h2 {
  padding-bottom: 1.1rem;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 650;
  font-variation-settings: "wdth" 106;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.included__back { padding-top: 2rem; }

.resources { border-top: 2px solid var(--ink); }
.resource {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-bottom: 1px solid var(--hair);
}
.resource h2, .resource h3 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.resource__text > p { margin-top: .8rem; max-width: 40rem; color: var(--ink-2); font-size: .98rem; }
.resource__text > .resource__status { color: var(--ink); font-size: .9rem; font-weight: 600; }
.resource__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }
.resource__actions a:not(.btn) { font-size: .9rem; font-weight: 600; }

/* A piece of the real content, shown before the visitor gives an address. */
.sample { margin: 0; padding: .2rem 0 .2rem 1.25rem; border-left: 3px solid var(--ink); }
.sample figcaption { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sample blockquote { margin: .8rem 0 0; font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.sample h4 { margin: 1.1rem 0 .35rem; font-family: var(--display); font-size: 1.08rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.sample figcaption + h4 { margin-top: .8rem; }
.sample p { font-size: .95rem; line-height: 1.6; }
.sample ul { margin-top: .8rem; }
.sample li { font-family: var(--display); font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.sample li + li { margin-top: .75rem; }
.sample .sample__note { margin-top: .8rem; font-size: .88rem; color: var(--ink-2); }

@media (min-width: 900px) {
  .resource { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: start; }
  .resource--sample { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; }
  .resource__actions { flex-direction: column; align-items: stretch; min-width: 13.5rem; }
  .resource__actions a:not(.btn) { text-align: center; }
}

.contact-line { padding-block: 2rem clamp(2.5rem, 1.5rem + 3vw, 4.5rem); font-size: .95rem; color: var(--ink-2); }

/* The DMS tool or resource that follows from the page above it. Uses the
   resource rows, under a smaller heading. */
.more { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.more > h2 { padding-bottom: 1rem; font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.more .resource h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   Staff link page
   -------------------------------------------------------------------------- */

.staff-link { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.staff-link > * { max-width: 44rem; }
.staff-link h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; }
.staff-link > p { margin-top: 1rem; overflow-wrap: anywhere; }
.staff-link .btn { margin-top: 1.5rem; }
.staff-link__other { font-size: .9rem; }

/* --------------------------------------------------------------------------
   Not found
   -------------------------------------------------------------------------- */

.not-found { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.not-found h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; }
.not-found p { margin-top: 1rem; color: var(--ink-2); }
.not-found .btn { margin-top: 1.75rem; }

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

.site-foot { border-top: 1px solid var(--rule); padding-block: 1.75rem; font-size: .8125rem; color: var(--ink-2); }
.foot__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }
.foot__logo { width: 88px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.foot__visit { overflow-wrap: anywhere; }
.foot__visit span { color: var(--ink); }
.site-foot a { color: var(--ink); }

/* --------------------------------------------------------------------------
   Pieces carried over from the DMS webinar site: the label with a square
   mark, the ruled bar of facts, and the navy band that holds white cards.
   The page for one resource opens on navy, like the cover of the guide PDF.
   -------------------------------------------------------------------------- */

.eyebrow { display: flex; align-items: center; gap: .65rem; }
.eyebrow__mark { flex: none; width: 10px; height: 10px; background: var(--ink); }
.entry .eyebrow + h1 { margin-top: 1.4rem; }

/* The bar of facts: a small label over each value, with a rule between cells. */
.specs { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  column-gap: 2.5rem;
  /* Cuts off the rule that would stand to the left of the first cell in a row. */
  clip-path: inset(0);
}
.specs__cell { position: relative; padding-block: 1.1rem 1.15rem; }
.specs__cell::before { content: ""; position: absolute; left: -1.25rem; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.specs dt { margin-bottom: .4rem; font: .6875rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.specs dd { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.specs a { color: inherit; text-decoration: none; }
.specs a:hover { text-decoration: underline; }

/* The navy band. */
.band { padding-block: clamp(2.75rem, 1.5rem + 4vw, 4.5rem); background: var(--ink); color: #fff; }
.band .wrap > h2 { color: #fff; }
.band :focus-visible { outline-color: #fff; }
.band .resources { display: grid; gap: 1rem; border-top: 0; }
.band .resource, .more .resource {
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  border-bottom: 0;
  background: var(--paper); color: var(--ink);
}
.band .resource :focus-visible, .more .resource :focus-visible { outline-color: var(--blue); }
/* The small label at the top of a card. */
.resource__text > .resource__type { margin: 0 0 .9rem; font: 500 .6875rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

.included.band { padding-bottom: clamp(2.75rem, 1.5rem + 4vw, 4.5rem); }
.included.band h2 { padding-bottom: 2rem; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 650; font-variation-settings: "wdth" 106; letter-spacing: -.04em; line-height: 1.05; }
.included.band .included__back { padding-top: 2rem; }

/* The list behind the email form: one card for each resource. */
.library .resource { display: flex; flex-direction: column; gap: 0; }
.library .resource__actions { margin-top: auto; padding-top: 1.5rem; }
@media (min-width: 700px) {
  .library .resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .band .resource--sample { gap: 3rem; }
  .library .resource__actions { flex-direction: row; align-items: center; min-width: 0; }
}
@media (min-width: 1100px) {
  .library .resources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* "More from DMS": the same band and cards at the end of a resource. The
   section sits in the page column, so its navy is carried to the window's
   edges by a shadow and cut off above and below. */
.more {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  padding-block: clamp(2.75rem, 1.5rem + 4vw, 4.5rem);
  background: var(--ink); color: #fff;
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}
.more > h2 { padding-bottom: 2rem; color: #fff; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); letter-spacing: -.035em; line-height: 1.1; }
.more .resources { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); border-top: 0; }
.more .resource { display: flex; flex-direction: column; gap: 0; }
/* Four cards sit two by two; three would leave one alone on a row. */
@media (min-width: 700px) {
  .more .resources:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.more .resource h3 { font-size: 1.5rem; letter-spacing: -.025em; }
.more .resource__actions { flex-direction: row; align-items: center; min-width: 0; margin-top: auto; padding-top: 1.5rem; }
.more .contact-line { padding-block: 2rem 0; color: #CCD3DC; }
.more .contact-line a { color: #fff; }
.more :focus-visible { outline-color: #fff; }

/* The cover. */
.sheet-head, .guide-head, .assessment-heading {
  background: var(--ink); color: #fff;
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}
.sheet-head .eyebrow, .guide-head .eyebrow, .assessment-heading .eyebrow { color: #CCD3DC; }
.sheet-head .eyebrow__mark, .guide-head .eyebrow__mark, .assessment-heading .eyebrow__mark { background: #fff; }
.sheet-head .eyebrow + h1, .guide-head .eyebrow + h1, .assessment-heading .eyebrow + h1 { margin-top: 1.4rem; }
.sheet-head .deck, .guide-head .deck { color: #CCD3DC; }
.sheet-head :focus-visible, .guide-head :focus-visible, .assessment-heading :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
