/* agum.com — grey page, W95FA, early-web layout */

@font-face {
  font-family: "Fixedsys Excelsior";
  src: url("/fonts/fsex300-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "W95FA";
  src: url("/fonts/w95f.woff2") format("woff2"),
       url("/fonts/w95f.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #c0c0c0;
  --ink: #000000;
  --muted: #404040;
  --rule: #808080;
  --paper: #ffffff;
  --link: #000080;
  --win-dark: #404040;
  --link-hover: #0000ee;
  --online: #008000;
  --away: #808000;
  --offline: #808080;
  --font: "W95FA", "Microsoft Sans Serif", "MS Sans Serif", Tahoma, Verdana, Geneva, sans-serif;
  --font-title: "Times New Roman", Times, serif;
  --mono: "Fixedsys Excelsior", "Fixedsys", "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
  font-weight: normal;
  font-synthesis: none;
  min-height: 100vh;
}

strong,
b,
th {
  font-weight: normal;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: transparent;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  text-decoration: none;
  font-size: 23px;
  font-weight: normal;
  letter-spacing: -0.02em;
}

.wordmark img {
  width: 36px;
  height: auto;
  display: block;
}

.wordmark:hover {
  color: var(--link);
}

.brand-tag {
  color: var(--muted);
  font-family: var(--font-title);
  font-size: 15px;
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1;
}

.site-nav a {
  color: var(--ink);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 36px;
  padding: 48px 0 40px;
  text-align: left;
}

.hero-intro {
  min-width: 0;
}

.hero-mark {
  display: block;
  width: 200px;
  height: auto;
  margin-bottom: 18px;
}

.hero-logo {
  margin: 0;
}

.hero-logo img {
  display: block;
  height: 96px;
  width: auto;
}

.hero-tagline {
  margin: 14px 0 0;
  max-width: 22em;
  font-size: 20px;
  color: var(--muted);
}

.hero-download {
  margin-top: 22px;
}

.hero-offer .file-size {
  margin: 10px 0 0;
}

.hero-alt {
  margin: 8px 0 0;
  font-size: 15px;
}

.btn {
  display: inline-block;
  padding: 6px 16px;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid;
  border-color: #ffffff var(--win-dark) var(--win-dark) #ffffff;
  border-radius: 1px;
  box-shadow: 1px 1px 0 #000000;
  cursor: pointer;
}

.btn:hover {
  color: var(--ink);
  background: #d4d4d4;
}

.btn:active {
  border-color: var(--win-dark) #ffffff #ffffff var(--win-dark);
  box-shadow: none;
  padding: 7px 15px 5px 17px;
}

.btn-primary {
  outline: 1px solid #000000;
  outline-offset: 1px;
}

.btn-primary:hover {
  color: var(--ink);
  background: #d4d4d4;
}

.btn:disabled,
.btn-disabled {
  color: var(--rule);
  cursor: not-allowed;
  outline: none;
}

.btn-disabled:hover {
  background: var(--bg);
  color: var(--rule);
}

.section {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}

.section h2,
.section-title {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: normal;
  font-family: var(--font-title);
}

.section p,
.prose p,
.spec-content p,
.legal-content p {
  margin: 0 0 12px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.feature-list li {
  padding: 5px 0 5px 18px;
  position: relative;
}

.feature-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.hero-shot {
  margin: 0;
}

.fade-stack {
  position: relative;
  border: 1px solid #808080;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 1px 1px 0 #404040;
}

.fade-portrait {
  aspect-ratio: 672 / 1376;
}

.fade-wide {
  aspect-ratio: 1912 / 1376;
}

.fade-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-stack img.is-front {
  opacity: 1;
}

.win-slider {
  margin-top: 14px;
  user-select: none;
  touch-action: none;
}

.win-slider-caption {
  font-size: 14px;
  margin-bottom: 4px;
}

.win-slider-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
}

.win-slider-labels button {
  font-family: var(--font);
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}

.win-slider-track {
  position: relative;
  height: 40px;
  cursor: pointer;
}

.win-slider-track:focus {
  outline: 1px dotted #000;
  outline-offset: 2px;
}

.win-slider-groove {
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 50%;
  height: 4px;
  margin-top: 2px;
  border: 2px solid;
  border-color: var(--win-dark) #ffffff #ffffff var(--win-dark);
  background: var(--bg);
}

.win-slider-groove::before,
.win-slider-groove::after,
.win-slider-track::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 1px;
  height: 7px;
  background: #000;
}

.win-slider-groove::before { left: -1px; }
.win-slider-groove::after { right: -1px; }
.win-slider-track::before {
  left: 50%;
  top: 12px;
}

.win-slider-thumb {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 18px;
  height: 28px;
  transform: translateX(-50%);
  background: var(--bg);
  border: 2px solid;
  border-color: #ffffff var(--win-dark) var(--win-dark) #ffffff;
  box-shadow: 1px 1px 0 #000;
  border-radius: 1px;
  cursor: grab;
}

.win-slider-track:active .win-slider-thumb {
  cursor: grabbing;
}

.app-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.app-preview .win-slider {
  margin-top: 0;
}

.diagram {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  margin: 16px 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.35;
  white-space: pre;
  overflow-x: auto;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0 8px;
}

.download-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 0;
}

.download-item .req {
  flex: 1 1 auto;
}

.download-item h3,
.download-item h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: normal;
}

.download-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.download-item p.req {
  margin: 0 0 12px;
}

.download-item p.file-size {
  margin: 4px 0 0;
  font-size: 14px;
}

.verified {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.verified h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: normal;
}

.verified p {
  margin: 0;
  color: var(--muted);
}

.file-size {
  color: var(--muted);
}

.note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 16px;
}

.callout {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 15px;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  font-weight: normal;
  text-decoration: underline;
}

.callout p {
  margin: 0;
}

.callout.warn {
  background: #e8e8c8;
}

.callout.compact {
  font-size: 15px;
}

.price {
  font-size: 32px;
  margin: 4px 0 8px;
}

.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: baseline;
}

.footer-tagline {
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-copyright {
  width: 100%;
  margin-top: 8px;
}

/* Spec and legal pages */
.prose h1,
.spec-content h1,
.legal-content h1 {
  margin: 28px 0 12px;
  font-size: 32px;
  font-weight: normal;
}

.spec-content h1,
.spec-content h2,
.legal-content h1 {
  font-family: var(--font-title);
}

.spec-content,
.legal-content {
  font-size: 15px;
}

.prose h2,
.spec-content h2,
.legal-content h2 {
  margin: 28px 0 8px;
  font-size: 23px;
  font-weight: normal;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
}

.prose h3,
.spec-content h3,
.legal-content h3 {
  margin: 20px 0 6px;
  font-size: 18px;
  font-weight: normal;
}

.prose pre,
.spec-content pre,
.legal-content pre {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.4;
}

.prose pre code,
.spec-content pre code,
.legal-content pre code {
  background: none;
  padding: 0;
}

.prose table,
.spec-content table,
.legal-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 16px;
  background: var(--paper);
}

.spec-content table {
  font-size: 15px;
}

.prose th,
.prose td,
.spec-content th,
.spec-content td,
.legal-content th,
.legal-content td {
  border: 1px solid var(--rule);
  padding: 6px 10px;
  text-align: left;
}

.prose th,
.spec-content th,
.legal-content th {
  font-weight: normal;
  background: #d4d4d4;
}

.prose blockquote,
.spec-content blockquote,
.legal-content blockquote {
  margin: 12px 0;
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

.prose hr,
.spec-content hr,
.legal-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 24px 0;
}

.prose ul,
.prose ol,
.spec-content ul,
.spec-content ol,
.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.prose li,
.spec-content li,
.legal-content li {
  margin: 4px 0;
}

.spec-toc {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 16px;
  margin: 16px 0 8px;
}

.spec-toc h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: normal;
}

.spec-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-toc li {
  margin: 3px 0;
}

.spec-toc a {
  text-decoration: none;
  font-size: 15px;
}

.spec-toc a:hover {
  text-decoration: underline;
}

.spec-toc .toc-level-2 {
  padding-left: 14px;
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 28px;
    padding-top: 32px;
  }

  .hero-shot {
    width: min(250px, 100%);
  }

  .hero-mark {
    width: 160px;
  }

  .hero-logo img {
    height: 68px;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-stack img {
    transition: none;
  }
}
