/* Clock Out — app.sampulman.dev
   Palette from docs/GDD.md §13. No web fonts, no external requests. */

:root {
  --paper: #FAF6EE;
  --desk: #EFE8D9;          /* page ground, one step down from paper */
  --ink: #2B2B3A;
  --ink-muted: #5A5A6E;     /* 6.2:1 on paper */
  --accent: #FF7A45;        /* backgrounds only — 2.4:1 as text */
  --accent-deep: #B03D0A;   /* 5.5:1 on paper, 4.9:1 on the page ground */
  --green: #2FBF71;
  --red: #E63946;
  --line: 2px solid var(--ink);
  --radius: 18px;
  --shadow: 0 4px 0 rgba(43, 43, 58, 0.18);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--desk);
  background-image:
    repeating-linear-gradient(90deg, rgba(110, 123, 181, 0.07) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(110, 123, 181, 0.07) 0 1px, transparent 1px 64px);
  color: var(--ink);
  font-family: ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.card {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin: 0 0 1.25rem;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 5vw, 1.5rem); margin-top: 2rem; }
h3 { font-size: 1.0625rem; margin-top: 1.5rem; }
.card > h2:first-child,
.card > h3:first-child { margin-top: 0; }

p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
li:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.125rem;
  font-weight: 600;
}

.muted { color: var(--ink-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.shout {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--desk);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

/* ---------- links & focus ---------- */

a { color: var(--accent-deep); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  border: var(--line);
  border-radius: 0 0 var(--radius) 0;
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);          /* 5.3:1 on the orange */
  border: var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 0.75rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover,
.btn:focus-visible {
  color: var(--ink);
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.btn-quiet {
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(43, 43, 58, 0.25);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 1.25rem 0 0;
}

/* ---------- app header ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  border: var(--line);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.hero-text { flex: 1 1 14rem; min-width: 0; }
.hero-text h1 { margin-bottom: 0.15rem; }

.subtitle {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- app list (root page) ---------- */

.app-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.app-link .app-icon { width: 72px; height: 72px; border-radius: 17px; }
.app-link strong { display: block; font-size: 1.25rem; }
.app-link:hover { color: inherit; }
.app-link:hover strong { text-decoration: underline; }

/* ---------- features ---------- */

.features { list-style: none; padding: 0; margin: 0; }
.features li { margin-bottom: 1rem; }
.features li:last-child { margin-bottom: 0; }
.features b { display: block; }

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.shots li { margin: 0; }

.shot {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  border-bottom: var(--line);
}
.shot figcaption {
  padding: 0.6rem 0.75rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq dt { font-weight: 800; margin-top: 1.25rem; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0.25rem 0 0; }

/* ---------- 404 ---------- */

.stack-404 { text-align: center; }
.stack-404 h1 { color: var(--red); }   /* large text, 3.9:1 */

/* ---------- footer ---------- */

footer {
  border-top: var(--line);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
footer p { margin: 0 0 0.35rem; }
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

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

.stack-404 .btn-row { justify-content: center; }
