:root {
  color-scheme: light;
  --ink: #0b2942;
  --body: #334b5e;
  --brand: #075985;
  --brand-dark: #064465;
  --line: #cbdce8;
  --surface: #edf5fa;
  font: 100%/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure { margin: 0; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--brand-dark); }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
p { color: var(--body); }
.shell { width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 1;
  padding: .5rem .75rem;
  background: #fff;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid #dce7ef; }
.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.brand, .header-nav, .actions { display: flex; align-items: center; gap: .85rem; }
.brand {
  gap: .65rem;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 2rem;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .45rem;
  background: var(--ink);
}
.brand-mark::before {
  content: "";
  width: 1.08rem;
  height: .76rem;
  border: 1.5px solid #fff;
  border-radius: 2px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: .66rem;
  width: .54rem;
  height: .54rem;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.header-nav { gap: 1.15rem; font-size: .92rem; }
.header-nav a { font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-nav a:not(.button):hover { text-decoration: underline; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.85rem;
  padding: .62rem 1rem;
  border: 1px solid var(--brand);
  border-radius: .5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
}
.button:hover { background: var(--brand-dark); color: #fff; }
.button:focus-visible { outline-color: var(--brand-dark); }
.button-compact { min-height: 2.5rem; padding: .5rem .8rem; }
.button-outline { background: transparent; color: var(--brand-dark); }
.button-outline:hover { background: #dbeaf4; color: var(--ink); }
.actions { flex-wrap: wrap; }

.hero { background: var(--surface); border-bottom: 1px solid #dce7ef; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr);
  align-items: center;
  gap: clamp(1.8rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5vw, 4.45rem);
  line-height: 1.035;
  letter-spacing: -.047em;
  text-wrap: balance;
}
.hero p { margin-block: 1.35rem 1.65rem; max-width: 38ch; font-size: 1.125rem; }
.preview-frame {
  overflow: hidden;
  border: 1px solid #adbfce;
  border-top: .48rem solid var(--ink);
  border-radius: .75rem;
  background: #f1f5f9;
  box-shadow: 0 1.15rem 2.75rem #0b294225;
}
.preview-frame img { display: block; width: 100%; height: auto; }
figcaption { margin-top: .85rem; color: var(--body); font-size: .875rem; }

.workflow { padding-block: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.13; letter-spacing: -.033em; }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 4vw, 3rem);
  margin-top: 2rem;
}
.workflow article { padding-top: 1rem; border-top: 2px solid #bfd7e7; }
.workflow h3 { font-size: 1.2rem; line-height: 1.3; }
.workflow article p { margin-top: .55rem; }

.project-access { background: var(--ink); color: #fff; }
.access-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  padding-block: 2.7rem;
}
.project-access p { max-width: 48ch; margin-top: .6rem; color: #d9eaf6; }
.button-light { color: var(--ink); background: #fff; border-color: #fff; }
.button-light:hover { background: #d9eaf6; color: var(--ink); }
.button-outline-light { color: #fff; background: transparent; border-color: #c7dce9; }
.button-outline-light:hover { background: #184665; }
.project-access .button:focus-visible { outline-color: #fff; }
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding-block: 1.35rem;
  color: var(--body);
  font-size: .9rem;
}

@media (max-width: 840px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .workbook-preview { max-width: 42rem; }
  .access-layout { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 2rem); }
  .header-layout { flex-wrap: wrap; gap: .65rem; }
  .header-nav { gap: .8rem; }
  .workflow-link { display: none; }
  .hero-layout { padding-block: 2.75rem; }
  .hero p { font-size: 1rem; }
  .workflow-grid { grid-template-columns: 1fr; margin-top: 1.4rem; }
}
