/* victorshammas.com/apps: the app family's palette and type, with bigger cards.
   One stylesheet, no external fonts, scripts or trackers. */
:root {
  /* Brand palette, matching the app icon: espresso (#46321F → #1C140E), amber (#FFC56A → #EE8A25), cream (#FFF1DC). */
  --bg: #f4f1ec;
  --surface: #fffdf9;
  --surface-2: #ece6dd;
  --text: #24180f;
  --muted: #6e5f52;
  --line: #e2d9cc;
  --accent: #b8610f;
  --accent-ink: #ffffff;
  --link: #9a4f0b;
  --glow: rgba(238, 138, 37, .14);
  --ok: #3fa66b;
  --warn: #e8a33a;
  --bad: #e0563a;
  --track: #e7dfd3;
  --code-bg: #ede6dc;
  --shadow: 0 1px 2px rgba(36, 24, 15, .06), 0 8px 28px rgba(36, 24, 15, .09);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c140e;
    --surface: #2a1f16;
    --surface-2: #241a12;
    --text: #f6ebdd;
    --muted: #bca892;
    --line: #46321f;
    --accent: #ffb457;
    --accent-ink: #1c140e;
    --link: #ffc56a;
    --glow: rgba(255, 197, 106, .12);
    --track: #46321f;
    --code-bg: #33261b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
code, kbd {
  font: .9em/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--code-bg);
  border-radius: 6px;
  padding: .12em .4em;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
}
pre code { background: none; padding: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }


/* Intro */
.intro { padding: 80px 0 28px; background: radial-gradient(55% 80% at 50% 0%, var(--glow), transparent 70%); text-align: center; }
.intro h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 14px; }
.intro p { font-size: 19px; color: var(--muted); margin: 0 auto; max-width: 34em; }

/* App cards: three across, last row centred. */
.apps { padding: 28px 0 24px; }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.app {
  flex: 0 1 calc((100% - 40px) / 3); min-width: 280px;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 28px 24px; color: var(--text); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.app:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.app img { width: 88px; height: 88px; margin: -6px 0 14px -6px; }
.app h2 { font-size: 23px; margin: 0 0 2px; letter-spacing: -.015em; }
.app .tagline { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0 0 12px; }
.app .about { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; flex: 1; }
.app .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.soon { background: var(--surface-2); color: var(--muted); }
.pill.out { background: var(--accent); color: var(--accent-ink); }
/* A card with a second link (a store button): the name's link covers the card, the pill sits above it. */
div.app { position: relative; }
.app .app-link { color: inherit; text-decoration: none; }
.app .app-link::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.app a.pill { position: relative; z-index: 1; text-decoration: none; }
.app a.pill:hover { opacity: .9; }

/* The coffee line: quiet, centred, one sentence. */
.coffee { text-align: center; padding: 36px 0 8px; color: var(--muted); font-size: 16px; }
.coffee p { margin: 0 auto; max-width: 36em; }
.coffee a { color: var(--link); font-weight: 600; }


/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 960px) { .app { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 620px) { .app { flex-basis: 100%; min-width: 0; } .intro { padding-top: 40px; } }
