@font-face {
  font-family: 'RY Seaside Display';
  src: url('/seaside/fonts/ry-seaside-display.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #f1f9ff;
  --paper: #fff;
  --ink: #173b6e;
  --muted: #536c86;
  --line: #dceaf5;
  --accent: #0759df;
  --soft: #edf6ff;
  --warn: #fff5d9;
  --code: #122d53;
  --code-ink: #e5f3ff;
  --display: 'RY Seaside Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
html {
  scroll-padding-top: 112px;
}
body.seaside-docs {
  background:
    radial-gradient(ellipse at 5% 1%, #fff0c7 0, transparent 780px),
    linear-gradient(180deg, #d8f3ff, var(--bg) 650px);
  font-size: 15px;
}
.seaside-docs > header {
  position: fixed;
  inset: 18px 28px auto;
  max-width: 1264px;
  margin-inline: auto;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: 0 8px 30px #1035820d;
  backdrop-filter: blur(18px);
}
.bar {
  padding: 0 22px;
  min-height: 64px;
}
.brand {
  color: var(--accent);
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.2;
}
header nav {
  gap: 28px;
}
header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
}
.docs-hero {
  position: relative;
  isolation: isolate;
  max-width: 1264px;
  min-height: 275px;
  margin: 108px auto 28px;
  padding: 36px 40px;
  border: 2px solid #fff;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #f4fcff 12%, #edfaffef 45%, #e4f7ff10),
    url('/seaside/layers/beach-scene.png') center 43% / cover;
}
.docs-hero-copy {
  position: relative;
  z-index: 1;
  width: 70%;
}
.docs-label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffdf58;
  color: #16458c;
  font:
    800 11px/1.8 system-ui,
    sans-serif;
  letter-spacing: 0.13em;
}
.docs-hero h1 {
  margin: 20px 0 14px;
  color: #0759dd;
  font-family: var(--display);
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 400;
  font-synthesis: none;
  -webkit-text-stroke: 0.6px currentColor;
  line-height: 1.15;
}
.docs-hero p {
  color: #315c87;
  font-size: 16px;
}
.docs-mascot {
  position: absolute;
  top: 1px;
  right: 44px;
  width: 243px;
  height: 365px;
  object-fit: contain;
  pointer-events: none;
}
.layout {
  max-width: 1320px;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 28px;
  padding: 0 28px 64px;
  align-items: start;
}
aside {
  top: 106px;
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 6px 22px #3972a308;
}
aside p {
  padding-inline: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
}
aside a {
  padding: 9px 10px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
}
aside a:focus-visible {
  background: var(--soft);
}
main {
  max-width: none;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}
.eyebrow {
  font-size: 11px;
  color: var(--accent);
}
.lead {
  font-size: 16px;
  line-height: 1.9;
}
.meta {
  font-size: 12px;
}
.cards {
  gap: 16px;
  margin: 24px 0;
}
.card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 20px;
}
.card:first-child {
  border-top: 4px solid #68c9fb;
}
.card + .card {
  border-top: 4px solid #ffd969;
}
.card > code {
  display: block;
  font-size: 13px;
  color: var(--accent);
}
.card .label {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.card p {
  font-size: 12px;
}
section {
  padding-top: 36px;
  border-top: 2px solid var(--line);
}
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
}
h2 {
  font-size: 29px;
  line-height: 1.5;
}
h3 {
  font-size: 21px;
}
h2 small {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #ffdf58;
  color: #16458c;
  font: 700 13px/1 system-ui;
}
.pill {
  display: inline-block;
  vertical-align: middle;
  padding: 5px 9px;
  border-radius: 999px;
  font: 500 11px/1.5 system-ui;
  white-space: normal;
}
.note {
  border-radius: 0 15px 15px 0;
  line-height: 1.9;
}
.sample {
  border: 0;
  border-radius: 18px;
}
.sample-head {
  padding: 12px 16px;
  gap: 16px;
  border-color: #36516c;
  background: #193b67;
  line-height: 1.7;
}
.copy {
  min-height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 5px 15px;
  background: #ffdf58;
  color: #14366a;
  font-weight: 700;
}
pre {
  padding: 20px;
}
pre code {
  font-size: 12px;
}
.table-wrap {
  border-radius: 16px;
}
th {
  color: var(--ink);
}
td {
  line-height: 1.85;
}
footer {
  line-height: 1.9;
}
:root.dark {
  --bg: #102235;
  --paper: #162e48;
  --ink: #e6f3ff;
  --muted: #b7cbe0;
  --line: #35516d;
  --accent: #a6d4ff;
  --soft: #203e5c;
  --warn: #463b28;
  --code: #0a1c32;
  --code-ink: #e5f3ff;
}
:root.dark body.seaside-docs {
  background:
    radial-gradient(ellipse at 10% 0, #144575, transparent 780px), var(--bg);
}
@media (max-width: 1320px) {
  .docs-hero {
    margin-inline: 28px;
  }
}
@media (max-width: 800px) {
  html {
    scroll-padding-top: 156px;
  }
  .seaside-docs > header {
    inset: 12px 14px auto;
  }
  .bar {
    min-height: 56px;
    padding: 0 15px;
    gap: 12px;
  }
  .brand {
    font-size: 22px;
  }
  header nav {
    gap: 14px;
  }
  header nav a {
    font-size: 16px;
  }
  .docs-hero {
    min-height: 220px;
    margin: 90px 14px 18px;
    padding: 24px 20px;
    border-radius: 26px;
  }
  .docs-hero-copy {
    width: 100%;
  }
  .docs-hero h1 {
    max-width: calc(100% - 68px);
    margin-top: 25px;
    font-size: 36px;
  }
  .docs-hero p {
    max-width: calc(100% - 55px);
    font-size: 13px;
  }
  .docs-mascot {
    top: 30px;
    right: -12px;
    width: 110px;
    height: 165px;
  }
  .layout {
    display: block;
    padding: 0 14px 32px;
  }
  aside {
    position: sticky;
    top: 78px;
    z-index: 3;
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 18px;
  }
  aside p {
    margin: 0;
    padding-left: 5px;
    font: 700 11px/1.6 system-ui;
  }
  aside nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding: 2px 0;
  }
  aside a {
    flex-shrink: 0;
    min-height: 36px;
    padding: 6px 9px;
    font-size: 12px;
    background: var(--soft);
  }
  main {
    padding: 24px 18px;
    border-radius: 22px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  h2 {
    font-size: 25px;
  }
  h2 .pill {
    margin-top: 8px;
  }
  h3 {
    font-size: 20px;
  }
  .lead {
    font-size: 14px;
  }
  .note {
    padding: 14px;
    font-size: 13px;
  }
  .sample-head {
    padding: 10px 12px;
    font-size: 11px;
  }
  .copy {
    min-height: 44px;
    padding-inline: 12px;
  }
  pre {
    padding: 15px;
  }
  .skip {
    z-index: 10;
  }
}
@media (max-width: 360px) {
  header nav {
    gap: 10px;
  }
  header nav a {
    font-size: 14px;
  }
  .docs-hero h1 {
    font-size: 30px;
  }
  .docs-mascot {
    width: 92px;
    height: 138px;
    top: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
