/* Heartful Robots LLC — shared styles. No external fonts, no scripts. */
:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --text: #1f1f1f;
  --muted: #5a5a5a;
  --rule: #e6e3dc;
  --card: #ffffff;
  --link: #1a4f8b;
  --link-hover: #0f3563;
  /* Addalaf palette (docs/design/visual-direction-handover.md) — Addalaf page only */
  --a-ink: #1e1950;
  --a-cyan: #00ebff;
  --a-pink: #ffbbff;
  --a-brief-tint: #bffaff;
  --a-script-tint: #ffeeff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1040px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 16px; padding-bottom: 16px;
}
.brand { font-weight: 650; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 20px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--text); }

/* Main */
main { flex: 1; padding: 56px 0 64px; }
h1 { font-size: 2rem; line-height: 1.2; font-weight: 650; margin: 0 0 24px; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; line-height: 1.3; font-weight: 650; margin: 48px 0 12px; }
h3 { font-size: 1.1rem; margin: 0 0 8px; }
p { margin: 0 0 18px; }
ul { margin: 0 0 18px; padding-left: 1.2em; }
li { margin-bottom: 6px; }
.lead { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); font-size: 0.95rem; }

/* Product card (home) */
.card {
  display: block; margin-top: 40px; padding: 24px; background: var(--card);
  border: 1px solid var(--rule); border-radius: 14px; color: var(--text); text-decoration: none;
}
.card:hover { color: var(--text); border-color: #cfcabe; }
.card h2 { margin: 0 0 6px; }
.card p { margin: 0 0 12px; }
.card .more { color: var(--link); font-weight: 600; }

/* Contact list */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.contact-list li:first-child { border-top: 1px solid var(--rule); }
.contact-list .label { display: block; color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 40px; }
.site-footer a { color: var(--muted); white-space: nowrap; }
.site-footer a:hover { color: var(--text); }
.site-footer .sep { margin: 0 8px; }

/* ---------- Addalaf page ---------- */
.a-hero { background: var(--a-ink); color: #fff; padding: 48px 0 56px; text-align: center; }
.a-hero img { width: 180px; margin: 0 auto 24px; }
.a-hero h1 { color: #fff; margin-bottom: 8px; }
.a-hero .sub { font-size: 1.2rem; margin: 0 0 20px; }
.a-hero .status { display: inline-block; font-size: 0.95rem; border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; padding: 4px 14px; margin: 0 0 28px; }
.button {
  display: inline-block; background: var(--a-cyan); color: var(--a-ink); font-weight: 700;
  text-decoration: none; padding: 14px 28px; border-radius: 999px; font-size: 1.05rem;
}
.button:hover { color: var(--a-ink); background: #6ff4ff; }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.a-hero .button:focus-visible { outline-color: #fff; }

.modes { display: grid; gap: 16px; margin: 20px 0 0; }
.mode { border-radius: 14px; padding: 20px 22px; color: var(--a-ink); }
.mode p { margin: 0; }
.mode-brief { background: var(--a-brief-tint); border-left: 6px solid var(--a-cyan); }
.mode-script { background: var(--a-script-tint); border-left: 6px solid var(--a-pink); }

.never { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; margin-top: 16px; }
.never ul { margin-bottom: 12px; }

.shots { display: grid; grid-template-columns: 1fr; gap: 32px; margin: 24px 0 8px; padding: 0; list-style: none; }
.shots li { margin: 0; }
.shots figure { margin: 0 auto; max-width: 300px; }
.shots img { border-radius: 18px; border: 1px solid var(--rule); }
.shots figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }

@media (min-width: 700px) {
  .modes { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .shots { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .shots figure { max-width: none; }
}
@media (min-width: 768px) {
  main { padding-top: 88px; }
  h1 { font-size: 2.5rem; }
  .a-hero { padding: 64px 0 72px; }
  .a-page main { padding-top: 0; }
}
.a-page main { padding-top: 0; }
.a-body { padding-top: 16px; }
