/* =========================================
   byaurelie.com — Cloudflare Pages
   Global Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400&display=swap');

/* -----------------------------------------
   Reset & Base
----------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #f8f5ef;
  color: #1a1a1a;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* -----------------------------------------
   Header
----------------------------------------- */

header {
  padding: 40px 40px 30px;
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.site-name {
  display: block;
  margin: 0;
  text-align: left;
}

.site-name img {
  max-width: 320px;
  width: 100%;
  margin: 0;
}

.site-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Fallback text name if no logo image */
.site-name-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a1a1a;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 10px;
  list-style: none;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #6f6a61;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: #1a1a1a;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
  outline: none;
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

nav a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
  transition: opacity 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  opacity: 0.5;
}

nav a:focus-visible,
.back-to-top:focus-visible,
.project-thumb:focus-visible,
.form-submit button:focus-visible {
  outline: 1px solid #1a1a1a;
  outline-offset: 4px;
}

nav a.active {
  border-bottom: 1px solid #1a1a1a;
  color: #111111;
}

/* -----------------------------------------
   Main Content
----------------------------------------- */

main {
  flex: 1;
  width: 100%;
}

/* -----------------------------------------
   Homepage — Project Grid
----------------------------------------- */

.project-grid {
  display: flex;
  gap: 12px;
  padding: 44px 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.project-thumb {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  height: min(72vh, 560px);
  background: #ece7df;
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.08);
  transition: flex 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.project-grid:hover .project-thumb,
.project-grid:focus-within .project-thumb {
  flex: 0.9 1 0;
}

.project-grid:hover .project-thumb:hover,
.project-grid:focus-within .project-thumb:focus-visible {
  flex: 1.75 1 0;
  box-shadow: 0 20px 44px rgba(26, 26, 26, 0.12);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-thumb:hover img {
  transform: scale(1.035);
}

.project-thumb:focus-visible img {
  transform: scale(1.035);
}

.project-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 52px 22px 18px;
  background: linear-gradient(to bottom, rgba(17,17,17,0), rgba(17,17,17,0.52));
  color: #ffffff;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(8px);
}

.project-thumb:hover .project-thumb-label {
  opacity: 1;
  transform: translateY(0);
}

.project-thumb:focus-visible .project-thumb-label {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------
   Project Page
----------------------------------------- */

.project-header {
  padding: 48px 40px 36px;
  text-align: center;
}

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.project-images {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.project-images.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}

.project-gallery-item {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  line-height: 0;
  transition: opacity 0.2s ease;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.project-gallery-item:hover,
.project-gallery-item:focus-visible {
  opacity: 0.92;
  outline: none;
}

.project-images img,
.project-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  object-fit: cover;
}

.project-credits {
  max-width: 560px;
  margin: 52px auto 0;
  padding: 0 40px 60px;
  text-align: center;
}

.project-credits p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 2;
  color: #7d7a74;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(12, 11, 10, 0.92);
  z-index: 1000;
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 1320px);
  display: grid;
  gap: 16px;
  justify-items: center;
}

.lightbox-image-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav.prev {
  left: 0;
}

.lightbox-nav.next {
  right: 0;
}

.lightbox-caption {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

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

.about-wrap {
  max-width: 1160px;
  margin: 44px auto 0;
  padding: 0 40px 80px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 44px;
}

.about-copy {
  max-width: 560px;
}

.about-kicker,
.contact-kicker {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8b857a;
  margin-bottom: 16px;
}

.about-title,
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: 0.03em;
  color: #1a1a1a;
  margin-bottom: 26px;
}

.about-image-frame {
  position: relative;
}

.about-image {
  width: 100%;
  margin-bottom: 0;
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08);
}

.about-bio {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.95;
  color: #1a1a1a;
  color: #37342f;
  margin-bottom: 0;
}

.about-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.about-section {
  margin-bottom: 0;
  padding: 28px 30px 30px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 14px 30px rgba(26, 26, 26, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-section ul,
.about-section > p:not(.about-section-title) {
  flex: 1;
}

.about-section-wide {
  grid-column: 1 / -1;
}

.about-section-title {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 14px;
}

.about-section ul {
  list-style: none;
}

.about-section ul li,
.about-section p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 2;
  color: #1a1a1a;
}

.about-qualifications p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 2;
  color: #1a1a1a;
}

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

.contact-wrap {
  max-width: 480px;
  margin: 44px auto 0;
  padding: 0 40px 80px;
}

.contact-intro {
  margin-bottom: 28px;
}

.contact-copy {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #4a463f;
  max-width: 36rem;
}

.contact-card {
  padding: 30px 30px 34px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 18px 36px rgba(26, 26, 26, 0.05);
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d0d0d0;
  padding: 10px 0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: #1a1a1a;
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #1a1a1a;
}

.form-group textarea {
  resize: none;
  min-height: 132px;
  line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b8b8b8;
}

.form-submit {
  margin-top: 36px;
}

.form-submit button {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid #1a1a1a;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.form-submit button:hover {
  background: #1a1a1a;
  color: #ffffff;
  transform: translateY(-1px);
}

.form-submit button:focus-visible {
  background: #1a1a1a;
  color: #ffffff;
  transform: translateY(-1px);
}

.form-success {
  display: none;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #999999;
  margin-top: 20px;
}

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

footer {
  padding: 48px 40px 52px;
  text-align: center;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.back-to-top {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #bbbbbb;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: #1a1a1a;
}

.copyright {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #bbbbbb;
}

/* -----------------------------------------
   Page transition fade-in
----------------------------------------- */

body {
  animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* -----------------------------------------
   Responsive — Tablet
----------------------------------------- */

@media (max-width: 900px) {
  header {
    padding: 36px 24px 24px;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header-meta {
    align-items: flex-start;
    width: 100%;
    gap: 12px;
  }

  nav {
    justify-content: flex-start;
    gap: 24px;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 24px 0;
    gap: 10px;
  }

  .project-thumb {
    flex: initial;
    height: auto;
    aspect-ratio: 4/5;
  }

  .project-images {
    padding: 0 24px;
  }

  .project-images.project-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-copy {
    max-width: none;
  }

  .about-sections {
    grid-template-columns: 1fr;
  }

  .about-section-wide {
    grid-column: auto;
  }
}

/* -----------------------------------------
   Responsive — Mobile
----------------------------------------- */

@media (max-width: 600px) {
  header {
    padding: 28px 20px 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    padding: 24px 12px 0;
    gap: 10px;
  }

  .project-thumb {
    aspect-ratio: 3/2;
  }

  .project-header {
    padding: 28px 20px 24px;
  }

  .project-images {
    padding: 0 12px;
  }

  .project-images.project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .project-gallery-item {
    aspect-ratio: 4 / 5;
  }

  .about-sections {
    gap: 14px;
  }

  .about-section-wide {
    grid-column: 1 / -1;
  }

  .about-wrap,
  .contact-wrap {
    padding: 0 20px 60px;
  }

  .about-section,
  .contact-card {
    padding: 22px 20px 24px;
  }

  .project-credits {
    padding: 0 20px 48px;
  }

  .site-name img {
    max-width: 220px;
  }

  .social-links a {
    width: 32px;
    height: 32px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-nav {
    width: 40px;
    height: 54px;
  }

  .project-thumb-label {
    opacity: 1;
    padding: 28px 18px 16px;
    transform: translateY(0);
  }
}

@media (hover: none) {
  .project-thumb-label {
    opacity: 1;
  }

  .project-thumb:hover img {
    transform: none;
  }
}
