/* Shared GitSync.md design system: foundation, navigation, downloads, footer. */
:root {
  --paper: #fff;
  --ink: #050505;
  --surface: #f2f2ef;
  --muted: #565656;
  --blue: #007aff;
  --line: #050505;
  --mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--blue); color: #fff; }
a { color: inherit; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.icon { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { max-width: 1440px; margin-inline: auto; padding-inline: 64px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; background: var(--ink); color: #fff; padding: 16px; font-family: var(--mono); }
.skip-link:focus { top: 12px; }
.site-header { background: var(--paper); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 20; }
.navigation { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 0; font: 800 21px/1 var(--mono); letter-spacing: -.9px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: block; flex-shrink: 0; overflow: hidden; border-radius: 7px; margin-right: 12px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-extension { color: var(--muted); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font: 500 12px/1.5 var(--mono); text-decoration: none; }
.nav-links a:hover, .footer-links a:hover { color: #005bc2; }
.nav-links a[aria-current="page"], .footer-links a[aria-current="page"] { color: #005bc2; text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 16px 22px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 700 12px/1.3 var(--mono); text-decoration: none; transition: background .15s, border-color .15s; }
.button:hover { background: #005bc2; border-color: #005bc2; }
.button-small { min-height: 43px; padding: 10px 16px; font-size: 11px; gap: 22px; }
.button-small .icon { width: 18px; height: 18px; }
.text-link { display: inline-flex; gap: 16px; align-items: center; font: 600 12px/1.5 var(--mono); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.eyebrow { font: 600 11px/1.5 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.blue-square { width: 8px; height: 8px; display: inline-block; flex-shrink: 0; background: var(--blue); }
.blue-text { color: var(--blue); }
.small-meta { font: 400 10px/1.5 var(--mono); color: var(--muted); }

.purchase-note { font: 400 10px/1.6 var(--mono); color: var(--muted); margin-top: 14px; }
.purchase-note > span { display: block; }
.store-links { --badge-height: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: block; position: relative; flex-shrink: 0; height: var(--badge-height); border-radius: 8px; overflow: hidden; transition: opacity .15s; }
.store-badge:hover { opacity: .8; }
.store-badge-apple { width: calc(var(--badge-height) * 2.9916); }
.store-badge-apple img { width: 100%; height: 100%; }
.store-badge-google { width: calc(var(--badge-height) * 3.375); }
.store-badge-google img { position: absolute; width: calc(var(--badge-height) * 3.875); max-width: none; height: auto; top: calc(var(--badge-height) * -.25); left: calc(var(--badge-height) * -.25); }

.site-footer { padding-block: 35px; }
.footer-layout { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.site-footer .brand { font-size: 16px; }
.site-footer .brand-mark { width: 28px; height: 28px; border-radius: 6px; margin-right: 8px; }
.site-footer p { font: 400 9px/1.8 var(--mono); color: var(--muted); }
.site-footer p a { text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 23px; }
.footer-links a { text-decoration: none; font: 500 10px/1.5 var(--mono); }
.back-top { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); font: 400 22px/1 var(--mono); text-decoration: none; }
.back-top:hover { background: var(--ink); color: #fff; }

@media (max-width: 1150px) {
  .shell { padding-inline: 40px; }
}

@media (max-width: 900px) {
  .shell { padding-inline: 28px; }
  .navigation { min-height: 76px; }
  .nav-links { gap: 17px; }
  .nav-links a { font-size: 10px; }
  .brand { font-size: 18px; }
  .store-links { --badge-height: 40px; gap: 10px; }
  .purchase-note { font-size: 9px; }
  .footer-layout { flex-wrap: wrap; }
  .footer-links { gap: 17px; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 85px; }
  .shell { padding-inline: 22px; }
  .navigation { min-height: 70px; gap: 14px; }
  .nav-links { display: none; }
  .brand { font-size: 17px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 6px; margin-right: 8px; }
  .button-small { min-height: 38px; padding: 9px 11px; gap: 12px; font-size: 10px; }
  .button-small .icon { width: 16px; height: 16px; }
  .store-links { --badge-height: 48px; gap: 12px; }
  .purchase-note { margin-top: 13px; font-size: 9px; }
  .site-footer { padding-block: 27px; }
  .site-footer .brand-mark { width: 24px; height: 24px; border-radius: 5px; }
  .footer-layout { display: grid; grid-template-columns: 1fr auto; gap: 23px; }
  .footer-layout .brand { grid-column: 1; }
  .footer-layout p { grid-column: 1; }
  .footer-links { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; }
  .back-top { grid-column: 2; grid-row: 1; }
}

@media (max-width: 360px) {
  .store-links { --badge-height: 40px; gap: 10px; }
}

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