:root {
  color-scheme: light;
  font-family: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #17181b;
  background: #f1eee5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(23, 24, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 27, 0.035) 1px, transparent 1px), #f1eee5;
  background-size: 48px 48px;
}

main {
  width: min(100% - 56px, 1100px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) 0 72px;
}

.page-header {
  padding-bottom: clamp(28px, 5vw, 46px);
  border-bottom: 1px solid rgba(23, 24, 27, 0.16);
}

.page-header p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #8b7cff;
  font: 500 0.7rem "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-header p::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7f36b;
  box-shadow: 0 0 12px rgba(199, 243, 107, 0.7);
  content: "";
}

.page-header h1 {
  max-width: 850px;
  margin: 0;
  font: 500 clamp(2.8rem, 7vw, 6.2rem)/0.9 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}

.page-header h1 em {
  color: #8b7cff;
  font-style: normal;
}

.service-context {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
  color: #5c5a62;
  font-size: 0.94rem;
}

.service-context a {
  color: #17181b;
  font: 600 0.76rem "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-decoration-color: #8b7cff;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.service-context a:hover {
  color: #5d4cf0;
}

.card-preview {
  margin-top: clamp(28px, 5vw, 48px);
}

.card-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(23, 24, 27, 0.18);
  border-radius: 8px;
  background: #212227;
  box-shadow:
    0 2px 3px rgba(23, 24, 27, 0.08),
    0 26px 56px rgba(23, 24, 27, 0.16);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(23, 24, 27, 0.2);
  border-radius: 8px;
  color: #17181b;
  background: #faf9f5;
  font: 600 0.67rem "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

nav a:hover {
  border-color: #8b7cff;
  background: rgba(139, 124, 255, 0.1);
}

nav a.primary {
  border-color: #c7f36b;
  color: #17181b;
  background: #c7f36b;
}

nav a.primary:hover {
  border-color: #ddff98;
  background: #ddff98;
}

a:focus-visible {
  outline: 3px solid #c7f36b;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  main {
    width: min(100% - 28px, 1100px);
    padding-bottom: 42px;
  }

  .service-context {
    display: block;
    line-height: 1.6;
  }

  .service-context a {
    display: inline;
    margin-left: 4px;
  }

  nav a {
    width: 100%;
    justify-content: center;
  }
}
