/* ftoworks.com — one shared stylesheet for every page.
   Kept in its own file (not inside the HTML) so the security policy can
   forbid inline styles and scripts entirely. */

:root {
  --paper: #f6f2ea;
  --ink: #1d2327;
  --muted: #5d666c;
  --rule: #d9d1c3;
  --accent: #8a3b12;
  --accent-ink: #fffaf3;
  --card: #fffdf8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15191c;
    --ink: #ece6dc;
    --muted: #9aa3a8;
    --rule: #2c3337;
    --accent: #e0915f;
    --accent-ink: #1a1208;
    --card: #1b2024;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

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

.site-header {
  padding: 1.5rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }

.site-footer {
  margin-top: auto;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .wrap {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); }

/* ---------- Landing page ---------- */

.landing {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink);
  max-width: 32rem;
  margin: 0 0 2.25rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px var(--accent);
}

.fine-print {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Private area ---------- */

.page {
  flex: 1;
  padding: 2rem 0 4rem;
}
.page h1 { font-size: clamp(2rem, 6vw, 2.8rem); }

.signout {
  font-size: 0.9rem;
  color: var(--muted);
}

.cards {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}
.card p { margin: 0; color: var(--muted); }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card.quiet { border-style: dashed; background: transparent; }

.back { font-size: 0.95rem; }

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