:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #143b43;
  background: #bceee7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #f37d52; outline-offset: 4px; }

.site-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #69c9cf url("./spongebob-hero.webp") center 40% / cover no-repeat;
}
.site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(215, 250, 242, .58);
}

.site-header {
  width: 100%;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark, .site-header nav { display: flex; align-items: center; }
.wordmark { gap: 10px; font-size: 21px; font-weight: 800; white-space: nowrap; }
.wordmark small { font-size: 12px; font-weight: 700; color: #235e64; }
.wordmark-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #ffe36b;
  color: #16464a;
  border: 2px solid #16464a;
  font-size: 20px;
}
.site-header nav { gap: clamp(18px, 3vw, 38px); font-size: 13px; font-weight: 700; }
.site-header nav a { text-decoration: underline; text-underline-offset: 4px; }
.site-header nav span { color: #285d62; }

.hero { width: 100%; flex: 1; display: flex; align-items: center; padding: 25px clamp(20px, 5vw, 76px) 30px; }
.hero-inner { width: min(1160px, 100%); margin: auto; }
.hero-intro { margin-bottom: clamp(30px, 6vh, 72px); }
.eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 800; color: #155566; }
.hero h1 { margin: 0; font-size: clamp(52px, 6vw, 90px); line-height: 1.08; font-weight: 850; }
.hero h1 span { color: #e15f39; }
.hero-subtitle { margin: 15px 0 0; font-size: clamp(19px, 2vw, 26px); font-weight: 650; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  min-height: 246px;
  padding: 24px 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid #155e69;
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 9px 0 rgba(13, 78, 89, .18);
}
.service-api { background: rgba(255, 251, 225, .95); border-color: #ae7644; }
.service-topline { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; color: #3c7780; }
.service-topline span:first-child { color: #e36b45; }
.service h2 { margin: 0 0 7px; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.2; }
.service p { margin: 0; color: #466d73; font-size: 14px; line-height: 1.5; }
.service-action {
  width: fit-content;
  min-width: 172px;
  min-height: 44px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 2px solid #155e69;
  border-radius: 5px;
  background: #c2f5ed;
  font-size: 14px;
  font-weight: 800;
  transition: background .2s, transform .2s;
}
.service-action:hover { background: #ffe36b; transform: translateY(-2px); }
.service-api .service-action { border-color: #ae7644; background: #ffe9ae; }
.service-api .service-action:hover { background: #ffe36b; }
.service-action span { font-size: 19px; font-weight: 500; }
.site-footer { padding: 10px clamp(20px, 5vw, 76px) 15px; font-size: 12px; font-weight: 650; color: #215960; }

@media (max-width: 700px) {
  .site-header { min-height: 60px; padding-block: 8px; }
  .wordmark { font-size: 17px; }
  .wordmark-symbol { width: 30px; height: 30px; font-size: 17px; }
  .site-header nav { font-size: 12px; }
  .site-header nav span { display: none; }
  .hero { align-items: flex-start; padding-top: clamp(23px, 5vh, 48px); padding-bottom: 12px; }
  .hero-intro { margin-bottom: clamp(24px, 4vh, 38px); }
  .eyebrow { font-size: 13px; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(38px, 10vw, 58px); }
  .hero-subtitle { font-size: 17px; margin-top: 10px; }
  .services { grid-template-columns: 1fr; gap: 12px; }
  .service { min-height: 174px; padding: 14px 18px; gap: 6px; }
  .service h2 { font-size: 23px; margin-bottom: 4px; }
  .service p { font-size: 12px; }
  .service-action { min-height: 35px; }
  .service-action { font-size: 12px; min-width: 153px; }
  .site-shell::before { background-position: 47% top; }
  .site-shell::after { background: rgba(215, 250, 242, .74); }
  .site-footer { padding-bottom: 8px; }
}

@media (max-width: 360px), (max-height: 640px) and (max-width: 700px) {
  .hero { padding-top: 12px; }
  .hero-intro { margin-bottom: 14px; }
  .eyebrow { margin-bottom: 5px; }
  .hero-subtitle { margin-top: 5px; }
  .service { min-height: 147px; padding: 10px 14px; }
  .service h2 { font-size: 21px; }
  .service p { display: none; }
  .site-footer { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-action { transition: none; }
}
