/* Smart TimeCard — shared site styles.
   First-party only: no web fonts, no CDNs, no third-party requests of any
   kind. The privacy policy says the site collects nothing; that has to be
   true of the markup as well as the intent. */

:root {
  --navy:  #021B48;
  --cream: #FAEDE3;
  --teal:  #4AB4BA;
  --rust:  #E66638;

  --ink:        var(--navy);
  --ink-soft:   #3a4a68;
  --surface:    var(--cream);
  --surface-2:  #fff8f1;
  --line:       rgba(2, 27, 72, .14);
  --link:       #0b5c94;

  --measure: 68ch;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       var(--cream);
    --ink-soft:  #a9bcd8;
    --surface:   var(--navy);
    --surface-2: #04224f;
    --line:      rgba(250, 237, 227, .16);
    --link:      #7fd3d8;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Wordmark ------------------------------------------------- */
/* The app draws a blurred copy of the type underneath the crisp one, tinted
   teal to rust, so the light follows the letterforms rather than sitting in
   a box behind them. Same construction here: two stacked copies, the lower
   one gradient-filled and blurred. */

.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-size: var(--mark-size, 23px);
  letter-spacing: .096em;   /* SwiftUI tracking 2.2 at 23pt */
  line-height: 1.1;
}

.mark__layer {
  display: block;
  white-space: nowrap;
}

.mark__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--teal), var(--rust));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(.35em);
  opacity: .85;
  pointer-events: none;
}

/* Dark mode gets a second, wider bloom underneath: one blurred copy is
   enough against a light background, but on near-black a single layer just
   reads as fuzzy text. */
.mark__glow--wide { display: none; filter: blur(.8em); opacity: .55; }

@media (prefers-color-scheme: dark) {
  .mark__glow--wide { display: block; }
  .mark__glow { opacity: 1; }
}

.mark__crisp { position: relative; color: var(--ink); }
.mark__smart { font-weight: 300; opacity: .55; }
.mark__card  { font-weight: 700; }
.mark__glow .mark__smart,
.mark__glow .mark__card { opacity: 1; color: transparent; }

@media (prefers-reduced-motion: no-preference) {
  .mark { transition: none; }
}

/* ---------- Layout --------------------------------------------------- */

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

.siteheader {
  border-bottom: 1px solid var(--line);
}

.siteheader__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  flex-wrap: wrap;
}

.siteheader a.homelink {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 0;
}

.nav {
  display: flex;
  gap: 4px;
  font-size: 15px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

main { display: block; }

.page { padding: 40px 0 96px; }

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

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: .4em 0 .3em;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 2.4em 0 .5em;
}

h3 { font-size: 1.06rem; margin: 1.8em 0 .3em; }

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

a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.lede {
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

.updated { color: var(--ink-soft); font-size: .95rem; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ---------- Accent --------------------------------------------------- */

.accentbar {
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--rust));
}

/* ---------- Feature list --------------------------------------------- */

.features { list-style: none; margin: 0; padding: 0; }

.features > li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}

.features > li:last-child { border-bottom: 1px solid var(--line); }

.features b {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  margin-bottom: .15em;
}

.features span { color: var(--ink-soft); }

/* ---------- Callout -------------------------------------------------- */

.callout {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 2rem 0;
  max-width: var(--measure);
}

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

/* ---------- Buttons -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: var(--ink);
  color: var(--surface);
  border: 1px solid transparent;
}

.btn:hover { opacity: .9; }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }

.note { font-size: .95rem; color: var(--ink-soft); }

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

.sitefooter {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
  font-size: .95rem;
  color: var(--ink-soft);
}

.sitefooter a { color: var(--ink-soft); }
.sitefooter nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }

/* ---------- Skip link ------------------------------------------------ */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  z-index: 10;
  border-radius: 0 0 8px 0;
}

.skip:focus { left: 0; }

/* ---------- Small screens -------------------------------------------- */

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .mark { --mark-size: 18px; }
  .siteheader__inner { min-height: 64px; }
  .nav { font-size: 14px; }
  .nav a { padding: 10px 9px; }
  .page { padding: 28px 0 72px; }
}
