/* Shared styles for Ticking Along content pages (the landing page is self-contained). */
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format("woff2");
}

:root {
  --paper: #FAF7F0;
  --paper-raise: #FFFDF8;
  --ink: #1A1D1B;
  --muted: #6A7670;
  --forest: #2F6B4F;
  --forest-deep: #275C44;
  --live: #3DD68C;
  --hairline: #E6E1D6;
  --shadow: 0 18px 50px rgba(26, 29, 27, 0.10), 0 2px 8px rgba(26, 29, 27, 0.06);
  --display: "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #221F1B; --paper-raise: #2C2823; --ink: #EDEAE1; --muted: #A5A094;
    --forest: #4A8266; --forest-deep: #578F72; --hairline: #383228;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="light"] {
  --paper: #FAF7F0; --paper-raise: #FFFDF8; --ink: #1A1D1B; --muted: #6A7670;
  --forest: #2F6B4F; --forest-deep: #275C44; --hairline: #E6E1D6;
  --shadow: 0 18px 50px rgba(26, 29, 27, 0.10), 0 2px 8px rgba(26, 29, 27, 0.06);
}
:root[data-theme="dark"] {
  --paper: #221F1B; --paper-raise: #2C2823; --ink: #EDEAE1; --muted: #A5A094;
  --forest: #4A8266; --forest-deep: #578F72; --hairline: #383228;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
a { color: var(--forest); }

.shell { max-width: 720px; margin: 0 auto; padding: 0 28px; }
.shell.wide { max-width: 1060px; }

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 22px;
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.wordmark svg { display: block; }
.wordmark-text {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em;
  white-space: nowrap;
}
.tittle { position: relative; }
.tittle::before {
  content: "";
  position: absolute; left: 50%; top: 0.06em;
  width: 0.17em; height: 0.17em; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--live);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  nav { padding: 18px 0 14px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 13.5px; }
  .nav-links .btn { padding: 8px 14px; font-size: 13.5px; }
  .wordmark { gap: 9px; }
  .wordmark-text { font-size: 18px; }
  .wordmark svg { width: 27px; height: 27px; }
}
@media (max-width: 400px) {
  .nav-links a[href="/changelog"], .nav-links a[href="/articles"] { display: none; }
}
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a.btn, .nav-links a.btn:hover, .nav-links a.btn:focus-visible { color: #FFFDF8; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--forest); color: #FFFDF8;
  border: none; border-radius: 999px; cursor: pointer;
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  text-decoration: none; font-family: var(--display);
  transition: background 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; }

main { padding: 34px 0 60px; }
.eyebrow {
  font-family: var(--display);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.lede { font-size: 19px; color: var(--muted); margin: 0 0 34px; text-wrap: balance; }
h2 {
  font-family: var(--display); font-weight: 650;
  font-size: 26px; letter-spacing: -0.015em; line-height: 1.15;
  margin: 44px 0 12px;
}
h3 {
  font-family: var(--display); font-weight: 650;
  font-size: 19px; letter-spacing: -0.01em;
  margin: 30px 0 8px;
}
p, li { color: var(--ink); }
li { margin-bottom: 8px; }
.note {
  background: var(--paper-raise);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 15.5px;
}
.note b { font-family: var(--display); }
hr { border: none; border-top: 1px solid var(--hairline); margin: 40px 0; }
.updated { color: var(--muted); font-size: 14px; }

/* article listing cards */
.cardlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.cardlist a {
  display: block; text-decoration: none;
  background: var(--paper-raise);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 26px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s;
}
.cardlist a:hover { transform: translateY(-2px); border-color: var(--muted); }
.cardlist h2 { margin: 0 0 6px; font-size: 21px; color: var(--ink); }
.cardlist p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* changelog */
.logentry { display: grid; grid-template-columns: 110px 1fr; gap: 18px; margin-bottom: 30px; }
.logentry .when { color: var(--muted); font-size: 14px; padding-top: 3px; white-space: nowrap; }
.logentry h2 { margin: 0 0 6px; font-size: 20px; }
.logentry p, .logentry li { font-size: 15.5px; }
@media (max-width: 540px) { .logentry { grid-template-columns: 1fr; gap: 4px; } }

footer { padding: 30px 0 40px; border-top: 1px solid var(--hairline); margin-top: 30px; }
.foot-links {
  display: flex; justify-content: center; gap: 14px 28px; flex-wrap: wrap;
  font-size: 14px;
}
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* comparison table - scrolls inside its own box so the page never does */
.tablewrap { overflow-x: auto; margin: 26px 0; }
.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 15px;
}
.compare th, .compare td {
  border-bottom: 1px solid var(--hairline);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  font-family: var(--display);
  font-weight: 600;
  border-bottom: 2px solid var(--hairline);
  white-space: nowrap;
}
.compare tbody th { font-weight: 600; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: none; }
.compare .yes { color: var(--forest); font-weight: 600; }
.compare .no { color: var(--muted); }
/* On a phone only the first columns fit, so say so - a table you can't tell
   scrolls just looks truncated. */
.scrollhint { display: none; }
@media (max-width: 640px) {
  .scrollhint {
    display: block;
    color: var(--muted);
    font-size: 13.5px;
    margin: -16px 0 26px;
  }
}
.compare caption {
  caption-side: bottom;
  color: var(--muted);
  font-size: 13.5px;
  text-align: left;
  padding-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .cardlist a { transition: none; }
}
