@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #1a1118;
  --paper: #f5f0e8;
  --purple: #6b4c9a;
  --purple-light: #9b7cc8;
  --orange: #d4722a;
  --green: #4a7a3f;
  --yellow: #e8b832;
  --cream: #faf6ee;
  --grey: #8a8279;
  --border: rgba(26,17,24,0.08);
}

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

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

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Grain overlay for texture ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--purple);
  color: var(--paper);
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--orange); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s ease;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-text h1 span {
  font-style: italic;
  color: var(--purple);
}

.hero-text .subtitle {
  font-size: 1.1rem;
  color: var(--grey);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 460px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 4px;
  box-shadow: 24px 24px 0 -4px var(--purple-light);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  opacity: 0.4;
}

/* ── Section basics ── */
section {
  padding: 6rem 0;
}

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

.section-header h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-header h2 em {
  color: var(--purple);
}

.section-header p {
  color: var(--grey);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Activities ── */
.activities {
  background: var(--cream);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.activity-card {
  padding: 2.5rem 2rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--purple);
  transition: height 0.4s ease;
}

.activity-card:hover::before {
  height: 100%;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(107,76,154,0.08);
}

.activity-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--purple);
}

.activity-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.activity-card p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Latest Work ── */
.latest-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card .work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(26,17,24,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-overlay h3 {
  font-family: 'Instrument Serif', serif;
  color: var(--paper);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.work-overlay p {
  color: rgba(245,240,232,0.7);
  font-size: 0.85rem;
}

/* ── Portfolio ── */
.portfolio {
  background: var(--ink);
  color: var(--paper);
}

.portfolio .section-header h2 { color: var(--paper); }
.portfolio .section-header p { color: rgba(245,240,232,0.5); }

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(245,240,232,0.15);
  color: rgba(245,240,232,0.6);
  padding: 0.5rem 1.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--paper);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  aspect-ratio: 1;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.portfolio-item .p-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.portfolio-item:hover .p-overlay {
  opacity: 1;
}

.p-overlay h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.p-overlay span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-light);
}

/* ── Instagram ── */
.instagram-section {
  background: var(--cream);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.insta-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insta-item:hover img {
  transform: scale(1.1);
}

.insta-item a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107,76,154,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 1.5rem;
}

.insta-item:hover a { opacity: 1; }

/* ── Contact ── */
.contact-section {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--grey);
  font-size: 0.9rem;
}

.contact-details li span:first-child {
  color: var(--purple);
  width: 20px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.3s ease;
  border-radius: 2px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--purple);
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--grey);
}

.btn-submit {
  align-self: flex-start;
  padding: 0.9rem 2.5rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.btn-submit:hover {
  background: var(--purple);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  padding: 0.8rem 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(74,122,63,0.1);
  color: var(--green);
  border: 1px solid rgba(74,122,63,0.2);
}

.form-message.error {
  display: block;
  background: rgba(212,114,42,0.1);
  color: var(--orange);
  border: 1px solid rgba(212,114,42,0.2);
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: rgba(245,240,232,0.5);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.85rem;
}

footer .footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

footer a { color: rgba(245,240,232,0.5); }
footer a:hover { color: var(--purple-light); }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26,17,24,0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--paper);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

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

/* ── Empty states ── */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--grey);
  font-style: italic;
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 0 auto; }
  .hero-image { display: none; }
  .latest-work-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245,240,232,0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.5rem;
  }
  .nav-toggle { display: flex; }
  .latest-work-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
}

/* ── Shop ── */
.shop-section {
  background: var(--paper);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.shop-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(107,76,154,0.1);
}

.shop-card-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.shop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shop-card:hover .shop-card-image img {
  transform: scale(1.06);
}

.shop-card-info {
  padding: 1.25rem;
}

.shop-card-info h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.shop-card-info p {
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple);
}

.shop-card-price small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--grey);
  margin-left: 0.3rem;
}

.shop-card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.shop-card-variants span {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--grey);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,17,24,0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

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

.modal-content {
  background: var(--paper);
  border-radius: 6px;
  max-width: 800px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--grey);
  z-index: 10;
  line-height: 1;
}

.modal-close:hover { color: var(--ink); }

.modal-body {
  padding: 2.5rem;
}

.modal-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.modal-product img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 1;
}

.modal-product-info h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.modal-product-info p {
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1rem;
}

.modal-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.variant-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  background: var(--cream);
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.variant-btn:hover {
  border-color: var(--purple-light);
}

.variant-btn.selected {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.variant-btn .variant-price {
  display: block;
  font-size: 0.7rem;
  color: var(--grey);
  margin-top: 0.15rem;
}

.variant-btn.selected .variant-price {
  color: rgba(255,255,255,0.7);
}

.modal-form h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.modal-form .form-hint {
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--purple);
}

@media (max-width: 640px) {
  .modal-product { grid-template-columns: 1fr; }
  .modal-body { padding: 1.5rem; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
