/* 1970s Calculator: shared styles. System fonts only, no external requests. */

:root {
  --bg: #f3f1ec;
  --card: #fbfaf7;
  --ink: #1c1b19;
  --muted: #5d5850;
  --rule: #ddd8ce;
  --accent: #1f5fbf;      /* the app's blue */
  --key: #c8612c;         /* the icon's orange key */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --card: #211f1c;
    --ink: #edeae3;
    --muted: #a8a197;
    --rule: #3a3631;
    --accent: #7fb0ff;
    --key: #e07a43;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* Header and navigation */
.site-header { padding: 20px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 32px 0 8px; }
.hero img { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
h1 { font-size: 2rem; line-height: 1.2; margin: 20px 0 8px; letter-spacing: -0.01em; }
.tagline { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
}
.button:hover { opacity: 0.88; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

main { padding-bottom: 32px; }

h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
h3 { font-size: 1.05rem; margin: 24px 0 6px; }

ul.features { padding-left: 0; list-style: none; }
ul.features li { position: relative; padding-left: 22px; margin: 0 0 10px; }
ul.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--key);
}

/* Calculator list */
ol.machines { list-style: none; padding: 0; margin: 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); overflow: hidden; }
ol.machines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--rule); }
ol.machines li:first-child { border-top: 0; }
ol.machines .name { font-weight: 600; }
ol.machines .meta { color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.free { font-size: 0.75rem; font-weight: 600; color: var(--key); text-transform: uppercase; letter-spacing: 0.04em; margin-left: 6px; }

.contact {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
}

.small { font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 20px 0 40px; font-size: 0.85rem; color: var(--muted); }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--muted); }

.contact h2 { border: 0; margin: 0 0 6px; padding: 0; }
.contact p { margin: 0; }
