/* ========================================
   Field Lantern Atelier
   Design System: Paper and Dusk
   ======================================== */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  line-height: 1.65;
  color: #1a252f;
  background-color: #ecf0f1;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a252f;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p {
  max-width: 65ch;
  margin-bottom: 1.2rem;
}

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

.label {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5d6d5d;
}

/* --- Focus ------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #f39c12;
  outline-offset: 3px;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-primary {
  background-color: #f39c12;
  color: #1a252f;
}

.btn-primary:hover {
  background-color: #f1c40f;
}

.btn-outline {
  background-color: transparent;
  color: #ecf0f1;
  border-color: #ecf0f1;
}

.btn-outline:hover {
  background-color: #ecf0f1;
  color: #2c3e50;
}

/* --- Layout ------------------------------------------------ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

/* --- Dark Sections ----------------------------------------- */
.dark {
  background-color: #2c3e50;
  color: #ecf0f1;
}

.dark h1,
.dark h2,
.dark h3 {
  color: #ecf0f1;
}

.dark .label {
  color: #95a5a6;
}

/* --- Paper Grain Texture ----------------------------------- */
.paper-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* --- Hero -------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero .label {
  color: #95a5a6;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  color: #bdc3c7;
  line-height: 1.5;
}

/* --- Lantern Animation ------------------------------------- */
.lantern-wrap {
  position: relative;
  width: 120px;
  height: 180px;
  margin: 0 auto 3rem;
}

.lantern-body {
  width: 100px;
  height: 140px;
  background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
  border-radius: 50px 50px 40px 40px;
  position: absolute;
  top: 20px;
  left: 10px;
  box-shadow:
    inset 0 -10px 20px rgba(0,0,0,0.1),
    0 0 40px rgba(243,156,18,0.35),
    0 0 80px rgba(243,156,18,0.15);
  animation: lantern-pulse 4s ease-in-out infinite;
}

.lantern-cap {
  width: 40px;
  height: 10px;
  background: #1a252f;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 40px;
}

.lantern-tassel {
  width: 4px;
  height: 40px;
  background: #1a252f;
  position: absolute;
  bottom: -20px;
  left: 58px;
  border-radius: 2px;
}

.lantern-tassel::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #1a252f;
  border-radius: 50%;
  position: absolute;
  bottom: -6px;
  left: -4px;
}

@keyframes lantern-pulse {
  0%, 100% {
    box-shadow:
      inset 0 -10px 20px rgba(0,0,0,0.1),
      0 0 40px rgba(243,156,18,0.35),
      0 0 80px rgba(243,156,18,0.15);
  }
  50% {
    box-shadow:
      inset 0 -10px 20px rgba(0,0,0,0.1),
      0 0 60px rgba(243,156,18,0.5),
      0 0 120px rgba(243,156,18,0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lantern-body {
    animation: none;
    box-shadow:
      inset 0 -10px 20px rgba(0,0,0,0.1),
      0 0 40px rgba(243,156,18,0.35);
  }
}

/* --- About Section ----------------------------------------- */
.about {
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-text {
  padding-left: 0;
}

@media (min-width: 768px) {
  .about-text {
    padding-left: 4vw;
  }
}

.about-text h2 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.about-text p {
  color: #34495e;
}

.about-image {
  position: relative;
  min-height: 320px;
  background: #d5dbdb;
  border-radius: 2px;
  overflow: hidden;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(243,156,18,0.08) 0%, transparent 60%);
}

/* --- Scenes Section ---------------------------------------- */
.scenes {
  background-color: #e8e8e8;
}

.scenes-header {
  text-align: center;
  margin-bottom: 4rem;
}

.scenes-header h2 {
  margin-bottom: 0.75rem;
}

.scenes-header p {
  color: #5d6d5d;
  margin: 0 auto;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .scene-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.scene-card {
  background: #ecf0f1;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.scene-card:hover {
  transform: translateY(-6px);
}

.scene-image {
  height: 240px;
  background: #bdc3c7;
  position: relative;
  overflow: hidden;
}

.scene-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,37,47,0.4) 100%);
}

.scene-body {
  padding: 1.5rem 1.5rem 2rem;
}

.scene-body h3 {
  margin-bottom: 0.5rem;
}

.scene-body p {
  font-size: 0.95rem;
  color: #34495e;
  margin-bottom: 0;
}

/* --- Process Section --------------------------------------- */
.process {
  position: relative;
}

.process-header {
  margin-bottom: 4rem;
  padding-left: 0;
}

@media (min-width: 768px) {
  .process-header {
    padding-left: 8vw;
  }
}

.process-header h2 {
  margin-bottom: 0.75rem;
}

.process-header p {
  color: #bdc3c7;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-left: 8vw;
  }
}

.step {
  position: relative;
}

.step-number {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #f39c12;
  display: block;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.step p {
  font-size: 0.95rem;
  color: #bdc3c7;
  margin-bottom: 0;
}

/* --- Contact / Footer -------------------------------------- */
.contact {
  text-align: center;
  padding-bottom: 4rem;
}

.contact h2 {
  margin-bottom: 1rem;
}

.contact > p {
  color: #bdc3c7;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.email-link {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: #f39c12;
  display: inline-block;
  margin-bottom: 3rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.email-link:hover {
  border-color: #f39c12;
}

.footer-note {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: #5d6d5d;
  margin-top: 4rem;
}

/* --- Utilities --------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
