@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rethink+Sans:wght@500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --ink: #f0f8fb;
  --muted: #b5c9d5;
  --accent: #8be9e3;
  --ground: #081722;
  --line: #294251;
  font-family: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: "Rethink Sans", Inter, system-ui, sans-serif; letter-spacing: -.042em; line-height: 1.04; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 6.8vw, 6.4rem); text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
p, dd { color: var(--muted); }
.wrap { width: min(1200px, 100% - 96px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 3; padding: .65rem 1rem; color: var(--ground); background: var(--accent); transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.navigation, .navigation nav, .brand, .actions, .footer { display: flex; align-items: center; }
.navigation { justify-content: space-between; min-height: 80px; gap: 12px; }
.navigation nav { gap: clamp(12px, 3.1vw, 40px); }
.navigation a, .actions a, .footer a { text-decoration: none; }
.brand { gap: 11px; font: 800 1.28rem "Rethink Sans", Inter, sans-serif; white-space: nowrap; }
.brand img { border-radius: 9px; width: 40px; }
.pill { border: 1px solid #5a7787; border-radius: 99px; display: inline-flex; gap: .7em; align-items: center; justify-content: center; min-height: 45px; padding: .55rem 1.05rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary { background: var(--accent); border-color: var(--accent); color: #052320; }
.primary:hover { color: #052320; background: #b2f8f3; }
.hero { display: grid; align-items: center; min-height: min(720px, 82svh); isolation: isolate; background: #143344; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #04121cf5 0%, #051926b8 38%, #06131a1a 80%), url("/assets/hero.jpg") center 55% / cover no-repeat; }
.hero-inner { padding-block: 80px 94px; }
.hero h1 { max-width: 790px; }
.hero p { max-width: 32rem; font-size: clamp(1rem, 2vw, 1.28rem); color: #e0eff4; margin: 1.25rem 0 2rem; }
.actions { gap: 1.4rem; flex-wrap: wrap; }
.actions > a:not(.pill) { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; }
.overview { padding-block: 100px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.features { margin: 1.8rem 0 0; }
.features div { border-top: 1px solid var(--line); padding: 13px 0 16px; }
dt { font-weight: 700; }
dd { margin: .2rem 0 0; }
.phones { margin: 0; position: relative; display: grid; align-items: end; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.phones img { border: 3px solid #274456; box-shadow: 0 18px 45px #030d17a0; border-radius: clamp(12px, 2.3vw, 26px); }
.phones img:first-child { margin-bottom: 32px; }
.phones figcaption { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: .875rem; margin-top: 15px; }
.support { background: #102936; }
.support-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 57px; }
.support h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.support p { margin: .65rem 0 0; }
.footer { padding-block: 28px; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .92rem; }
.handbook { padding-block: 64px 48px; }
.handbook h1 { font-size: clamp(2.75rem, 6vw, 5.2rem); }
.intro { font-size: 1.14rem; margin: .9rem 0 2.1rem; }
.handbook-grid { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 720px); gap: clamp(30px, 6vw, 88px); }
.contents { align-self: start; padding: 12px; background: #102936; border-radius: 15px; position: sticky; top: 24px; display: grid; }
.contents a { min-height: 44px; display: flex; align-items: center; padding: .5rem .75rem; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.chapters section { padding-block: 25px 32px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.chapters h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); }
.chapters ol { padding-left: 1.4rem; color: var(--muted); }
.chapters li + li { margin-top: .55rem; }
.chapters a { color: var(--accent); }
.chapters dd + dt { margin-top: 1rem; }
[aria-current="page"] { color: var(--accent); }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 44px); }
  .on-desktop { display: none; }
  .navigation { min-height: 66px; }
  .hero { min-height: 540px; }
  .hero::before { background-position: 58% center; }
  .hero-inner { padding-block: 68px; }
  .overview { grid-template-columns: 1fr; padding-block: 64px; }
  .phones { max-width: 430px; margin-inline: auto; }
  .handbook-grid { grid-template-columns: 1fr; gap: 25px; }
  .contents { position: static; }
}

@media (max-width: 460px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 1rem; gap: 6px; }
  .brand img { width: 29px; }
  .navigation nav { font-size: .87rem; gap: 8px; }
  .navigation .pill { padding-inline: .65rem; gap: .35em; }
  .hero::before { background-image: linear-gradient(90deg, #04121ce8, #0519266e), url("/assets/hero.jpg"); }
  .hero { min-height: 510px; }
  .support-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
