/* ============================================================
   PixelProperty — minimalist Squarespace-style
   neutral palette, generous whitespace, hairline rules
   ============================================================ */

:root {
  --bg: #fafaf8;          /* warm off-white */
  --ink: #1c1c1a;         /* near-black body text */
  --muted: #8a8a83;       /* secondary text */
  --hairline: #e4e4de;    /* thin rules */
  --accent: #4a4a46;      /* subtle accent for links/hover */
  --font-sans: "Inter", -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
}

:root[data-theme="dark"] {
  --bg: #141412;
  --ink: #ecece6;
  --muted: #8f8f87;
  --hairline: #2c2c28;
  --accent: #d8d8d0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

img { width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s ease;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: 1.75rem; }
.nav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--accent); }

/* Theme toggle */
.theme-toggle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1.75rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 2rem;
}
.hero-meta {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Gallery — full-bleed, minimal chrome
   ============================================================ */
.gallery {
  padding: 0 0 4rem;
}
.gallery figure { margin: 0; }
.gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.75rem 1.5rem 2rem;
  text-align: center;
}
.gallery .full img { margin-bottom: 0; }
.gallery-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* ============================================================
   About
   ============================================================ */
.about {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--hairline);
}
.about-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
.about-text p { margin: 0 0 1.25rem; font-size: 1.05rem; }
.about-aside h3 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.about-aside ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.about-aside li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 400;
}
.about-aside p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid var(--hairline);
}
.contact-intro { color: var(--muted); font-size: 1.05rem; margin: 0 0 2rem; }
form { display: grid; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
button[type="submit"] {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: 0.85rem 2rem;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s ease, color 0.2s ease;
}
button[type="submit"]:hover { background: transparent; color: var(--ink); }
button[type="submit"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-status { font-size: 0.9rem; color: var(--muted); margin: 0; }
.contact-details { margin-top: 3rem; border-top: 1px solid var(--hairline); padding-top: 1.5rem; }
.contact-details p { margin: 0.4rem 0; font-size: 0.95rem; }
.contact-details .note { color: var(--muted); font-size: 0.85rem; max-width: 48ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer p { margin: 0.3rem 0; }

/* Kwaku attribution — required on free tier */
.attribution { font-size: 0.75rem; opacity: 0.7; }
.attribution a { color: var(--muted); }
.attribution a:hover { color: var(--ink); }

/* ============================================================
   Responsive — tablet & up
   ============================================================ */
@media (min-width: 720px) {
  .gallery-row { grid-template-columns: 1fr 1fr; }
  .gallery figcaption { padding-left: 1rem; padding-right: 1rem; }
  .about-cols { grid-template-columns: 2fr 1fr; gap: 4rem; }
  .hero { padding-top: 8rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
