/* ============================================================
   Skykomish — personal iOS developer portfolio
   Plain CSS, no build step. River / Pacific Northwest palette.
   ============================================================ */

:root {
  /* Palette — deep water to glacial blue-green */
  --bg:            #0b1014;
  --bg-elevated:   #121a20;
  --bg-card:       #151f27;
  --border:        #223038;
  --text:          #e8eef1;
  --text-muted:    #8fa3ad;
  --accent:        #3fb6a8;   /* glacial teal */
  --accent-bright: #5fd6c4;
  --accent-deep:   #1f7a8c;   /* deep river blue */

  --radius:   16px;
  --radius-sm: 10px;
  --maxw:     1040px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

section { padding: 5rem 1.5rem; max-width: var(--maxw); margin: 0 auto; }

/* ---------- Decorative river current ---------- */
.current {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 75% -5%, rgba(31, 122, 140, 0.28), transparent 60%),
    radial-gradient(700px 600px at 10% 10%, rgba(63, 182, 168, 0.14), transparent 55%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 20, 0.6);
  border-bottom: 1px solid transparent;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.wordmark__mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  box-shadow: 0 0 18px rgba(63, 182, 168, 0.5);
}

.site-nav { display: flex; gap: 1.6rem; font-size: 0.95rem; }
.site-nav a { color: var(--text-muted); transition: color 0.2s ease; }
.site-nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding-top: 6rem; padding-bottom: 4rem; text-align: left; }

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.hero__lede {
  max-width: 38ch;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #04110f;
  box-shadow: 0 6px 22px rgba(31, 122, 140, 0.35);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--accent-bright), var(--accent)); }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- Section heading ---------- */
.section-head { margin-bottom: 2.5rem; }
.section-head__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head__sub { color: var(--text-muted); margin-top: 0.5rem; }

/* ---------- App grid ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.app-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-deep);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.app-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(63, 182, 168, 0.18), rgba(31, 122, 140, 0.12));
  border: 1px solid var(--border);
  color: var(--accent-bright);
  margin-bottom: 1.3rem;
}

.app-card__status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(63, 182, 168, 0.1);
  border: 1px solid rgba(63, 182, 168, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.app-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.app-card__note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}
.app-card__tagline { color: var(--text); font-size: 1rem; }

.app-card__features {
  list-style: none;
  margin-top: 1.1rem;
  display: grid;
  gap: 0.55rem;
}
.app-card__features li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.app-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Featured card spans wider when it's the only / lead app */
.app-card--featured {
  grid-column: 1 / -1;
  max-width: 560px;
}

.app-card__meta {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- About ---------- */
.about__body { max-width: 60ch; }
.about__body p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.1rem; }

/* ---------- Contact ---------- */
.contact { text-align: left; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
