:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #121311;
  color: #edece6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --canvas: #121311;
  --surface: #191a17;
  --surface-raised: #1e1f1b;
  --line: #32332d;
  --text: #edece6;
  --muted: #999a91;
  --quiet: #6f7069;
  --accent: #c8a576;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
}

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

.page-shell {
  width: min(100% - 80px, 1160px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
}

.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.brand-mark svg { width: 28px; height: 28px; }

.local-link {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3b3c35;
  color: #d0d0c8;
  font-size: 11px;
  transition: background-color .16s ease, border-color .16s ease;
}

.local-link:hover, .local-link:focus-visible {
  outline: none;
  border-color: #6e6e62;
  background: var(--surface-raised);
}

.local-link svg { width: 17px; height: 17px; color: var(--accent); }
.local-arrow { color: var(--muted); font-size: 14px; }

main { flex: 1; }

.intro {
  position: relative;
  padding: 70px 0 39px;
}

.intro-rule {
  width: 32px;
  height: 2px;
  margin-bottom: 19px;
  background: var(--accent);
}

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.6vw, 64px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.services {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  gap: 14px;
  padding-bottom: 56px;
}

.service {
  min-height: 360px;
  position: relative;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .16s ease, background-color .16s ease;
}

.service:hover, .service:focus-visible {
  outline: none;
  border-color: #68685e;
  background: var(--surface-raised);
}

.service-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-number {
  color: var(--accent);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.service-name {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}

.service-bottom {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

h2 {
  margin: 0 0 7px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -.025em;
}

.service-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.service-action {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #45463f;
  color: #e4e2db;
  font-size: 11px;
  white-space: nowrap;
  transition: border-color .16s ease, color .16s ease;
}

.service-action span { color: var(--accent); font-size: 14px; }
.service:hover .service-action { border-color: #77766b; }

.library-mark {
  position: absolute;
  top: 65px;
  right: 28px;
  width: 45%;
  height: 194px;
  border: 1px solid #3d3d36;
  background-color: #171815;
  background-image: linear-gradient(#282923 1px, transparent 1px), linear-gradient(90deg, #282923 1px, transparent 1px);
  background-size: 24px 24px;
}

.screen-frame {
  position: absolute;
  inset: 18px 20px;
  display: grid;
  place-items: center;
  border: 1px solid #55544b;
}

.screen-play {
  width: 46px;
  height: 46px;
  display: block;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
}

.screen-play::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 17px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid var(--accent);
}

.screen-line {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: #515047;
}

.screen-line.short { bottom: -16px; right: 32%; left: 32%; background: #3b3b35; }

.download-mark {
  position: absolute;
  top: 72px;
  right: 28px;
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  border: 1px solid #45463e;
  color: var(--accent);
}

.download-mark::before, .download-mark::after {
  content: "";
  position: absolute;
  background: #393a34;
}

.download-mark::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.download-mark::after { top: 50%; right: 0; left: 0; height: 1px; }
.download-mark svg { z-index: 1; width: 46px; height: 46px; background: var(--surface); }

.footer {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 740px) {
  .page-shell { width: min(100% - 40px, 560px); }
  .topbar { min-height: 68px; }
  .intro { padding: 55px 0 30px; }
  .services { grid-template-columns: 1fr; gap: 10px; padding-bottom: 36px; }
  .service { min-height: 310px; padding: 18px; }
  .service-bottom { right: 18px; bottom: 18px; left: 18px; }
  .library-mark { top: 54px; right: 22px; width: 48%; height: 164px; }
  .download-mark { top: 54px; right: 22px; width: 88px; height: 88px; }
}

@media (max-width: 400px) {
  .page-shell { width: min(100% - 32px, 560px); }
  .local-link { min-height: 36px; padding: 0 9px; font-size: 10px; }
  .service { min-height: 286px; }
  .library-mark { width: 45%; height: 140px; }
  .service-action { min-height: 35px; padding: 0 9px; }
  h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
