:root {
  --ink: #022a3e;
  --body: #333333;
  --muted: #707070;
  --blue: #32b0e6;
  --paper: #ffffff;
  --soft: #f9f9f9;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--soft);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 90px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  height: 70px;
  box-shadow: 0 8px 25px rgba(2, 42, 62, 0.08);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
}

.brand img {
  width: 118px;
}

.global-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 52px);
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 2.25px;
}

.global-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.global-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  content: "";
}

.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a[aria-current="page"] {
  color: var(--ink);
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

.news-hero {
  position: relative;
  min-height: 540px;
  padding-top: 329px;
  overflow: hidden;
  background: var(--soft);
}

.hero-title {
  position: relative;
  z-index: 2;
  width: min(891px, calc(100% - 48px));
  min-height: 211px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 42px 98px;
  border-radius: 0 200px 200px 0;
  background: #fff;
  color: var(--ink);
}

.hero-title h1 {
  margin: 0;
  font-family: "Montserrat Alternates", Montserrat, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-title p {
  margin: 7px 0 0;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.4;
}

.hero-confetti {
  position: absolute;
  right: max(0px, calc((100vw - 1320px) / 2));
  top: 82px;
  width: min(600px, 42vw);
  pointer-events: none;
}

.news-section {
  padding: 130px 24px 170px;
  background: var(--soft);
}

.news-container {
  width: min(1026px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 45px;
}

.news-card {
  color: var(--ink);
}

.news-card img {
  width: 100%;
  aspect-ratio: 312 / 204;
  object-fit: cover;
  background: #fff;
}

.news-card h2 {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1.1px;
  line-height: 1.6;
}

.news-card:hover img {
  filter: grayscale(100%);
}

.footer {
  position: relative;
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 60px 24px;
  color: #fff;
  background: var(--ink);
}

.footer-logo {
  width: 259px;
}

.footer nav,
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 2.25px;
}

.legal {
  gap: 18px;
  font-size: 13px;
}

.footer a {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 1;
}

.page-top {
  position: absolute;
  left: 70px;
  top: 115px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .site-header {
    height: 60px;
  }

  .header-inner {
    width: calc(100% - 50px);
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    position: absolute;
    left: 9.5px;
    width: 31px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.25s ease;
  }

  .menu-button span:first-child {
    top: 19px;
  }

  .menu-button span:last-child {
    top: 30px;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(5.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    inset: 60px 0 auto;
    display: grid;
    gap: 0;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 30px rgba(2, 42, 62, 0.08);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .global-nav.is-open {
    transform: translateY(0);
  }

  .global-nav a {
    padding: 12px 0;
  }

  .news-hero {
    min-height: 361px;
    padding-top: 150px;
  }

  .hero-title {
    width: 234px;
    min-height: 211px;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 63px 20px 48px;
    border-radius: 0 200px 200px 0;
  }

  .hero-title h1 {
    font-size: 45px;
  }

  .hero-title p {
    margin-top: 0;
    font-size: 15px;
  }

  .hero-confetti {
    width: 140px;
    top: 100px;
    right: 0;
  }

  .news-section {
    padding: 69px 25px 120px;
  }

  .news-container {
    width: min(340px, 100%);
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-card {
    display: grid;
    grid-template-columns: 159px 1fr;
    gap: 22px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--ink);
  }

  .news-card:first-child {
    padding-top: 0;
  }

  .news-card img {
    width: 159px;
    height: 134px;
    aspect-ratio: auto;
  }

  .news-card h2 {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.75;
  }

  .footer {
    place-items: start;
    padding: 60px 25px;
  }

  .footer nav,
  .legal {
    display: grid;
    justify-content: start;
    gap: 8px;
  }

  .page-top {
    right: 25px;
    left: auto;
    top: 170px;
  }
}

@media (max-width: 420px) {
  .news-card {
    grid-template-columns: 46.8% 1fr;
  }

  .news-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 159 / 134;
  }
}
