/* Atentli story: riverbank survey notebook layout with sage-teal water accent and subtle rust caution line.
   Chromium 67 safe (no clamp, min, max, flex gap, inset, padding-inline, aspect-ratio, or gradient text). */
@font-face {
  font-family: 'AT UI';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'AT Display';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}
body.page-atentli {
  --accent: #7FB3AC;
  --accent-ink: #081A18;
  --accent-soft: rgba(127, 179, 172, .13);
  --bg: #0A0D14;
  --surface: #121726;
  --raised: #1A2033;
  --text: #EEF1F7;
  --text-2: #A7B0C3;
  --muted: #8089A0;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.15);
  --bar: rgba(10, 13, 20, 0.92);
  --live: #34D399;
  --live-soft: rgba(52, 211, 153, 0.14);
  --at-rust: #E07D63;
  --at-rust-soft: rgba(224, 125, 99, 0.10);
  --head: 'AT Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'AT UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Frame and reading column */
.page-atentli main { padding-bottom: 48px; }
.page-atentli main .wrap { max-width: 830px; }
.page-atentli main > .wrap:first-child { padding-top: 40px; }
.page-atentli .crumb { margin: 0 0 26px; font-size: 14px; }
.page-atentli .crumb a { color: var(--muted); text-decoration: none; }
.page-atentli .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-atentli .crumb a:hover { color: var(--accent); }
.page-atentli .story-app { margin-bottom: 36px; }
.page-atentli main strong { color: var(--text); font-weight: 600; }
.at-link,
.page-atentli .at-end a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.at-link:hover,
.page-atentli .at-end a:not(.btn):hover { color: var(--accent); }

/* Hero and survey strip */
.at-hero { padding: 0 0 34px; border-bottom: 1px solid var(--hair-2); }
.at-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.at-hero h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.14; }
.at-lead { margin: 0 0 24px; font-size: 18px; line-height: 1.62; color: var(--text-2); }
.at-strip {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 12px;
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
}
.at-strip-item { min-width: 0; }
.at-strip dt { margin: 0 0 3px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.at-strip dd { margin: 0; font: 600 15px/1.4 var(--head); color: var(--text); }

/* Sections and typography */
.at-band { padding-top: 40px; }
.at-h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.24; }
.at-h3 { margin: 28px 0 12px; font-size: 19px; line-height: 1.3; color: var(--text); }
.at-p { margin: 0 0 18px; color: var(--text-2); }
.at-p:last-child { margin-bottom: 0; }

/* Blockquote */
.at-quote {
  margin: 22px 0 24px;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.at-quote p { margin: 0 0 8px; font-size: 17px; line-height: 1.58; color: var(--text); }
.at-quote cite { font-size: 14px; font-style: normal; color: var(--muted); }

/* River-rail ordered methods */
.at-methods {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--hair-2);
  counter-reset: atstep;
}
.at-methods li {
  position: relative;
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
  color: var(--text-2);
  counter-increment: atstep;
}
.at-methods li:last-child { margin-bottom: 0; }
.at-methods li:before {
  content: counter(atstep);
  position: absolute;
  left: -31px;
  top: 15px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 13px/24px var(--head);
  text-align: center;
}

/* Worked rate table */
.at-table-wrap {
  margin: 16px 0 22px;
  border: 1px solid var(--hair-2);
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
}
.at-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.at-table caption { padding: 12px 16px; text-align: left; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--hair); }
.at-table th,
.at-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--hair); }
.at-table th { font-weight: 600; color: var(--text); background: var(--accent-soft); }
.at-table td { color: var(--text-2); }
.at-table tbody tr:last-child td,
.at-table tbody tr:last-child th { border-bottom: 0; }
.at-table td:last-child,
.at-table thead th:last-child { text-align: right; }

/* Caution note */
.at-note {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: var(--at-rust-soft);
  border: 1px solid var(--hair-2);
  border-left: 3px solid var(--at-rust);
  border-radius: 8px;
  color: var(--text-2);
}

/* Three-pillar cards */
.at-pillars {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 14px;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}
.at-pillars li {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--accent);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.58;
}
.at-pillars strong { display: block; margin-bottom: 6px; font-family: var(--head); font-size: 16px; }

/* Phone screenshots */
.at-shot-one { margin: 26px auto; max-width: 280px; text-align: center; }
.at-shot-pair {
  margin: 26px auto;
  max-width: 610px;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 26px;
}
.at-shot-pair figure { margin: 0 auto; max-width: 280px; min-width: 0; text-align: center; }
.at-shot-one img,
.at-shot-pair img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--hair-2);
}
.at-shot-one figcaption,
.at-shot-pair figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: left; }

/* Bullet lists (refusals and honest limits) */
.at-rules,
.at-honest ul { list-style: none; margin: 12px 0 20px; padding: 0; }
.at-rules li,
.at-honest li { position: relative; margin: 0 0 12px; padding-left: 24px; color: var(--text-2); }
.at-rules li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.at-honest {
  margin-top: 26px;
  padding: 22px 20px 14px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-top: 3px solid var(--at-rust);
  border-radius: 12px;
}
.at-honest .at-h2 { font-size: 22px; }
.at-honest li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .58em;
  width: 8px;
  height: 2px;
  background: var(--at-rust);
}

/* Closing actions */
.at-end { margin: 36px 0 0; }
.at-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-atentli .at-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

@media (max-width: 600px) {
  .at-table { min-width: 0; font-size: 14px; }
  .at-table caption { padding: 10px 12px; }
  .at-table th,
  .at-table td { padding: 9px 10px; }
  .at-table tbody th,
  .at-table td:first-child { white-space: nowrap; }
}
@media (min-width: 680px) {
  .at-strip { grid-template-columns: 1fr 1fr 1fr; }
  .at-pillars { grid-template-columns: 1fr 1fr 1fr; }
  .at-shot-pair { grid-template-columns: 1fr 1fr; grid-gap: 30px; }
}
@media (min-width: 900px) {
  .page-atentli main > .wrap:first-child { padding-top: 64px; }
  .at-hero h1 { font-size: 44px; }
  .at-lead { font-size: 20px; }
  .at-band { padding-top: 56px; }
  .at-h2 { font-size: 28px; }
  .at-honest { padding: 26px 26px 16px; }
}
