:root {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --text: #1c1d21;
  --muted: #64666d;
  --line: #e3e0db;
  --accent: #ff7f22;
  --accent-ink: #c85a08;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215;
    --surface: #1b1c21;
    --text: #ecebe8;
    --muted: #9a9ba3;
    --line: #2a2b31;
    --accent-ink: #ff9a4d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Site header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-header .home { color: var(--text); font-weight: 700; letter-spacing: 0.02em; }
.site-header nav a { color: var(--muted); margin-left: 20px; font-size: 15px; }

/* Overview */
.intro { padding: 64px 0 32px; }
.intro h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.intro p { color: var(--muted); margin: 0; max-width: 560px; }

.projects { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); padding-bottom: 72px; }
.project {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.project:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.project img { width: 64px; height: 64px; flex: none; }
.project h2 { margin: 0 0 4px; font-size: 20px; }
.project p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* Wordmark: T·UNER bold orange, the h quiet */
.wordmark { font-weight: 800; letter-spacing: 0.06em; }
.wordmark .t, .wordmark .uner { color: var(--accent); }
.wordmark .h { font-weight: 400; color: var(--muted); }

/* App page */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 64px 0 40px; }
.hero img { width: 168px; height: 168px; }
.hero h1 { font-size: 56px; line-height: 1; margin: 0 0 14px; }
.hero .tagline { font-size: 21px; margin: 0 0 22px; color: var(--muted); max-width: 520px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: var(--accent); color: #fff;
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.button.secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button.disabled { background: var(--line); color: var(--muted); cursor: default; }
.fine { font-size: 13px; color: var(--muted); }

section { padding: 36px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 26px; margin: 0 0 18px; letter-spacing: -0.01em; }

.showcase { display: grid; grid-template-columns: 1fr minmax(0, 340px); gap: 40px; align-items: center; }
.showcase img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 28px; }
.features h3 { margin: 0 0 4px; font-size: 17px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 15px; }

dl.reqs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
dl.reqs dt { font-weight: 600; }
dl.reqs dd { margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .intro h1 { font-size: 32px; }
  .hero { grid-template-columns: 1fr; text-align: left; gap: 20px; padding-top: 40px; }
  .hero img { width: 120px; height: 120px; }
  .hero h1 { font-size: 44px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase img { max-width: 340px; }
}
