:root {
  --ink: #1c2024;
  --ink-soft: #52585f;
  --paper: #fbfaf8;
  --paper-alt: #f2efe9;
  --line: #e2ddd3;
  --accent: #8a5a2b;
  --accent-ink: #ffffff;
  --radius: 10px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece8e2;
    --ink-soft: #b3aea5;
    --paper: #171614;
    --paper-alt: #1e1c19;
    --line: #322f2a;
    --accent: #d3a463;
    --accent-ink: #171614;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
}

p { margin: 0 0 12px; }

a { color: var(--accent); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */

.hero {
  padding: 96px 0 72px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin-bottom: 16px;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 20px;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.highlights li {
  padding-left: 18px;
  position: relative;
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

/* Sections */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--paper-alt);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-intro {
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
}

/* Background cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.card p { color: var(--ink-soft); margin: 0; }

/* Work list */

.work-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.work-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.work-item h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.work-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.work-item p:last-child {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.work-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.work-link:hover {
  text-decoration: underline;
}

/* Contact */

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  font-size: 1.1rem;
  font-family: var(--serif);
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 16px;
    display: none;
  }

  .site-nav.open { display: flex; }
}
