@font-face {
  font-family: "Noto Sans SC Homepage";
  src: url("./assets/noto-sans-sc-homepage.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Noto Sans SC Homepage", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #122138;
  background: #fff;
  --ink: #122138;
  --muted: #43556d;
  --blue: #0f57db;
  --blue-hover: #0043b9;
  --navy: #061b36;
  --line: #d4deeb;
  --gutter: clamp(1rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 0;
}

h1, h2, h3, p { margin: 0; }

img {
  display: block;
  max-inline-size: 100%;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

a:focus-visible {
  outline: 3px solid #0050ce;
  outline-offset: 5px;
}

::selection {
  color: #071a39;
  background: #a6d4ff;
}

.wrap {
  width: min(100% - var(--gutter) * 2, 78rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 2;
  padding: .75rem 1rem;
  transform: translateY(calc(-100% - 2rem));
  color: #fff;
  background: var(--navy);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 4.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.brand img { flex: 0 0 auto; }

.brand-type {
  display: grid;
  gap: .2rem;
  line-height: 1;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-latin {
  color: #415773;
  font-size: .75rem;
  letter-spacing: .11em;
  font-weight: 600;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .9rem;
  text-decoration: none;
  font-size: .925rem;
  font-weight: 600;
  border: 1px solid var(--line);
}

.nav-link:hover {
  border-color: #8cabd9;
  color: #0043b9;
  background: #f3f8ff;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-image,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  inline-size: 100%;
  block-size: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 61% 44%;
}

.hero::after {
  content: "";
  background: linear-gradient(92deg, #04162ef5 0%, #061c37d9 31%, #061c375c 57%, #061c3700 80%);
}

.hero-inner {
  display: grid;
  align-items: center;
  min-height: clamp(27rem, 38vw, 35rem);
  padding-block: clamp(4.5rem, 9vw, 9.5rem);
}

.hero-copy {
  max-width: 30rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 6.25vw, 5.75rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
}

.hero p {
  margin-top: 1.15rem;
  color: #c6dcf2;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.hero-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  margin-top: 2rem;
  padding: .7rem 1.15rem;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.hero-link:hover {
  background: var(--blue-hover);
}

.hero-link:focus-visible {
  outline-color: #bfdeff;
}

.access {
  padding-block: clamp(2.625rem, 5vw, 5rem);
  background: #f2f6fb;
  scroll-margin-top: 1rem;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(12.5rem, .85fr) minmax(0, 2.2fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.access-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -.027em;
  font-weight: 700;
}

.access-intro p,
.access-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.access-intro p {
  margin-top: .65rem;
}

.access-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.access-card {
  min-height: 13.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 1.35rem 1.45rem 1.25rem;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.access-card:hover,
.access-card:focus-visible {
  border-color: #638ccb;
  background: #fbfdff;
}

.access-card h3 {
  margin-top: .9rem;
  font-weight: 700;
  font-size: clamp(1.18rem, 1.7vw, 1.4rem);
  line-height: 1.4;
}

.access-card p {
  margin-top: .32rem;
}

.card-action {
  margin-top: auto;
  padding-top: .9rem;
  color: #0043b9;
  font-size: .93rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: .06em;
}

.card-icon {
  display: grid;
  place-items: center;
  position: relative;
  width: 2.625rem;
  height: 2.625rem;
  color: #0047bf;
  background: #e7f0ff;
}

.card-icon--oa span,
.card-icon--projects span {
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid currentColor;
}

.card-icon--oa span {
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.card-icon--projects span::after {
  content: "";
  position: absolute;
  inset: calc(50% - 4px) auto auto calc(50% - 4px);
  width: 8px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 4px currentColor, 0 8px currentColor;
}

.site-footer {
  padding-block: 1.25rem;
  color: #41536b;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .65rem 1.5rem;
}

.footer-company {
  font-size: .875rem;
  font-weight: 600;
}

.site-footer a {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  min-height: 1.5rem;
  font-size: .825rem;
}

.site-footer a:hover {
  color: #0043b9;
}

@media (max-width: 55rem) {
  .access-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 35rem) {
  .hero-inner {
    min-height: 25.5rem;
    align-items: end;
    padding-block: 3.6rem 2.65rem;
  }

  .hero-image {
    object-position: 69% 41%;
  }

  .hero::after {
    background: linear-gradient(180deg, #0415270a, #05182f47 35%, #04162ef0 83%);
  }

  .hero-link {
    margin-top: 1.55rem;
  }

  .access-list {
    grid-template-columns: 1fr;
  }

  .access-card {
    min-height: 0;
    padding: 1.15rem 1.2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer a {
    grid-column: 1;
  }
}
