/* Gray Security and Risk Management. One stylesheet, no build step, no scripts. */

@font-face { font-family: "GSRM Display"; src: url("../fonts/gsrm-display-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "GSRM Sans"; src: url("../fonts/gsrm-sans-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "GSRM Sans"; src: url("../fonts/gsrm-sans-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "GSRM Text"; src: url("../fonts/gsrm-text-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "GSRM Text"; src: url("../fonts/gsrm-text-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "GSRM Text"; src: url("../fonts/gsrm-text-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --graphite: #262B2F;
  --field: #E4E6E7;
  --paper: #FFFFFF;
  --block: #C9CED1;
  --on-dark-muted: #B4BBC0;
  --oxblood: #7B1E2B;
  --oxblood-deep: #5C1420;

  --display: "GSRM Display", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  --sans: "GSRM Sans", Helvetica, Arial, sans-serif;
  --text: "GSRM Text", "Century Schoolbook", "New Century Schoolbook", Georgia, serif;

  --gap: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--field);
  color: var(--graphite);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.62;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
p, li { text-wrap: pretty; }
/* A sentence that stays in one piece: lines break between sentences before they break inside one. */
.sentence { display: inline-block; text-wrap: balance; }
ul { padding: 0; list-style: none; }

a { color: var(--oxblood); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--oxblood-deep); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; }

.wrap { max-width: 74rem; margin-inline: auto; padding-inline: var(--gap); }

.skip { position: absolute; left: -100rem; top: 0; background: #fff; color: var(--graphite); padding: 0.75rem 1rem; font-family: var(--sans); z-index: 10; }
.skip:focus { left: 0; }

/* ---------- Header: a dark bar with the logo; navigation is always visible ---------- */

.site-header { background: var(--graphite); color: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1rem; }
.brand { display: block; }
.brand img { height: 6.25rem; width: auto; }

.nav { font-family: var(--sans); font-size: 1rem; }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.nav a:not(.button) { display: block; color: #fff; text-decoration: none; padding-block: 0.5rem 0.3rem; border-bottom: 4px solid transparent; }
.nav a:not(.button):hover { border-bottom-color: var(--on-dark-muted); }
.nav a:not(.button)[aria-current="page"] { border-bottom-color: #fff; }
.site-header :focus-visible, .hero :focus-visible, .page-head :focus-visible { outline-color: #fff; }

@media (max-width: 46rem) {
  .brand img { height: 5rem; }
}
@media (max-width: 34rem) {
  .nav { width: 100%; }
  .nav ul { display: grid; grid-template-columns: max-content max-content; gap: 0.15rem 2rem; }
  .nav .button-small, .nav .button-small:hover, .nav .button-small[aria-current="page"] { display: block; background: none; color: #fff; font-weight: 400; padding: 0.5rem 0 0.3rem; border-bottom: 4px solid transparent; }
  .nav .button-small:hover { border-bottom-color: var(--on-dark-muted); }
  .nav .button-small[aria-current="page"] { border-bottom-color: #fff; }
}

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

.button { display: inline-block; background: var(--oxblood); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; padding: 0.95rem 1.5rem; }
.button:hover { background: var(--oxblood-deep); color: #fff; }
.button-small { background: #fff; color: var(--graphite); font-size: inherit; padding: 0.65rem 1.1rem; }
.button-small:hover { background: var(--block); color: var(--graphite); }
.button-small[aria-current="page"] { background: var(--oxblood); color: #fff; }

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

h1, .display, .block-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem); line-height: 1.05; }
.display { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); line-height: 1.06; }
.lead { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4375rem); line-height: 1.5; max-width: 40em; margin-top: 1rem; text-wrap: balance; }

/* ---------- Page title band: continues the dark header ---------- */

.hero, .page-head { background: var(--graphite); color: #fff; }
.hero a:not(.button), .page-head a { color: #fff; }
.hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.hero .button { background: #fff; color: var(--graphite); }
.hero .button:hover { background: var(--block); }
.hero + .section, .page-head + .page-body { padding-top: clamp(2.5rem, 5vw, 4rem); }
.header-inner { padding-bottom: 0.5rem; }
.actions { margin-top: 1.75rem; }

.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section .display { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

/* ---------- Blocks: title on the left, text on the right, stacked on the gray field ---------- */

.block { background: var(--paper); display: grid; grid-template-columns: 5fr 7fr; gap: 1rem var(--gap); padding: clamp(1.5rem, 3.5vw, 2.75rem); align-items: start; }
.block + .block { margin-top: 8px; }
.block-title { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.125rem); line-height: 1.08; }
.block p { max-width: 34em; }
.block p + p { margin-top: 1rem; }
.block .more { font-family: var(--sans); font-weight: 700; text-wrap: balance; }
.block-lead { background: var(--oxblood); color: #fff; }
.block-lead a, .block-lead a:hover { color: #fff; }
@media (max-width: 52rem) { .block { grid-template-columns: 1fr; } }

.list { display: grid; gap: 0.5rem; }
.list li { padding-left: 1.6rem; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 0.55rem; background: var(--oxblood); }

/* ---------- Inner pages ---------- */

.page-head { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.page-body { padding-bottom: clamp(3rem, 6vw, 5rem); }

.contact-main { margin-top: 1.5rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.15; }
.contact-main a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-main a:hover { text-decoration: underline; }

/* ---------- Closing contact block ---------- */

.closing { background: var(--paper); padding-block: clamp(3rem, 6vw, 5rem); }
.closing p { margin-top: 1rem; max-width: 40em; text-wrap: balance; }
.closing .big { display: inline-block; margin-top: 1.25rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.15; color: var(--oxblood); text-decoration: none; overflow-wrap: anywhere; }
.closing .big:hover { color: var(--oxblood-deep); text-decoration: underline; }

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

.site-footer { background: var(--graphite); color: #fff; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.55; padding-block: 3rem 2rem; }
.site-footer a { color: #fff; text-decoration-thickness: 1px; }
.site-footer a:hover { text-decoration-thickness: 2px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem var(--gap); align-items: baseline; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.footer-statements { grid-column: 1 / -1; color: var(--on-dark-muted); }
.footer-statements p { text-wrap: balance; }
.site-footer .footer-statements p + p { margin-top: 0.2rem; }
.footer-legal { grid-column: 1 / -1; color: var(--on-dark-muted); }
@media (max-width: 56rem) {
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .footer-inner ul { display: grid; grid-template-columns: max-content max-content; gap: 0.4rem 2rem; }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; border-top: 0; font-size: 11pt; }
  .nav, .skip, .actions { display: none; }
  .site-header, .hero, .page-head, .site-footer, .block-lead { background: #fff; color: #000; }
  .hero a, .page-head a, .contact-main a, .site-footer a, .block-lead a { color: #000; }
}
