/* Rocolito Development — shared site styles.
   Colors meet WCAG 2.2 AA contrast in light and dark mode (checked 2026-10-26).
   Font sizes are in rem so they follow the reader's browser text size. */

:root {
  --bg: #f7f5f2;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #5f5f64;        /* 5.8:1 on --bg, 6.4:1 on --card */
  --accent: #c2410c;       /* links: 5.2:1 on --card, 4.8:1 on --bg */
  --accent-hover: #9a3412;
  --on-accent: #ffffff;    /* button text: 5.2:1 on --accent */
  --border: #d9d4cc;
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --card: #1c1c1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;      /* 6.6:1 on --card */
    --accent: #ff7a3d;     /* links: 6.6:1 on --card */
    --accent-hover: #ff9563;
    --on-accent: #111113;  /* button text: 7.3:1 on --accent */
    --border: #3a3a40;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 1.5rem;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 45rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
}

/* Links: always underlined so they don't rely on color alone. */
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.back {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.375rem; }
h2 { font-size: 1.3125rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
h3 { font-size: 1.125rem; line-height: 1.35; margin: 1.5rem 0 0.25rem; }
p, ul { margin: 0 0 0.875rem; }
ul { padding-left: 1.375rem; }
li { margin-bottom: 0.375rem; }

.sub { color: var(--muted); margin: 0 0 1.75rem; }
.fine-print { color: var(--muted); font-size: 0.9375rem; margin-top: 2rem; }

.summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
  margin: 0 0 1.5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }

/* Home page */
.home { max-width: 34rem; text-align: center; }
.home .mark {
  width: 4rem; height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.home h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2rem;
}
.app {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.125rem 1.25rem;
}
.app h3 { margin: 0 0 0.25rem; }
.app p { margin-bottom: 0.5rem; }
.app .links { margin: 0; }
.email { display: block; margin-top: 0.875rem; color: var(--muted); font-size: 0.9375rem; }

/* Footer, same on every page */
footer {
  width: 100%;
  max-width: 45rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
footer p { margin: 0 0 0.375rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; }
footer li { margin: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer a[aria-current="page"] { color: var(--text); text-decoration: none; font-weight: 600; }

@media (max-width: 30rem) {
  body { padding-top: 1.5rem; }
  main { padding: 2rem 1.375rem; }
  h1 { font-size: 1.625rem; }
}

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