/* Hongmin Studio — muted earth tones over slate, matching the apps. */
:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #efece6;
  --text: #23262d;
  --muted: #5d6370;
  --line: #dedad2;
  --accent: #6b7a94;      /* slate */
  --clay: #c27a61;
  --sage: #8ca37a;
  --ochre: #c79e61;
  --teal: #6b9494;
  --hero-from: #333843;
  --hero-to: #1a1c24;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 22, 28, .05), 0 8px 24px rgba(20, 22, 28, .06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --surface: #1e2128;
    --surface-2: #262a32;
    --text: #e8e6e1;
    --muted: #a3a8b3;
    --line: #2f343d;
    --accent: #9aa8c0;
    --shadow: none;
  }
}

* { 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", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

img { max-width: 100%; display: block; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #eceae5;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(199, 158, 97, .22), transparent 65%);
  pointer-events: none;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--ochre); margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 18px; max-width: 14ch; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: #b9bcc5; max-width: 40ch; margin: 0; }

/* Sections */
section { padding: 72px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.app-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); color: var(--text); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
a.app-card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.app-card .top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.15); flex: none; }
.app-card h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.app-card .platform { color: var(--muted); font-size: 14px; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .more { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 15px; }
.app-card.placeholder { border-style: dashed; background: transparent; box-shadow: none; justify-content: center; align-items: center; text-align: center; min-height: 220px; }
.app-card.placeholder p { max-width: 24ch; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ochre) 18%, transparent); color: var(--ochre);
}
.badge.live { background: color-mix(in srgb, var(--sage) 20%, transparent); color: var(--sage); }

/* Principles / features */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tile h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.dot svg { width: 20px; height: 20px; }
.c-clay { background: var(--clay); } .c-sage { background: var(--sage); } .c-ochre { background: var(--ochre); }
.c-teal { background: var(--teal); } .c-slate { background: var(--accent); } .c-mauve { background: #9e8299; }

.band { background: var(--surface-2); }

/* App page hero */
.app-hero { padding: 72px 0 56px; }
.app-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.app-hero .app-icon { width: 120px; height: 120px; border-radius: 27px; }
.app-hero h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.025em; line-height: 1.1; }
.app-hero p { margin: 0 0 14px; color: var(--muted); font-size: 19px; max-width: 46ch; }
@media (max-width: 560px) {
  .app-hero .wrap { grid-template-columns: 1fr; }
  .app-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; }
}

.links { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
}
.button:hover { color: #fff; filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--accent); color: var(--text); }

.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .nav { gap: 16px; }
  .hero { padding: 64px 0 60px; }
  section { padding: 52px 0; }
}
