/* Technical Innovation Center. Warm paper, the logo's magenta, used sparingly. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-500.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-500.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --paper: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --ink: #1f1b16;
  --secondary: #5e554a;
  --muted: #6f675c;
  --line: rgba(31, 27, 22, 0.1);
  --line-strong: rgba(31, 27, 22, 0.16);
  --accent: #b1005d;
  --accent-press: #7e0043;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(31, 27, 22, 0.05);
  --shadow-lift: 0 8px 24px rgba(31, 27, 22, 0.06);
  --header: 88px;
  --max: 1120px;
  --gutter: 32px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

address {
  font-style: normal;
}

cite {
  font-style: normal;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: 36px;
  font-weight: 400;
  line-height: 44px;
  max-width: 16ch;
}

h2 {
  font-size: 28px;
  line-height: 36px;
}

h3 {
  font-size: 20px;
  line-height: 28px;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}

.skip:not(:focus):not(:focus-visible) {
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - var(--gutter)));
  margin-inline: auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand menu"
    "line line";
  align-items: center;
  gap: 4px 16px;
  padding: 12px 0;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.logo {
  height: 52px;
  width: auto;
}

.institute-line {
  grid-area: line;
  margin: 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 20px;
  color: var(--secondary);
}

.menu-btn {
  grid-area: menu;
  justify-self: end;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: 500 15px/20px var(--sans);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.menu-btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--card);
}

.nav,
.topic-nav {
  display: none;
}

.nav {
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.nav-row,
.topic-row {
  width: min(var(--max), calc(100% - var(--gutter)));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav a,
.topic-nav a,
.mobile-nav a,
.noscript-nav a,
.footer-nav a,
.rail a {
  text-decoration: none;
}

.nav a {
  padding: 12px 12px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--paper);
}

.nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav a:focus-visible {
  outline-color: var(--paper);
}

.nav a[aria-current="page"] {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.topic-nav {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.topic-row {
  padding: 4px 0;
}

.topic-nav a {
  padding: 8px 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--secondary);
}

.topic-nav a:hover,
.footer-nav a:hover,
.links a:hover {
  color: var(--accent);
}

.mobile-nav,
.noscript-nav {
  border-top: 1px solid var(--line);
  padding: 8px 8px 16px;
  background: var(--card);
  max-height: calc(100svh - 96px);
  overflow: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a,
.noscript-nav a {
  display: block;
  margin: 0;
  padding: 12px 12px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
}

.mobile-nav a:hover,
.noscript-nav a:hover {
  background: var(--raised);
}

.mobile-nav a[aria-current="page"],
.noscript-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.menu-label,
.footer-label {
  margin: 8px 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-label {
  margin: 0 0 8px;
  padding-top: 0;
  border-top: 0;
}

.banner {
  padding: 32px 0 48px;
}

.banner-grid,
.service-grid,
.book-grid,
.quote-grid,
.portrait-grid,
.page-layout,
.footer-grid {
  display: grid;
  gap: 24px;
}

.lede {
  margin-top: 16px;
  max-width: 38rem;
  color: var(--secondary);
  font-size: 18px;
  line-height: 28px;
}

.banner .lede + .lede {
  margin-top: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}

.btn:hover {
  background: var(--accent-press);
  border-color: var(--accent-press);
  color: #ffffff;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--raised);
  border-color: var(--line-strong);
  color: var(--ink);
}

.shot {
  margin: 8px 0 0;
}

.shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 48% 42%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

.shot figcaption,
.plate figcaption,
.book p,
.portrait figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.band {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.service-grid article,
.book,
.panel,
.portrait,
blockquote {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.service-grid article,
.book {
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.service-grid article:hover,
.book:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.service-grid h3 + p,
.book h3,
.portrait figcaption,
.panel p,
.panel ul,
.prose h2 + p,
.prose h3 + p,
.prose p + p,
.prose ul + p,
.prose p + ul,
.prose ol + p,
.prose p + .plate,
.prose .plate + p,
.prose .note,
.prose .portrait-grid,
.prose .service-grid,
.prose .ai-row {
  margin-top: 16px;
}

.prose a,
.panel p a,
.legal a,
.toc a {
  color: var(--accent);
}

.service-grid h3 a,
.book h3 a {
  color: var(--ink);
  text-decoration: none;
}

.service-grid h3 a:hover,
.book h3 a:hover {
  color: var(--accent);
}

.home-grid {
  display: grid;
  gap: 32px;
  padding: 48px 0 64px;
}

.book-grid {
  margin-top: 24px;
  align-items: stretch;
}

.book img {
  width: 100%;
  height: 240px;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  padding: 12px;
  background: var(--raised);
  border-radius: 8px;
}

.book h3 {
  margin-top: 16px;
}

.quote-grid {
  margin-top: 24px;
}

blockquote {
  height: 100%;
  margin: 0;
  padding: 20px;
  border-left: 2px solid var(--accent);
}

blockquote p {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

blockquote footer {
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel h2 {
  font-size: 22px;
  line-height: 28px;
}

.panel ul,
.prose ul,
.prose ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

.panel li + li,
.prose li + li {
  margin-top: 8px;
}

.prose p,
.prose li,
.page-head p {
  max-width: 40rem;
}

.links {
  list-style: none;
  margin-top: 8px;
  padding-left: 0;
}

.links a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 500;
}

.ai-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ai-row img {
  width: 48px;
  height: auto;
  flex: none;
}

.page-head {
  padding: 40px 0 8px;
}

.page-head h1 {
  max-width: 20ch;
}

.page-head h1 + p {
  margin-top: 16px;
  color: var(--secondary);
}

.page-layout {
  padding-bottom: 80px;
  align-items: start;
}

.prose h2 {
  margin-top: 40px;
}

.prose h3 {
  margin-top: 28px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.toc a {
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
}

.note {
  max-width: 40rem;
  padding: 16px;
  background: var(--raised);
  border-radius: 8px;
  font-size: 15px;
  line-height: 24px;
}

.note strong {
  font-weight: 600;
}

.plate img {
  width: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.plate-wide img {
  width: 100%;
}

.portrait-grid {
  margin-top: 16px;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 8px;
}

.portrait figcaption {
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.portrait figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.footer-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
}

.footer-grid p,
.footer-grid a,
.footer-nav a {
  font-size: 15px;
  line-height: 24px;
}

.footer-grid p + p,
.footer-grid address + p {
  margin-top: 12px;
}

.footer-nav {
  display: grid;
  gap: 0;
  align-content: start;
}

.footer-nav a {
  padding: 4px 0;
  color: var(--ink);
}

.legal {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  max-width: 40rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 24px;
}

caption {
  margin-bottom: 8px;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 500;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
  }

  h1 {
    font-size: 44px;
    line-height: 52px;
  }

  .header-inner {
    min-height: var(--header);
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand line menu";
    gap: 12px 24px;
    padding: 16px 0;
  }

  .logo {
    height: 64px;
  }

  .institute-line {
    justify-self: end;
    max-width: 280px;
  }

  .banner {
    padding: 48px 0 64px;
  }

  .banner-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 32px;
  }

  .shot {
    margin-top: 0;
  }

  .band {
    padding: 64px 0;
  }

  .service-grid,
  .book-grid,
  .portrait-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-head {
    padding-top: 48px;
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: 64px;
  }

  h1 {
    font-size: 56px;
    line-height: 60px;
    letter-spacing: -0.02em;
  }

  .page-head h1 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 0;
  }

  .logo {
    height: 72px;
  }

  .menu-btn,
  .mobile-nav,
  .noscript-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand line";
  }

  html {
    scroll-padding-top: 224px;
  }

  .nav,
  .topic-nav {
    display: block;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .book-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-grid,
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .home-grid {
    padding: 64px 0 80px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 48px;
  }

  .site-footer {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .service-grid article,
  .book {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}
