/* ==========================================================================
   Francisco LeFebre — minimal gallery landing
   One hero, one paragraph, three links, a footer. Nothing else.
   ========================================================================== */

:root {
  --bg: #1a1917;          /* warm dark charcoal, not pure black */
  --text: #e8e4dd;        /* warm off-white */
  --muted: #a8a299;
  --faint: #6f6a60;
  --accent: #c4756a;      /* terracotta / warm clay — used sparingly */
  --line: rgba(232, 228, 221, 0.12);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* frank.jpg is a portrait; on wide screens, anchor the crop upward so
     the artist's face stays in frame rather than being cropped out. */
  object-position: center 30%;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(12, 11, 10, 0.82) 0%,
      rgba(12, 11, 10, 0.40) 38%,
      rgba(12, 11, 10, 0.10) 62%,
      rgba(12, 11, 10, 0.34) 100%),
    radial-gradient(130% 100% at 50% 35%,
      transparent 55%,
      rgba(0, 0, 0, 0.35) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 5rem) clamp(4.5rem, 9vh, 7rem);
  max-width: 1100px;
}
.hero__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 1.1rem;
  color: #f3f0ea;
}
.hero__tagline {
  margin: 0;
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #c8c3b9;
  font-weight: 400;
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.4s var(--ease);
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator svg { width: 24px; height: 24px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ---------- Intro ---------- */
.intro {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(6rem, 16vh, 11rem) clamp(1.5rem, 6vw, 3rem);
  text-align: center;
}
.intro__text {
  margin: 0 0 3.5rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.85;
  color: #ded9cf;
  font-weight: 300;
}
.intro__text em { font-style: italic; color: var(--text); }

/* ---------- Links ---------- */
.links {
  display: flex;
  gap: clamp(1.8rem, 5vw, 3rem);
  justify-content: center;
}
.links a {
  position: relative;
  padding-bottom: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  font-variant: small-caps;
  color: var(--muted);
  transition: color 0.5s var(--ease);
}
.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.links a:hover { color: var(--accent); }
.links a:hover::after { transform: scaleX(1); }
.links a:focus-visible::after { transform: scaleX(1); }

/* ---------- Reveal (scroll fade-in, JS-gated) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.5rem, 6vw, 3rem) clamp(2rem, 4vh, 3rem);
  text-align: center;
}
.footer__name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.footer__loc {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.5rem;
}
.footer__copy {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 6vw, 3rem) clamp(5rem, 12vh, 9rem);
  text-align: center;
}
.contact__heading {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1.3rem;
  color: #f3f0ea;
}
.contact__lede {
  max-width: 34rem;
  margin: 0 auto 3rem;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.8;
  color: #c8c3b9;
  font-weight: 300;
}
.contact__form {
  max-width: 34rem;
  margin: 0 auto;
  text-align: left;
}
.field { margin-bottom: 1.9rem; }
.field label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.6rem 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.4s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.6;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 1.75rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a299' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 1rem;
}
.field select option { background: var(--bg); color: var(--text); }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contact__submit {
  position: relative;
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.7rem 0 0.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--muted);
  transition: color 0.5s var(--ease);
}
.contact__submit::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.contact__submit:hover,
.contact__submit:focus-visible { color: var(--accent); outline: none; }
.contact__submit:hover::after,
.contact__submit:focus-visible::after { transform: scaleX(1); }
.contact__submit:disabled { opacity: 0.45; cursor: default; }
.contact__status {
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}
.contact__status.is-success { color: #c8c3b9; }
.contact__status.is-error { color: var(--accent); }

/* honeypot — hidden from humans, present for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .scroll-indicator svg { animation: none; }
}
