:root {
  color-scheme: dark;
  --background: #0d111c;
  --surface: #151c2a;
  --border: #303a4d;
  --text: #f4f7fc;
  --muted: #b4bed0;
  --accent: #f27441;
  --highlight: #ffab88;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 68% 0%, #202538 0, var(--background) 46rem);
  color: var(--text);
  font: 1rem/1.6 system-ui, "Segoe UI", sans-serif;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--highlight); outline-offset: 5px; }
.wrap { width: min(calc(100% - 3rem), 68rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); background: var(--background); }
.site-header .wrap { display: flex; align-items: center; min-height: 5.25rem; }
.site-header a { display: block; border-radius: .2rem; }
.logo { display: block; width: 12.625rem; height: auto; }

main { padding-block: clamp(3rem, 9vw, 7.5rem) 4rem; }
.intro { margin-bottom: clamp(1.8rem, 5vw, 3.5rem); }
h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5.3vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.052em;
  font-weight: 720;
}
.intro p { margin: .85rem 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 16rem;
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.service:is(:hover, :focus-visible) { border-color: var(--accent); background: #1a2333; }
.service h2 { margin: 1.1rem 0 .35rem; font-size: 1.55rem; line-height: 1.25; letter-spacing: -.025em; }
.service p { margin: 0 0 1.4rem; color: var(--muted); }
.service-action { margin-top: auto; color: var(--highlight); font-weight: 650; }
.service:is(:hover, :focus-visible) .service-action { text-decoration: underline; text-underline-offset: .25em; }
.service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: #302831;
  border: 1px solid #624033;
  border-radius: .7rem;
  color: var(--accent);
}
.icon-folder, .icon-mail { position: relative; width: 1.35rem; height: .95rem; border: 2px solid; border-radius: .16rem; }
.icon-folder::before {
  content: "";
  position: absolute;
  inset: -.37rem auto auto -2px;
  width: .57rem;
  height: .28rem;
  border: 2px solid;
  border-bottom: 0;
  border-radius: .16rem .16rem 0 0;
}
.icon-mail { overflow: hidden; }
.icon-mail::after {
  content: "";
  position: absolute;
  left: .12rem;
  top: -.48rem;
  width: .77rem;
  height: .77rem;
  border: solid;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.icon-grid {
  width: .44rem;
  height: .44rem;
  margin: -.64rem .64rem 0 0;
  background: currentColor;
  border-radius: .09rem;
  box-shadow: .64rem 0, 0 .64rem, .64rem .64rem;
}

@media (max-width: 47rem) {
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
}
@media (max-width: 30rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header .wrap { min-height: 4.5rem; }
  .logo { width: 11rem; }
}
@media (prefers-reduced-motion: reduce) {
  .service { transition: none; }
}
