/* =========================================================
   Theme — change colors here
   ========================================================= */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1a1c20;
  --muted: #5d636e;
  --border: #e4e4df;
  --accent: #e8590c;        /* main accent color */
  --accent-contrast: #ffffff;

  --radius: 14px;
  --maxw: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --text: #e9eaec;
    --muted: #9aa1ac;
    --border: #262a33;
    --accent: #ff8a3d;
    --accent-contrast: #111;
  }
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.05rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 20px; border-top: 1px solid var(--border); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--accent-contrast);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .85rem; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero-photo img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50% 50% var(--radius) var(--radius);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.35);
}
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 8px; }
.role { color: var(--muted); font-size: 1.2rem; margin: -6px 0 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; text-align: center; }
  .hero-photo { max-width: 260px; margin: 0 auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* =========================================================
   About
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.prose p { margin: 0 0 1.1em; max-width: 65ch; }
.facts {
  list-style: none; margin: 0; padding: 8px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.facts li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--border); }
.facts li:last-child { border-bottom: 0; }
.facts span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   Gallery
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  transition: transform .25s ease, filter .25s ease;
  background: var(--surface);
}
.gallery figure:hover img { transform: scale(1.015); filter: brightness(1.05); }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* =========================================================
   Contact + footer
   ========================================================= */
.contact { text-align: center; }
.contact .lead { margin: 0 auto 28px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0; }
.links a {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; text-align: center; }
.site-footer p { margin: 0; }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; margin: 0 auto; }
.lightbox figcaption { color: #ddd; margin-top: 12px; font-size: .95rem; }
.lightbox button {
  position: fixed; background: rgba(255,255,255,.1); color: #fff;
  border: 0; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   404
   ========================================================= */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); color: var(--accent); line-height: 1; margin: 0; }
