:root {
  --bg: #faf4ec;
  --bg-soft: #f3e9dc;
  --card: #fffaf3;
  --text: #2e2a26;
  --text-muted: #6f6557;
  --accent: #c0623f;
  --accent-deep: #a44d2e;
  --olive: #7a8450;
  --border: #e7dccb;
  --shadow: 28px 28px 60px rgba(86, 62, 40, 0.10);
  --radius: 18px;
  --maxw: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Soft warm radial glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(192, 98, 63, 0.10), transparent 60%),
    radial-gradient(55% 45% at 95% 10%, rgba(122, 132, 80, 0.10), transparent 60%);
  z-index: -2;
  pointer-events: none;
}

/* Subtle paper grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

/* ---- Header ---- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s;
}
.logo:hover { background: var(--text); color: var(--bg); }

.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a { color: var(--text-muted); position: relative; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

/* ---- Layout helpers ---- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section { padding: 80px 0; }

.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--text-muted); margin-top: 8px; font-size: 1.05rem; }

/* ---- Hero ---- */
.hero { padding: 70px 0 90px; max-width: 720px; }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  margin-bottom: 14px;
}
.tagline {
  font-family: "Fraunces", serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--olive);
  font-style: italic;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(192, 98, 63, 0.32);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--card);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Projects ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #dcc9af;
}
.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(122, 132, 80, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
}
.card h3 { font-size: 1.5rem; }
.card p { color: var(--text-muted); flex-grow: 1; }
.card-link {
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  transition: gap 0.2s;
}
.card:hover .card-link { color: var(--accent-deep); }

/* ---- About ---- */
.about-body { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.about-body p { font-size: 1.12rem; color: var(--text-muted); }

/* ---- Footer ---- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 28px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 560px) {
  section { padding: 56px 0; }
  .site-header { padding: 24px 20px; }
  main { padding: 0 20px; }
}
