/* Landing page — dark cozy palette, mobile-first. Served at GET /. */

:root {
  --bg: #0e1017;
  --bg-elev: #171a24;
  --bg-elev-2: #1f2330;
  --text: #f4e6d0;
  --text-dim: #b8b3aa;
  --text-mute: #7c7a76;
  --accent: #f5a97f;
  --accent-2: #f0c19b;
  --accent-shadow: rgba(245, 169, 127, 0.28);
  --line: rgba(244, 230, 208, 0.08);
  --line-strong: rgba(244, 230, 208, 0.18);
  --radius: 18px;
  --radius-sm: 10px;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 20px 40px -20px rgba(0, 0, 0, 0.6),
                 0 2px 6px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

img, video {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 0.4s var(--ease-out);
  filter: saturate(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14, 16, 23, 0.35) 0%,
      rgba(14, 16, 23, 0.15) 30%,
      rgba(14, 16, 23, 0.55) 65%,
      rgba(14, 16, 23, 0.95) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(14, 16, 23, 0.5) 100%);
}

.hero-content {
  max-width: 720px;
  animation: heroFadeIn 1.1s var(--ease-out) both;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.4rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 7rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-2) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--text-dim);
  margin: 0.8rem 0 1.8rem;
  max-width: 34ch;
  font-style: italic;
  font-family: var(--serif);
  font-weight: 500;
}

.hero-socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-scrollhint {
  display: none;
  position: relative;
  margin-top: 1.75rem;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--text-dim);
  border-radius: 14px;
  opacity: 0.6;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .hero-scrollhint:not([hidden]) {
    display: block;
  }
}
.hero-scrollhint span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: var(--text);
  border-radius: 2px;
  animation: scrollHint 1.8s var(--ease-out) infinite;
}
.hero-scrollhint:hover { opacity: 1; }

/* ---------- Social buttons (reused hero + contact) ---------- */

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s, color 0.25s;
  border: 1px solid var(--line);
}
.social-btn:hover {
  transform: translateY(-2px) scale(1.06);
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 8px 22px var(--accent-shadow);
}
.social-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.social-btn.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
}

/* ---------- Sections shared ---------- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: none; }

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
  font-weight: 600;
}

/* Reveal on scroll */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 780px) {
  .about {
    grid-template-columns: 5fr 6fr;
    gap: 4rem;
  }
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card);
  transform: rotate(-1deg);
  transition: transform 0.4s var(--ease-out);
}
.about-photo:hover {
  transform: rotate(0deg) scale(1.02);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p { color: var(--text-dim); }
.about-text h2 { color: var(--text); }

.about-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-mute);
  font-size: 0.92rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

/* ---------- Latest grid ---------- */

.latest-head {
  margin-bottom: 2rem;
}

.latest-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 620px) {
  .latest-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 960px) {
  .latest-grid { grid-template-columns: repeat(3, 1fr); }
}

.latest-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.latest-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.latest-card-link:hover { color: inherit; }
.latest-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.latest-media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.latest-media img,
.latest-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.latest-card:hover .latest-media img,
.latest-card:hover .latest-media video {
  transform: scale(1.05);
}

.latest-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(14, 16, 23, 0.72);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.latest-meta {
  padding: 0.9rem 1rem 1.1rem;
}
.latest-meta time {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.4rem;
}
.latest-meta p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.45;
}

/* ---------- Contact ---------- */

.contact {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact-lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
  box-shadow: 0 8px 24px var(--accent-shadow);
}
.contact-cta:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
  box-shadow: 0 12px 32px var(--accent-shadow);
  color: var(--bg);
}
.contact-cta.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  background: var(--bg-elev-2);
  color: var(--text-dim);
  border: 1px dashed var(--line-strong);
}
.contact-cta svg { flex-shrink: 0; }

.contact-socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: var(--text-mute);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}
footer p { margin: 0.3rem 0; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 0.6rem; justify-content: center; }

/* ---------- Animations ---------- */

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes scrollHint {
  0%   { transform: translate(-50%, 0);  opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-scrollhint span { animation: none; }
}
