:root {
  color-scheme: light;
  --page: #f5f5f0;
  --ink: #161923;
  --subtle: #53596b;
  --line: #dcdde3;
  --blue: #2138ec;
  --blue-dark: #172bbb;
  --card: #fff;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

header { border-bottom: 1px solid var(--line); }
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 76px;
}
nav > a:last-child {
  color: var(--subtle);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
nav > a:last-child:hover { color: var(--blue-dark); text-decoration: underline; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.05em;
  text-decoration: none;
}
.brand span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font: 700 .9rem "IBM Plex Mono", Consolas, monospace;
}

main { padding-block: clamp(44px, 6vw, 78px) 74px; }
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px 44px;
  flex-wrap: wrap;
}
h1, h2, p { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 {
  font-size: clamp(2.65rem, 7.6vw, 6.15rem);
  letter-spacing: -.073em;
  line-height: .99;
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: -.045em;
  line-height: 1.13;
}
p { line-height: 1.65; }
.intro { max-width: 38rem; color: var(--subtle); font-size: 1.04rem; }
.hero .intro { max-width: 23rem; padding-bottom: 3px; }

.ipbox {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  min-height: 286px;
  display: grid;
  align-content: center;
  margin-top: clamp(24px, 4vw, 44px);
  padding: clamp(24px, 5.4vw, 58px);
  border-radius: 25px;
  background: var(--blue);
  color: #fff;
}
.ipbox::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 50%;
  background:
    radial-gradient(circle at 74% 64%, #a9b3ff55, transparent 57%),
    repeating-radial-gradient(ellipse at 82% 70%, transparent 0 20px, #c2cbff50 21px 22px, transparent 23px 35px);
  mask-image: linear-gradient(to right, transparent, #000 72%);
  pointer-events: none;
}
.label {
  color: #edf0ff;
  font-size: .92rem;
  font-weight: 650;
}
.address {
  display: block;
  margin-block: 13px 9px;
  overflow-wrap: anywhere;
  font: 700 clamp(1.42rem, 5.5vw, 4.4rem)/1.12 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: -.065em;
}
#status { min-height: 1.65em; color: #edf0ff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #1627a3;
  background: #fff;
  font: 650 .93rem "Inter", "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
button:not(:disabled):hover { background: #e7ebff; }
button.secondary { background: transparent; border-color: #c7cfff; color: #fff; }
button.secondary:not(:disabled):hover { background: #ffffff22; border-color: #fff; }
button:disabled { opacity: .66; cursor: default; }

.connection-details {
  margin-top: 32px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid #ffffff50;
  border-radius: 15px;
  background: #182bb8;
}
.connection-details h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.connection-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 14px 0 0;
}
.connection-details dt, .connection-note { color: #edf0ff; font-size: .87rem; }
.connection-details dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 650; }
.connection-note { margin-top: 14px; }

.guides { margin-top: clamp(35px, 5.5vw, 65px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.section-head a { color: var(--blue-dark); font-weight: 650; font-size: .94rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 17px;
}
.card {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 145px;
  padding: 23px 44px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  text-decoration: none;
  font-weight: 750;
  line-height: 1.34;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.card::after {
  content: "↗" / "";
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--blue-dark);
}
.card:hover { border-color: #8995f7; background: #f9faff; }
.card span {
  display: block;
  margin-top: 8px;
  color: var(--subtle);
  font-size: .91rem;
  font-weight: 400;
  line-height: 1.52;
}
article { max-width: 780px; }
article h1, .catalog-title { font-size: clamp(2.45rem, 7vw, 4.9rem); }
article h2 { margin-top: 35px; }
article p { margin-top: 13px; max-width: 67ch; }
article .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-nav { margin: 0 0 18px; font-size: .94rem; }
.article-nav a, article p a { color: var(--blue-dark); }
.catalog-title + .cards { margin-top: 28px; }
footer { border-top: 1px solid var(--line); color: var(--subtle); padding-block: 24px; font-size: .9rem; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 4px; }
.ipbox :focus-visible { outline-color: #fff; }

@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  nav { min-height: 62px; }
  .hero { gap: 14px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .cards, article .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .ipbox { min-height: 260px; border-radius: 19px; }
  .connection-details dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  button, .card { transition: none; }
}
.skip-link, .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px;
  clip-path: none;
  background: #fff;
}
.article-search { margin-block: 26px 20px; max-width: 32rem; }
.article-search label { display: block; margin-bottom: 8px; font-weight: 650; }
.article-search div { display: flex; gap: 8px; }
.article-search input[type="search"] {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
}
.article-search button { background: var(--blue); color: #fff; }
.article-search button:not(:disabled):hover { background: var(--blue-dark); }
.topic-list, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-list { list-style: none; padding: 0; margin-block: 0 22px; }
.topic-list a, .page-numbers {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.page-numbers.current { background: var(--blue); color: #fff; }
.pagination { display: block; min-height: 0; margin-top: 23px; }
.empty-state, .entry > .intro { margin-top: 22px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content img, .entry-content iframe { max-width: 100%; }
.entry-content img { height: auto; }
.entry-content pre, .entry-content .wp-block-table { overflow-x: auto; }
