/* =========================================
   L.S. Redding — Site Styles
   ========================================= */

/* --- Custom Properties --- */
:root {
  --bg:           #FDFAF7;
  --bg-alt:       #F5EFE8;
  --bg-card:      #FFFFFF;
  --text:         #2C2321;
  --text-heading: #1A1210;
  --muted:        #7A6B62;
  --accent:       #C2837A;
  --accent-dark:  #A86B62;
  --accent-light: #E8C8C3;
  --border:       #E5DDD6;
  --border-light: #F0EAE3;
  --shadow:       rgba(44, 35, 33, 0.06);
  --shadow-hover: rgba(44, 35, 33, 0.14);
  --nav-h:        64px;
  --max-prose:    680px;
  --max-wide:     1100px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-heading);
}

/* =========================================
   NAV
   ========================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(253, 250, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-heading);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0.5rem;
  transition: color 0.2s var(--ease);
}

.nav-social a:hover {
  color: var(--accent-dark);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  width: 100%;
}

/* Circular portrait */
.hero-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid var(--accent-light);
  box-shadow:
    0 8px 32px rgba(194, 131, 122, 0.18),
    0 2px 8px rgba(44, 35, 33, 0.08);
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 0.35em;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: 0.06em;
}

/* Hero social icons */
.hero-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.hero-social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0.5rem;
  transition: color 0.2s var(--ease);
}

.hero-social a:hover {
  color: var(--accent-dark);
}

/* Scroll chevron */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-light);
  animation: bounce 2.4s ease-in-out infinite;
}

.scroll-cue svg { display: block; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.65; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 1;    }
}

/* =========================================
   SHARED SECTION STYLES
   ========================================= */
.section {
  padding: 7rem 2rem;
}

.section-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-heading);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

/* =========================================
   ABOUT
   ========================================= */
.about {
  background: var(--bg);
}

.about-prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  text-align: center;
}

.about-prose .section-label,
.about-prose .section-heading {
  text-align: center;
}

.about-bio {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.85;
}

.about-bio p + p {
  margin-top: 1.25em;
}

/* =========================================
   WORKS
   ========================================= */
.works {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 3px var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px var(--shadow-hover);
  border-color: var(--accent-light);
}

.work-venue {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.work-title {
  font-size: 1.55rem;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.work-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-dark);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  transition: gap 0.2s var(--ease);
}

.work-link:hover {
  gap: 0.7rem;
}

.work-link svg {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.work-link:hover svg {
  transform: translateX(3px);
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  background: var(--bg);
}

.contact-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-label,
.contact-inner .section-heading {
  text-align: center;
}

.contact-lead {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 131, 122, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 2.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.btn-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.contact-fallback {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-fallback a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0.5rem;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social a:hover {
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* =========================================
   SCROLL-DRIVEN ANIMATIONS (progressive)
   ========================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@supports (animation-timeline: view()) {
  .animate-in {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

/* =========================================
   RESPONSIVE — Mobile-first
   ========================================= */

/* 400px and below */
@media (max-width: 400px) {
  .hero-portrait {
    width: 160px;
    height: 160px;
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .section {
    padding: 5rem 1.25rem;
  }

  .site-nav {
    padding: 0 1.25rem;
  }

  .btn-submit {
    align-self: stretch;
    text-align: center;
  }
}

/* 768px — tablet */
@media (min-width: 768px) {
  .hero-portrait {
    width: 240px;
    height: 240px;
  }

  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* 1025px — desktop */
@media (min-width: 1025px) {
  .hero-portrait {
    width: 280px;
    height: 280px;
  }

  .section {
    padding: 8rem 3rem;
  }
}
