/* RowBeat : shared styles
   Palette matches the iOS app: navy ground, amber accent, Barlow Condensed display. */

:root {
  --navy: #0D1B2A;
  --surface: #1C2B3A;
  --amber: #F5A623;
  --ink: #E8F4F8;
  --muted: #8FA5B8;
  --rule: #2A3F52;
  --measure: 68ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header ---- */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark svg { display: block; flex: none; }

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.25rem;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--amber);
}

/* ---- Type ---- */

main { padding: 3rem 0 1rem; }

h1 {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  line-height: 1.02;
  margin: 0 0 1rem;
}

h2 {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2rem);
  line-height: 1.15;
  margin: 3.25rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p, li { max-width: var(--measure); }
p { margin: 0 0 1.1rem; }

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.dateline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

a { color: var(--amber); }
a:hover { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

strong { font-weight: 600; }

ul { padding-left: 1.25rem; }
li { margin: 0.45rem 0; }
li::marker { color: var(--muted); }

/* ---- Blocks ---- */

.note {
  background: var(--surface);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 1.15rem 1.35rem;
  margin: 2rem 0;
}

.note p:last-child { margin-bottom: 0; }

.faq {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  margin: 1rem 0;
}

.faq p:last-child, .faq ul:last-child { margin-bottom: 0; }
.faq ul:last-child li:last-child { margin-bottom: 0; }

.feature {
  margin: 1.75rem 0;
  padding-left: 1.15rem;
  border-left: 2px solid var(--rule);
}

.feature p:last-child { margin-bottom: 0; }

/* ---- Table ---- */

.stored {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.stored th, .stored td {
  text-align: left;
  padding: 0.75rem 0.9rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.stored th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 34rem) {
  .stored, .stored tbody, .stored tr, .stored td { display: block; width: 100%; }
  .stored thead { display: none; }
  .stored tr { border-bottom: 1px solid var(--rule); padding: 0.75rem 0; }
  .stored td { border: 0; padding: 0.15rem 0; }
  .stored td:first-child { font-weight: 600; }
  .stored td:not(:first-child) { color: var(--muted); font-size: 0.9rem; }
}

/* ---- Footer ---- */

.colophon {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 1.75rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.colophon a { color: var(--muted); }
.colophon a:hover { color: var(--amber); }

.colophon-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.colophon p { max-width: var(--measure); margin: 0; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
