:root {
  --bg: #faf8f5;
  --ink: #2b1d14;
  --muted: #5a5a6a;
  --light: #8a8a98;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --line: #e4e0da;
  --card: #ffffff;
  --hero-bg: #c2410c;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --radius: 12px;
}

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

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

a { color: inherit; }

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 100px;
}

/* ── Nav ──────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,245,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-nav__brand {
  font-family: var(--serif);
  font-size: 20px;
  text-decoration: none;
  color: var(--ink);
}
.site-nav__list {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav__list a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item a {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

/* ── Portfolio grid page ─────────────────────── */
.portfolio-grid-page__header {
  margin-bottom: 40px;
}
.portfolio-grid-page__header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  margin-bottom: 12px;
}
.portfolio-grid-page__intro {
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.portfolio-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}
.portfolio-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.portfolio-tile__image {
  aspect-ratio: 4/3;
  background: #eee;
  overflow: hidden;
}
.portfolio-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-tile__caption {
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

/* ── Single portfolio view ───────────────────── */
.portfolio-single {
  max-width: 760px;
  margin: 0 auto;
}
.portfolio-single__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.portfolio-single__back:hover { color: var(--accent); }
.portfolio-single__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 8px;
}
.portfolio-single__meta {
  color: var(--light);
  font-size: 13px;
  margin-bottom: 24px;
}
.portfolio-single__image {
  margin-bottom: 16px;
}
.portfolio-single__image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  margin: 0 auto;
  border-radius: var(--radius);
}
.portfolio-single__caption {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
}
.portfolio-single__content {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Testimonial ──────────────────────────────── */
.testimonial {
  margin: 20px 0;
  padding: 24px 30px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
  font-style: italic;
  margin: 0 0 10px;
}
.testimonial cite {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* ── Reflection box ───────────────────────────── */
.reflection {
  margin: 24px 0 0;
  padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.reflection h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}
.reflection p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  white-space: pre-line;
}

/* ── Plain content pages (About / Contact) ────── */
.content-page h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  margin-bottom: 24px;
}
.content-page__body {
  max-width: 700px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.content-page__body p { margin-bottom: 16px; }
.content-page__body a { color: var(--accent); }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: var(--hero-bg);
  color: #fff;
  padding: 50px 24px;
  margin-top: 60px;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.site-footer__name {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 10px;
}
.site-footer p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.site-footer a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.site-footer__copyright {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* ── Homepage ────────────────────────────────── */
.home-hero {
  text-align: center;
  padding: 56px 24px 48px;
  background: var(--hero-bg);
  color: #fff;
  border-radius: var(--radius);
}
.home-hero__kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 12px;
}
.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 16px;
}
.home-hero__sub {
  max-width: 560px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  line-height: 1.6;
}
.home-hero__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.home-button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.home-button:hover { background: var(--ink); color: #fff; }
.home-button--solid { background: var(--hero-bg); border-color: var(--hero-bg); color: #fff; }
.home-button--solid:hover { background: var(--accent); border-color: var(--accent); }
.home-hero .home-button { border-color: #fff; color: #fff; }
.home-hero .home-button:hover { background: #fff; color: var(--hero-bg); }
.home-hero .home-button--solid { background: #fff; color: var(--hero-bg); }
.home-hero .home-button--solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.home-section { margin-top: 56px; }
.home-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.home-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .home-doors { grid-template-columns: 1fr; } }
.home-door {
  display: block;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.home-door:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.home-door h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 8px; }
.home-door p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.home-intro { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; font-size: 1.05rem; line-height: 1.7; }
.home-skills { margin-top: 20px; font-size: 13px; letter-spacing: 0.06em; color: var(--light); }
.home-closing { margin-top: 48px; text-align: center; padding-top: 32px; border-top: 1px solid var(--line); color: var(--muted); }
.home-closing p + p { margin-top: 6px; }
