/* James Liebenberg — Dot Artist
   Built from the Claude Design handoff. Colours and type live here. */

:root {
  --bg: #141110;
  --cream: #f4ece1;
  --cream-muted: rgba(244, 236, 225, 0.62);
  --cream-faint: rgba(244, 236, 225, 0.12);
  --cream-soft: rgba(244, 236, 225, 0.48);
  --accent: #c1734f;        /* terracotta. Alternatives from the design: #8a9a7c, #c9a24b, #7c93b0 */
  --placeholder: #221d19;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;   /* keeps the footer at the bottom on short pages */
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(193, 115, 79, 0.35); }
img { max-width: 100%; }
a { color: inherit; }

/* Dot texture over the whole page */
.texture {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(193, 115, 79, 0.33) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.12;
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgba(20, 17, 16, 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-faint);
}
.nav__logo {
  font-family: var(--serif); font-style: italic; font-size: 21px;
  color: var(--cream); text-decoration: none;
}
.nav__links { display: flex; gap: 40px; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav__links a {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream-muted); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}
.nav__links a:hover { color: var(--cream); }
.nav__links a.active { color: var(--cream); border-bottom-color: var(--accent); }

main { position: relative; z-index: 1; flex: 1 0 auto; }

/* Shared pieces */
.frame {
  position: relative; overflow: hidden; background: var(--placeholder);
  border: 1px solid rgba(244, 236, 225, 0.08);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.eyebrow {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; letter-spacing: 0.05em;
  color: #141110; background: var(--accent); padding: 15px 30px;
  border-radius: 2px; border: 0; cursor: pointer; width: fit-content;
  text-decoration: none; transition: filter .2s ease, transform .2s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 4px; width: fit-content;
}
.page-header {
  padding: clamp(80px, 12vh, 140px) var(--gutter) 56px;
  max-width: 900px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.page-title {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 4.2vw, 50px); color: var(--cream); margin: 0 0 18px; line-height: 1.2;
}
.page-subtitle { font-family: var(--sans); font-size: 16px; color: var(--cream-muted); line-height: 1.7; max-width: 520px; margin: 0; }

/* Home */
.hero {
  position: relative; width: 100%; height: 86vh; min-height: 580px; background: var(--placeholder);
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,17,16,0.05) 20%, rgba(20,17,16,0.96) 100%),
    linear-gradient(90deg, rgba(20,17,16,0.62) 0%, rgba(20,17,16,0.28) 40%, rgba(20,17,16,0) 68%);
}
.hero__content { position: relative; z-index: 2; padding: 0 var(--gutter) 80px; max-width: 780px; display: flex; flex-direction: column; }
.hero__kicker { font-family: var(--sans); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.hero__title {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.25; color: var(--cream); margin: 0 0 24px;
}
.hero__body { font-family: var(--sans); font-size: 17px; line-height: 1.75; color: rgba(244,236,225,0.8); max-width: 560px; margin: 0 0 34px; text-shadow: 0 1px 14px rgba(20,17,16,0.6); }
.hero__title { text-shadow: 0 2px 24px rgba(20,17,16,0.55); }

.image-break { padding: 110px var(--gutter); max-width: 1200px; margin: 0 auto; }
.image-break .frame { width: 100%; aspect-ratio: 16 / 9; }

.poem { padding: 0 var(--gutter) 130px; max-width: 760px; margin: 0 auto; text-align: center; }
.poem p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.65; color: var(--cream); margin: 0; }

.two-images { display: flex; gap: 24px; padding: 0 var(--gutter) 130px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.two-images .frame { flex: 1 1 320px; aspect-ratio: 4 / 5; }

.teaser { display: flex; gap: 64px; padding: 0 var(--gutter) 140px; max-width: 1200px; margin: 0 auto; align-items: center; flex-wrap: wrap; }
.teaser .frame { flex: 1 1 340px; aspect-ratio: 4 / 5; }
.teaser__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; }
.teaser__text p:not(.eyebrow) { font-family: var(--sans); font-size: 17px; line-height: 1.75; color: var(--cream-muted); margin: 0; }
.teaser__text .eyebrow { margin-bottom: 0; }

/* Focus rings for keyboard users */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Portfolio (masonry via CSS columns) */
.gallery { column-width: 320px; column-count: 3; column-gap: 24px; padding: 0 var(--gutter) 130px; max-width: 1400px; margin: 0 auto; }
.gallery figure { break-inside: avoid; margin: 0 0 28px; }
.gallery .frame { width: 100%; }
.gallery .frame img { transition: transform .7s ease; }
.gallery figure:hover .frame img { transform: scale(1.03); }
.gallery figcaption { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--cream-muted); margin: 10px 2px 0; text-align: left; }

/* About */
.about-row { display: flex; gap: 64px; padding: 0 var(--gutter) 110px; max-width: 1200px; margin: 0 auto; align-items: center; flex-wrap: wrap; }
.about-row--reverse { flex-direction: row-reverse; }
.about-row .frame { flex: 1 1 320px; aspect-ratio: 4 / 5; }
.about-row .frame--portrait img { object-position: center 15%; }
.about-row p { flex: 1 1 320px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.6; color: var(--cream); margin: 0; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding: 0 var(--gutter) 130px; max-width: 1200px; margin: 0 auto; }
.about-grid .frame { width: 100%; aspect-ratio: 4 / 3; }

/* Contact */
.contact { padding: 0 var(--gutter) 150px; max-width: 1100px; margin: 0 auto; display: flex; justify-content: center; }
.contact__info { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.contact__email { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--accent); text-decoration: none; word-break: break-all; }
.contact__social { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px 32px; }
.contact__social a { font-family: var(--sans); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream-muted); text-decoration: none; transition: color .2s ease; }
.contact__social a:hover { color: var(--cream); }

/* Footer */
.footer {
  padding: 56px var(--gutter) 44px; text-align: center; border-top: 1px solid var(--cream-faint);
  display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; z-index: 1;
}
.footer__top { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.footer__text { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--cream-soft); }

/* Small screens */
@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .nav { flex-direction: column; gap: 16px; padding: 18px var(--gutter); }
  .nav__links { gap: 12px 22px; flex-wrap: wrap; justify-content: center; }
  .hero__overlay { background: linear-gradient(180deg, rgba(20,17,16,0.12) 10%, rgba(20,17,16,0.55) 45%, rgba(20,17,16,0.97) 80%); }
  .hero { height: 78vh; min-height: 520px; }
  .hero__content { padding-bottom: 56px; }
  .image-break { padding: 64px var(--gutter); }
  .poem, .two-images, .teaser, .about-row, .about-grid, .contact, .gallery { padding-bottom: 80px; }
  .teaser, .about-row { gap: 32px; }
}
@media (max-width: 380px) { .nav__links { gap: 10px 16px; } .nav__links a { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery .frame img { transition: none; } }
