:root {
  color-scheme: light;
  --bg: #f8fbfa;
  --surface: #ffffff;
  --ink: #071923;
  --muted: #526b72;
  --soft: #e6f0ef;
  --line: #bdd6d4;
  --teal: #007c79;
  --teal-dark: #005c5a;
  --green: #148a58;
  --amber: #c98324;
  --night: #06191b;
  --night-muted: #b9ceca;
  --max: 1160px;
  --shadow: 0 20px 60px rgba(7, 25, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.no-hero {
  background:
    linear-gradient(180deg, rgba(230, 240, 239, 0.78), rgba(248, 251, 250, 0) 360px),
    var(--bg);
}

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

p {
  margin: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(248, 251, 250, 0.94);
  border-bottom: 1px solid rgba(189, 214, 212, 0.78);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 760;
  white-space: nowrap;
}

.brand-rule {
  width: 64px;
  height: 4px;
  background: var(--teal);
}

.nav-links {
  gap: 34px;
  color: #112932;
  font-size: 0.96rem;
  font-weight: 650;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  padding: 26px 0 22px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  border-color: var(--teal);
  color: var(--teal-dark);
  outline: none;
}

.hero {
  position: relative;
  min-height: 560px;
  padding: 86px max(24px, calc((100vw - var(--max)) / 2)) 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(72vw, 1050px);
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.92;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 22%, black 46%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding-top: 58px;
}

.hero h1 {
  margin: 0;
  color: #041722;
  font-size: 5.8rem;
  font-weight: 790;
  line-height: 0.92;
}

.hero-lede {
  max-width: 620px;
  margin-top: 26px;
  color: #102a33;
  font-size: 1.4rem;
  line-height: 1.4;
}

.hero-note {
  max-width: 450px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--teal-dark);
  font-size: 0.98rem;
  font-weight: 760;
}

.text-link::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(5px);
}

.text-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 6px;
}

.text-link.light {
  color: #7bd6ca;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.72);
}

.status-item span,
.card-meta,
.section-head p,
.log-copy > p:first-child,
.page-kicker,
.table-label {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.status-item strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 640;
  line-height: 1.32;
}

.status-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 8px;
}

.status-icon svg,
.mini-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split-band,
.notes-band,
.page-section {
  padding: 68px max(24px, calc((100vw - var(--max)) / 2));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-head p,
.log-copy > p:first-child,
.page-kicker,
.table-label {
  letter-spacing: 0.14em;
}

.section-head h2,
.log-copy h2,
.page-hero h1,
.page-section h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 2.55rem;
  font-weight: 760;
  line-height: 1.04;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card,
.detail-card,
.note-entry,
.dns-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card {
  min-height: 270px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  background: var(--soft);
  border-radius: 6px;
  position: relative;
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
  color: var(--teal-dark);
}

.code-icon::before {
  inset: 19px 14px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.code-icon::after {
  inset: 19px 14px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.note-icon::before {
  width: 26px;
  height: 2px;
  left: 14px;
  top: 27px;
  background: currentColor;
  transform: rotate(-42deg);
}

.note-icon::after {
  width: 10px;
  height: 10px;
  right: 13px;
  top: 14px;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(48deg);
}

.stack-icon::before,
.stack-icon::after {
  left: 14px;
  right: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top: 0;
  transform: skewY(-26deg) rotate(-9deg);
}

.stack-icon::before {
  top: 17px;
}

.stack-icon::after {
  top: 25px;
}

.project-card h3,
.detail-card h3,
.note-entry h2,
.dns-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.project-card p,
.detail-card p,
.note-entry p,
.dns-card p,
.page-lede,
.body-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.project-card p {
  min-height: 78px;
  margin-top: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.card-meta span:last-child {
  margin-left: auto;
}

.live-dot,
.amber-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.live-dot {
  background: var(--green);
}

.amber-dot {
  background: var(--amber);
}

.notes-band {
  background:
    linear-gradient(180deg, rgba(230, 240, 239, 0.52), rgba(248, 251, 250, 0)),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-list {
  border-top: 1px solid var(--line);
}

.note-list a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.note-list a:hover span,
.note-list a:focus-visible span {
  color: var(--teal-dark);
}

.note-list a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 5px;
}

.note-list time {
  color: var(--teal-dark);
  font-weight: 680;
}

.note-list span {
  color: var(--ink);
  font-size: 1.04rem;
  transition: color 160ms ease;
}

.log-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(480px, 1.2fr);
  gap: 52px;
  padding: 70px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--night);
  color: #f3fbfa;
}

.log-copy h2 {
  color: #f3fbfa;
}

.log-copy > p:first-child {
  color: #7bd6ca;
}

.log-copy p:not(:first-child) {
  margin-top: 20px;
  color: var(--night-muted);
  line-height: 1.65;
}

.log-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.log-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--ink);
}

.log-table th,
.log-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.log-table th {
  color: var(--teal-dark);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.log-table tr:last-child td {
  border-bottom: 0;
}

.log-band .log-table-wrap {
  background: transparent;
  border-color: rgba(123, 214, 202, 0.42);
}

.log-band .log-table {
  color: #eaf6f4;
}

.log-band .log-table th {
  color: #7bd6ca;
}

.log-band .log-table th,
.log-band .log-table td {
  border-bottom-color: rgba(123, 214, 202, 0.26);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.page-hero {
  position: relative;
  padding: 78px max(24px, calc((100vw - var(--max)) / 2)) 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("assets/domain-network-background.png");
  background-position: right center;
  background-size: min(900px, 78vw) auto;
  background-repeat: no-repeat;
  opacity: 0.32;
  mask-image: linear-gradient(90deg, transparent, black 50%);
}

.page-hero h1 {
  max-width: 760px;
  font-size: 4rem;
}

.page-lede {
  max-width: 650px;
  margin-top: 20px;
  color: #29464e;
  font-size: 1.18rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-card {
  padding: 28px;
}

.detail-card p,
.dns-card p {
  margin-top: 12px;
}

.detail-card dl {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.detail-card div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-card dt {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.detail-card dd {
  margin: 0;
  color: var(--ink);
}

.note-stack {
  display: grid;
  gap: 18px;
}

.note-entry {
  padding: 30px;
}

.note-entry time {
  display: block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-weight: 730;
}

.note-entry p {
  max-width: 780px;
  margin-top: 14px;
}

.now-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: 24px;
}

.now-list,
.plain-list {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.now-list li,
.plain-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
}

.dns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dns-card {
  padding: 24px;
}

.record-pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 8px;
  color: var(--teal-dark);
  background: var(--soft);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 820;
}

.table-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.not-found-main {
  min-height: calc(100svh - 72px);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .nav-links {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    padding: 8px 0;
    white-space: nowrap;
  }

  .hero {
    min-height: 500px;
    padding-top: 52px;
  }

  .hero-copy {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: 4.1rem;
  }

  .hero-image {
    width: 100%;
    opacity: 0.38;
    mask-image: linear-gradient(90deg, transparent 0%, black 48%);
  }

  .status-strip,
  .project-grid,
  .detail-grid,
  .dns-grid {
    grid-template-columns: 1fr 1fr;
  }

  .log-band,
  .now-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-rule {
    width: 42px;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.88rem;
  }

  .hero,
  .page-hero,
  .split-band,
  .notes-band,
  .page-section,
  .log-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3rem;
    line-height: 0.96;
  }

  .hero-lede {
    font-size: 1.18rem;
  }

  .status-strip,
  .project-grid,
  .detail-grid,
  .dns-grid {
    grid-template-columns: 1fr;
  }

  .status-strip {
    padding: 0;
  }

  .status-item {
    min-height: auto;
    padding: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2,
  .log-copy h2,
  .page-section h2 {
    font-size: 2rem;
  }

  .note-list a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
