@font-face {
  font-family: "Diatype";
  src: local("Diatype"), url("/fonts/diatype/Diatype-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Diatype";
  src: local("Diatype Bold"), url("/fonts/diatype/Diatype-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "Circular";
  src: local("Circular"), url("/fonts/circular/Circular-Book.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Circular";
  src: local("Circular Bold"), url("/fonts/circular/Circular-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #0039a6;
  --azure: #2475e6;
  --navy: #000a55;
  --red: #e00034;
  --sky: #c8e5fe;
  --coral: #ffbecd;
  --green: #006b4f;
  --black: #000000;
  --white: #ffffff;
  --light: #f7f7f7;
  --medium: #f1f1f1;
  --line: #d7d7d7;
  --display: "Diatype", Arial, Helvetica, sans-serif;
  --body: "Circular", "Diatype", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--body); letter-spacing: 0; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .wordmark { font-family: var(--display); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 14px; background: var(--white); border: 2px solid var(--blue); border-radius: 6px; }
.skip-link:focus { top: 16px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.nav-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 42px; width: min(1240px, calc(100% - 48px)); min-height: 82px; margin: 0 auto; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-size: 24px; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 10px); gap: 5px; width: 44px; height: 44px; padding: 7px; border-radius: 8px; background: var(--blue); border-bottom: 3px solid var(--red); }
.brand-mark span { border-radius: 3px; background: var(--white); }
.site-nav { display: flex; justify-content: flex-end; gap: 30px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .text-link:hover, .text-link:focus-visible { color: var(--red); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 2px solid var(--red); border-radius: 7px; background: var(--red); color: var(--white); font-weight: 800; text-decoration: none; }
.button:hover, .button:focus-visible { background: #bd002c; border-color: #bd002c; }
.button-outline { border-color: var(--blue); background: var(--white); color: var(--blue); }
.button-outline:hover, .button-outline:focus-visible { background: var(--sky); border-color: var(--blue); }
.text-link { color: var(--blue); font-weight: 800; text-underline-offset: 4px; }

.breadcrumbs { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 0; font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #777; }
.breadcrumbs a { color: var(--blue); }

.template-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr); gap: 72px; align-items: center; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 72px; }
.eyebrow { margin-bottom: 14px; color: var(--red); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.template-hero h1, .hub-hero h1 { max-width: 820px; margin-bottom: 20px; color: var(--navy); font-size: clamp(42px, 6vw, 76px); line-height: 0.96; }
.lede { max-width: 700px; margin-bottom: 26px; color: #30364d; font-size: 20px; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.compatibility { margin-top: 24px; padding-left: 16px; border-left: 4px solid var(--coral); color: #353b53; line-height: 1.55; }

.preview-panel { display: grid; place-items: center; min-height: 510px; padding: 36px; border-radius: 8px; background: var(--sky); }
.sheet-preview { position: relative; width: min(290px, 100%); aspect-ratio: 8.5 / 11; overflow: hidden; border: 1px solid #aeb9c8; background: var(--white); }
.sheet-preview span { position: absolute; border: 1px solid #aeb9c8; background: rgba(200, 229, 254, 0.2); }
.sheet-preview span.round { border-radius: 50%; }
.sheet-preview span.oval { border-radius: 50%; }
.sheet-preview span.square { border-radius: 2px; }

.spec-band { background: var(--navy); color: var(--white); }
.spec-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0; }
.spec-list div { padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.spec-list div:first-child { padding-left: 0; border-left: 0; }
.spec-list dt { margin-bottom: 6px; color: var(--sky); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.spec-list dd { margin: 0; font-size: 17px; font-weight: 800; }

.related-section, .hub-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; font-size: 36px; }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.template-card { display: flex; min-height: 180px; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.template-card:hover, .template-card:focus-visible { border-color: var(--blue); background: #f5f9ff; }
.template-card strong { display: block; margin-bottom: 8px; color: var(--navy); font-family: var(--display); font-size: 21px; }
.template-card span { color: #4d5264; line-height: 1.45; }
.template-card em { margin-top: 18px; color: var(--red); font-size: 13px; font-style: normal; font-weight: 800; text-transform: uppercase; }

.hub-hero { background: var(--sky); }
.hub-hero-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0; }
.hub-hero p:not(.eyebrow) { max-width: 720px; color: #26304c; font-size: 20px; line-height: 1.5; }
.hub-main .template-grid { margin-top: 30px; }
.hub-summary { color: #4d5264; }

.site-footer { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 48px; padding: 52px max(24px, calc((100% - 1180px) / 2)); background: var(--light); border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: 16px 28px; font-weight: 800; }
.site-footer nav a { text-decoration: none; }
.footer-copy { max-width: 520px; margin: 18px 0 0; color: #3f4559; line-height: 1.5; }
.trademark-note { grid-column: 1 / -1; max-width: 920px; margin: 0; color: #5d6270; font-size: 13px; line-height: 1.5; }

.not-found { width: min(720px, calc(100% - 40px)); margin: 12vh auto; }
.not-found .wordmark { margin-bottom: 70px; }
.not-found h1 { margin-bottom: 18px; font-size: clamp(42px, 7vw, 72px); line-height: 1; }
.not-found p:not(.eyebrow) { color: #3f4559; font-size: 19px; line-height: 1.5; }

@media (max-width: 920px) {
  .nav-wrap { grid-template-columns: auto 1fr; gap: 20px; }
  .site-nav { display: none; }
  .nav-wrap > .button { justify-self: end; }
  .template-hero { grid-template-columns: 1fr; gap: 38px; }
  .preview-panel { min-height: 430px; }
  .spec-list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .spec-list div:nth-child(4) { padding-left: 0; border-left: 0; }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .nav-wrap { grid-template-columns: 1fr; width: min(100% - 28px, 1240px); min-height: 70px; }
  .wordmark { font-size: 19px; }
  .brand-mark { width: 38px; height: 38px; grid-template-columns: repeat(2, 8px); gap: 4px; padding: 7px; }
  .nav-wrap > .button { display: none; }
  .breadcrumbs, .template-hero, .related-section, .hub-main, .hub-hero-inner, .spec-list { width: min(100% - 32px, 1180px); }
  .template-hero { padding: 42px 0 54px; }
  .template-hero h1, .hub-hero h1 { font-size: 43px; }
  .lede, .hub-hero p:not(.eyebrow) { font-size: 18px; }
  .preview-panel { min-height: 380px; padding: 24px; }
  .spec-list { grid-template-columns: repeat(2, 1fr); }
  .spec-list div, .spec-list div:nth-child(4) { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
  .spec-list div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 14px; }
  .template-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; padding: 42px 16px; }
  .site-footer nav { gap: 14px 22px; }
}
