/* ============================================
   Lexi Hunter — Portfolio Site
   Clean & minimal base styles
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #1b4332;
  --color-line: #a9cbb3;
  --color-accent: #1a1a1a;
  --color-heading: #1b4332;
  --color-blush: #e8c9bc;
  --color-blush-text: #3a2c24;
  --max-width: 860px;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  animation: page-fade-in 0.4s ease;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Native cross-page transitions (Chrome/Edge/Safari 18+; ignored elsewhere) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}

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

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

a:hover {
  opacity: 0.7;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

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

header {
  padding: 20px 0;
}

.header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 40px;
}

.site-name {
  display: inline-block;
  flex: 0 0 auto;
}

.site-name img {
  height: 56px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px;
  font-size: 16px;
}

nav a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

nav a.active,
nav a:hover {
  border-bottom: 1px solid var(--color-text);
  opacity: 1;
}


/* ---------- Hero (home page) ---------- */

.hero {
  background: #f2efe9 url('images/hero.jpg') center/cover no-repeat;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.hero-inner {
  max-width: 620px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 20px;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.7), 0 1px 4px rgba(255, 255, 255, 0.6);
}

.hero p {
  color: var(--color-heading);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 17px;
  background: rgba(244, 221, 211, 0.78);
  padding: 18px 26px;
  border-radius: 10px;
}

.hero-image {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 48px;
}

.button {
  display: inline-block;
  background: var(--color-blush);
  color: var(--color-blush-text);
  border: none;
  border-radius: 2px;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button:hover {
  background: #ddb7a7;
  opacity: 1;
}

/* ---------- Generic page content ---------- */

main {
  padding: 64px 0 80px;
}

main h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 24px;
}

main h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-heading);
  margin: 40px 0 12px;
}

main p {
  margin-bottom: 18px;
}

.muted {
  color: var(--color-muted);
}

.link {
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover {
  opacity: 0.7;
}

.placeholder-note {
  background: #f1f6f2;
  border: 1px dashed var(--color-line);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 32px;
}

/* ---------- About page (photo + copy) ---------- */

.about-layout {
  display: flex;
  gap: 48px;
  align-items: stretch;
}

.about-photo {
  flex: 0 0 46%;
  position: relative;
  align-self: stretch;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  border-radius: 4px;
}

.about-photo-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f1f6f2;
  border: 1px dashed var(--color-line);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--color-muted);
  border-radius: 4px;
}

.about-copy {
  flex: 1;
  min-width: 0;
}

.about-copy h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 24px;
}

@media (max-width: 700px) {
  .about-layout {
    flex-direction: column;
  }
  .about-photo {
    flex: 0 0 auto;
    width: 100%;
  }
  .about-photo img {
    min-height: 420px;
  }
}

/* ---------- Gallery grid (for portfolio-type pages) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.grid-item {
  border: 1px solid var(--color-line);
  padding: 16px;
}

.grid-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.grid-item p {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- Photo tiles (image with white overlay title) ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0) 70%);
}

.tile-title {
  position: relative;
  z-index: 1;
  color: var(--color-blush);
  font-family: 'Fraunces', 'Poppins', serif;
  font-optical-sizing: auto;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  padding: 28px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* ---------- Project detail pages ---------- */

.project-desc {
  max-width: 720px;
  margin: 20px 0 48px;
  font-size: 17px;
  color: var(--color-text);
}

.detail-gallery {
  column-count: 2;
  column-gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.detail-gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-bottom: 28px;
  break-inside: avoid;
}

@media (min-width: 1200px) {
  .detail-gallery {
    column-count: 3;
  }
}

@media (max-width: 700px) {
  .detail-gallery {
    column-count: 1;
  }
}

.animation-gallery {
  column-count: 1 !important;
  max-width: 1300px !important;
}

.animation-gallery img {
  width: 100%;
}

@media (min-width: 900px) {
  .animation-gallery {
    column-count: 2 !important;
  }
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
}

.detail-nav a {
  color: var(--color-heading);
  font-weight: 600;
}

.detail-nav a:hover {
  opacity: 0.7;
}

/* ---------- AI page (timeline + stats + Slack-style quotes) ---------- */

.ai-intro {
  max-width: 680px;
  margin: 8px 0 56px;
}

.ai-intro p {
  font-size: 18px;
}

.ai-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 36px;
}

.ai-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-line);
}

.ai-entry {
  position: relative;
  margin-bottom: 56px;
}

.ai-entry:last-child {
  margin-bottom: 0;
}

.ai-entry-marker {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-heading);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--color-line);
}

.ai-entry-date {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-heading);
  font-weight: 600;
  margin-bottom: 6px;
}

.ai-entry h2 {
  font-family: 'Fraunces', 'Poppins', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--color-heading);
  margin: 0 0 12px;
}

.ai-entry p {
  margin: 0 0 14px;
  max-width: 620px;
}

.ai-stat {
  display: inline-block;
  background: var(--color-blush);
  color: var(--color-blush-text);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  margin: 2px 0 18px;
}

.slack-quote {
  background: #f8f8f7;
  border: 1px solid #e6e4e0;
  border-radius: 8px;
  padding: 14px 16px;
  max-width: 540px;
  margin-top: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.slack-quote-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.slack-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--color-heading);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

.slack-quote-role {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}

.slack-quote-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #2c2c2c;
}

.slack-quote-reactions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.reaction {
  background: #eef3ff;
  border: 1px solid #d7e3ff;
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 12.5px;
  color: #3a5a9e;
}

.ai-closing {
  max-width: 620px;
  margin: 64px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
  font-size: 17px;
  color: var(--color-heading);
  font-weight: 500;
}

@media (max-width: 600px) {
  .ai-timeline {
    padding-left: 28px;
  }
  .ai-entry-marker {
    left: -28px;
  }
}

/* ---------- Writing landing page ---------- */

.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 36px;
  margin-top: 40px;
}

/* ---------- Copywriting detail pages ---------- */

.pullquote {
  max-width: 640px;
  margin: 0 0 32px;
  padding: 20px 24px;
  background: #f1f6f2;
  border-left: 3px solid var(--color-heading);
  border-radius: 4px;
}

.pullquote p {
  margin: 0;
  font-size: 17px;
  font-style: italic;
  color: #2c2c2c;
}

.pullquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  color: var(--color-muted);
}

.stat-line {
  display: inline-block;
  background: var(--color-blush);
  color: var(--color-blush-text);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  margin: 4px 0 28px;
}

.email-frame {
  max-width: 480px;
  margin: 0 0 32px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  overflow: hidden;
}

.email-frame img {
  width: 100%;
  display: block;
}

/* ---------- Book-shaped cards (Creative Writing) ---------- */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 56px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.book-card {
  display: block;
  text-align: center;
}

.book-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: -8px 0 0 rgba(0, 0, 0, 0.12) inset, 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
  opacity: 1;
}

.book-card:hover .book-cover {
  transform: translateY(-6px);
  box-shadow: -8px 0 0 rgba(0, 0, 0, 0.12) inset, 0 20px 36px rgba(0, 0, 0, 0.28);
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0) 65%);
}

.book-cover-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  color: var(--color-blush);
  font-family: 'Fraunces', 'Poppins', serif;
  font-weight: 900;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  padding: 20px 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.book-label {
  margin-top: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.book-detail-cover {
  max-width: 340px;
  margin: 0 0 32px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.book-cover-text {
  background: linear-gradient(160deg, #24352b 0%, #0e1610 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-text::after {
  background: none;
}

.book-cover-text .book-cover-title {
  position: static;
  padding: 24px;
}

.book-cover-subtitle {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(232, 201, 188, 0.75);
  margin-top: 10px;
}

.excerpt-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}

.excerpt-body p {
  margin-bottom: 18px;
}

.excerpt-dateline {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.excerpt-fade {
  max-width: 680px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--color-muted);
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

/* ---------- Video detail pages ---------- */

.video-wrap {
  max-width: 900px;
  margin: 0 auto 8px;
}

.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  display: block;
  background: #000;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 13px;
  color: var(--color-muted);
}

.availability-note {
  max-width: 720px;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 15px;
  color: var(--color-muted);
}

/* ---------- Lightbox ---------- */

.detail-gallery img {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.lightbox-close:hover {
  opacity: 1;
}

.edu-item {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--color-text);
}

.edu-item strong {
  display: block;
  color: var(--color-heading);
  font-size: 16px;
  margin-bottom: 2px;
}

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

form {
  max-width: 480px;
  margin-top: 24px;
}

label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  margin-top: 18px;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  font-family: var(--font-body);
  font-size: 15px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

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

footer {
  padding: 40px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

footer .footer-name {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 8px;
}

footer a {
  border-bottom: 1px solid transparent;
}

footer a:hover {
  border-bottom: 1px solid var(--color-muted);
  opacity: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .hero {
    min-height: 380px;
    background-size: contain;
    background-position: center;
    padding: 40px 20px;
  }
  .hero h1 {
    font-size: 32px;
  }
  nav {
    gap: 14px;
  }
  .wrap,
  .wrap-wide,
  .header-inner,
  footer .wrap {
    padding: 0 20px;
  }
}
