/* oldpathssoftware.com. Built into the site by website/build.py, which fills in the font addresses. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-opsz-normal.woff2?v=f2ea9c12d2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-opsz-italic.woff2?v=96e6393209") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1d2621;
  --muted: #5b6159;
  --forest: #1f4a35;
  --forest-dark: #163828;
  --forest-mid: #2c6548;
  --leaf: #3b7d59;
  --gold: #b97a1f;
  --sun: #e3a845;
  --paper: #fffdf8;
  --parchment: #f6f0e4;
  --sand: #efe6d4;
  --line: #e2d8c4;
  --cream: #f4e6c8;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(29, 38, 33, 0.06), 0 10px 28px rgba(29, 38, 33, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--parchment);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--forest-mid); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 20;
  background: var(--forest); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 240, 228, 0.93);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 12px 28px; min-height: 70px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-weight: 650; font-size: 21px; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name span { font-weight: 400; color: var(--muted); }
.nav > nav { margin-left: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 550; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest-mid); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--forest); }
.btn-sm { padding: 9px 16px; font-size: 15px; }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 0; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero-apps { display: grid; grid-template-columns: repeat(3, 96px); gap: 20px; transform: rotate(-5deg); margin-right: 12px; }
.hero-apps img { width: 96px; height: 96px; filter: drop-shadow(0 3px 3px rgba(29, 38, 33, 0.10)) drop-shadow(0 12px 18px rgba(29, 38, 33, 0.14)); }
.hero-apps img:nth-child(3n + 2) { transform: translateY(26px); }
.eyebrow {
  margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.hero h1 { font-size: clamp(42px, 6.4vw, 70px); font-weight: 650; line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 22px; max-width: 840px; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: #33403a; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.landscape { width: 100%; height: auto; margin-top: 40px; }

/* Verse band */
.verse { background: var(--forest); color: #f4ecdc; padding: 56px 0; }
.verse blockquote { margin: 0 auto; max-width: 880px; text-align: center; }
.verse blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.45; margin: 0 0 16px; color: #fbf6ec;
}
.verse .cite { font-family: var(--sans); font-style: normal; font-size: 15px; letter-spacing: 0.04em; color: #d9cba9; margin: 0; }
.verse .cite a { color: #f0d79c; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(30px, 3.6vw, 42px); font-weight: 650; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 18px; max-width: 700px; margin-bottom: 36px; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.app {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.app-head { display: flex; align-items: center; gap: 16px; }
.app-head img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.app h3 { margin: 0; font-size: 25px; font-weight: 650; }
.app .instead { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }
.app > p { margin: 0; }
.app .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.app .soon { font-size: 14.5px; color: var(--muted); align-self: center; }
.more { margin: 30px 0 0; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 19px; }

/* Traits */
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px 34px; }
.trait h3 { font-size: 22px; margin: 14px 0 6px; }
.trait p { margin: 0; color: #3a463f; }
.trait .ic {
  display: inline-flex; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--forest); color: var(--cream);
}
.trait .ic svg { width: 24px; height: 24px; }

/* Inner pages */
.page-hero { padding: 64px 0 34px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 650; margin: 0 0 12px; letter-spacing: -0.02em; }
.page-hero .lede { margin: 0; }
.content { padding: 0 0 88px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow);
}
.prose { max-width: 780px; }
.prose h2 { font-size: 27px; font-weight: 650; margin: 1.6em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose blockquote {
  margin: 1.2em 0; padding: 18px 24px; border-left: 4px solid var(--sun); background: var(--parchment); border-radius: 0 12px 12px 0;
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5;
}
.prose blockquote p { margin: 0 0 8px; }
.prose blockquote .cite { font-family: var(--sans); font-style: normal; font-size: 15px; color: var(--muted); margin: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.side h2 { font-size: 23px; margin: 0 0 10px; }
.side ul { padding-left: 1.1em; margin: 0; }
.side li { margin: 0.45em 0; }

/* Contact form */
.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.field label .hint { margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: 17px/1.5 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #cfc3aa; border-radius: 11px; padding: 11px 13px;
}
.field textarea { resize: vertical; min-height: 170px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(227, 168, 69, 0.55); outline-offset: 1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.error { color: #b3261e; font-size: 15px; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-end p { margin: 0; }
.form-status { border-radius: 12px; padding: 13px 16px; margin: 4px 0 6px; }
.form-status p { margin: 0; }
.form-status.ok { background: #e6f1e8; border: 1px solid #a9cdb2; }
.form-status.bad { background: #fbeceb; border: 1px solid #e6b4b0; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #d9d2c1; padding: 60px 0 34px; }
.site-footer a { color: #f1e6cc; }
.site-footer a:hover { color: #fff; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
.foot .brand, .foot .brand:hover { color: #fbf6ec; }
.foot .brand-name span { color: #cbbf9f; }
.foot-brand p { margin: 14px 0 0; max-width: 340px; }
.site-footer h2 { font-family: var(--sans); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: #cbbf9f; margin: 6px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: #b9b19d; }
.legal p { margin: 0 0 8px; }

/* Not found */
.notfound { text-align: center; padding: 90px 0 110px; }
.notfound h1 { font-size: clamp(36px, 5vw, 54px); margin: 0 0 12px; }
.notfound .hero-actions { justify-content: center; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-apps { display: none; }
}
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .nav { min-height: 0; padding-top: 12px; padding-bottom: 12px; gap: 8px 18px; }
  .nav > nav { margin-left: 0; width: 100%; }
  .nav-links { gap: 22px; }
  .hero { padding-top: 54px; }
  .apps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
