:root {
  color-scheme: light dark;
  --bg: #f4f2ee;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #ffffff;
  --text: #151413;
  --muted: #67635e;
  --line: rgba(20, 18, 16, 0.1);
  --accent: #dd4f2e;
  --accent-hover: #c63e20;
  --shadow: 0 18px 48px rgba(44, 30, 18, 0.08);
}

* { box-sizing: border-box; }

html { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -10%, rgba(237, 114, 74, 0.2), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 4px; border-radius: 6px; }

.shell { width: min(100% - 2rem, 760px); margin-inline: auto; }
.home { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 5rem 2rem; }
.hero { max-width: 680px; margin-bottom: 3rem; }
.eyebrow { margin: 0 0 0.7rem; color: var(--accent); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.16em; }
h1 { margin: 0; max-width: 16ch; font-size: clamp(2.65rem, 9vw, 5rem); font-weight: 720; letter-spacing: -0.055em; line-height: 0.98; }
.lede { max-width: 40rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.23rem); }
.lede.compact { font-size: 1.08rem; }

.cards { display: grid; gap: 0.9rem; }
.card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 6.5rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, background-color 160ms ease;
}
.card:hover { transform: translateY(-2px); background: var(--surface-strong); }
.card-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-size: 1.2rem; font-weight: 700; }
.card strong, .card small { display: block; }
.card strong { font-size: 1.03rem; }
.card small { margin-top: 0.2rem; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.arrow { color: var(--muted); font-size: 1.25rem; }

.topbar { padding-block: 1.5rem; }
.topbar a { color: var(--muted); font-size: 0.93rem; text-decoration: none; }
.article-shell { padding-bottom: 2rem; }
article { padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.article-header { padding-bottom: 1.2rem; }
.article-header h1 { font-size: clamp(2.45rem, 8vw, 4.25rem); }
.meta { margin: 1rem 0 0; color: var(--muted); font-size: 0.9rem; }
article > p { color: var(--muted); }
h2 { margin: 2.1rem 0 0.55rem; font-size: 1.17rem; line-height: 1.35; letter-spacing: -0.015em; }
h2 + p { margin-top: 0; color: var(--muted); }
article a { color: var(--accent-hover); }

.contact { margin-top: 2.5rem; padding: 1.4rem; border-radius: 20px; background: color-mix(in srgb, var(--accent) 8%, var(--surface-strong)); }
.contact h2 { margin-top: 0; }
.button { display: inline-block; margin-top: 0.5rem; padding: 0.72rem 1.1rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--accent-hover); }
.email { margin: 0.8rem 0 0; font-size: 0.9rem; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.25rem; padding: 2rem 0 0; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 520px) {
  .home { justify-content: flex-start; padding-top: 4rem; }
  .hero { margin-bottom: 2rem; }
  .card { border-radius: 18px; }
  article { border-radius: 22px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100e;
    --surface: rgba(35, 31, 28, 0.82);
    --surface-strong: #2c2825;
    --text: #f3f0eb;
    --muted: #b8b1aa;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #ff7655;
    --accent-hover: #ff8a6d;
    --shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
  }
}
