/* ============================================
   STIKKAS v0.2 — Editorial Photography Studio
   Inspired by: mpix.com structure, Artifact Uprising, Kinfolk
   ============================================ */

:root {
  /* Palette (mpix-derived + Stikkas warm shift) */
  --cream:       #F4EFE6;
  --cream-2:     #ECE5D7;
  --paper:       #FFFFFF;
  --ink:         #1A1714;
  --ink-soft:    #3D3631;
  --muted:       #7A6E64;
  --line:        #D9CFBE;

  /* Accents */
  --slate:       #5C7A92;      /* mpix-style dusty slate-blue */
  --slate-deep:  #45607A;
  --terracotta:  #C76B55;
  --terracotta-2:#B05A48;
  --sage:        #93A48A;

  /* Promo bar */
  --bar-bg:      #1A1A1A;
  --bar-text:    #FFFFFF;

  /* Shadows */
  --shadow-sm: 0 1px 8px rgba(26,23,20,0.05);
  --shadow-md: 0 16px 48px rgba(26,23,20,0.10);

  /* Radii — mpix uses very small radius for "print/editorial" feel */
  --radius-xs: 2px;
  --radius:    6px;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Container */
  --max:   1240px;
  --pad:   clamp(20px, 4vw, 48px);

  /* Type */
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --t-fast: 180ms cubic-bezier(.2,.7,.3,1);
  --t-med:  320ms cubic-bezier(.2,.7,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(30px, 5vw, 60px); overflow-wrap: break-word; word-break: normal; hyphens: none; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
em { font-style: italic; color: var(--terracotta); }

/* ---------- Micro labels (mpix signature: tiny caps with wide tracking) ---------- */
.micro-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.6em;
}
.micro-label-light { color: rgba(255,255,255,0.72); }

/* ---------- Lede ---------- */
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.55;
}
.lede-light { color: rgba(255,255,255,0.85); }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); min-width: 0; }
/* Tighter side padding on promo + nav so the right-side CTA fits on small phones */
.promo-bar > .container,
.site-header > .container {
  padding-left: clamp(14px, 4vw, 48px);
  padding-right: clamp(14px, 4vw, 48px);
}
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-white { background: var(--paper); }
.section-cream { background: var(--cream-2); }

.section-head {
  max-width: 720px; margin: 0 auto var(--s-8);
  text-align: center;
}
.section-head .micro-label { display: block; }
.section-head .lede { margin: var(--s-3) auto 0; }
.section-foot { text-align: center; margin-top: var(--s-7); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--bar-bg);
  color: var(--bar-text);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 10px 0;
}
.promo-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-4); flex-wrap: wrap;
}
.promo-text { margin: 0; min-width: 0; }
@media (max-width: 600px) {
  .promo-text { font-size: 11px; text-align: center; flex: 1; }
}
.promo-text a {
  color: var(--bar-text);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
}
.promo-text a:hover { border-bottom-color: #fff; }
.promo-links {
  display: flex; gap: var(--s-5);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.promo-links a:hover { color: var(--terracotta); }
@media (max-width: 600px) {
  .promo-links { display: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
  gap: var(--s-3);
  flex-wrap: nowrap;
}
.brand { flex-shrink: 0; }
@media (max-width: 480px) {
  .brand-logo { height: 22px; }
  .nav-cta { padding: 8px 14px; font-size: 10px; letter-spacing: 0.12em; }
  .nav-cta::after { content: ''; }
}
@media (max-width: 380px) {
  .nav-cta { padding: 7px 10px; }
}
.brand-logo { height: 26px; width: auto; }
.nav-links {
  display: flex; gap: var(--s-7);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--terracotta); }

.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: background var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--terracotta); }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ---------- HERO (split: text panel + image) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--cream);
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 640px; }
}
.hero-panel {
  background: var(--slate);
  color: var(--paper);
  display: flex; align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 80px);
  min-width: 0;
  overflow: hidden;
}
.hero-panel-inner {
  max-width: 460px;
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.hero-panel-inner * { max-width: 100%; }
.hero-panel .micro-label { color: rgba(255,255,255,0.7); }
.hero-title {
  color: var(--paper);
  margin-bottom: var(--s-5);
}
.hero-title em {
  color: var(--cream);
  font-style: italic;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin: 0 0 var(--s-6);
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero-cta {
  display: flex; gap: var(--s-5); flex-wrap: wrap; align-items: center;
}
.hero-image {
  background: url('/assets/photos/hero.jpg') center/cover no-repeat;
  min-height: 320px;
}
@media (max-width: 899px) {
  .hero-image { aspect-ratio: 4/3; }
}

/* ---------- Buttons (mpix-style: rectangular, caps) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--paper); color: var(--ink);
}
.btn-primary:hover { background: var(--terracotta); color: var(--paper); transform: translateY(-1px); }

.btn-light {
  background: var(--paper); color: var(--ink);
}
.btn-light:hover { background: var(--ink); color: var(--paper); }

.btn-dark {
  background: var(--ink); color: var(--paper);
}
.btn-dark:hover { background: var(--terracotta); }

/* ---------- Link CTAs (underlined inline) ---------- */
.link-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap var(--t-fast), color var(--t-fast);
  margin: 0;
}
.link-cta:hover { gap: 10px; color: var(--cream); }

.link-cta-light { color: var(--paper); }

/* Inline link-cta on light backgrounds */
.section-white .link-cta,
.section-cream .link-cta,
.promo-card .link-cta {
  color: var(--slate-deep);
}
.section-white .link-cta:hover,
.section-cream .link-cta:hover,
.promo-card .link-cta:hover { color: var(--terracotta-2); }

.view-all {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate-deep);
  border-bottom: 1px solid var(--slate-deep);
  padding-bottom: 4px;
}
.view-all:hover { color: var(--terracotta-2); border-bottom-color: var(--terracotta-2); }

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--cream-2); color: var(--ink-soft);
  padding: 5px 11px; border-radius: var(--radius-xs);
  margin-bottom: var(--s-3);
}

/* ---------- Promo row (2-up) ---------- */
.promo-row { background: var(--cream); padding: var(--s-9) 0; }
.two-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 800px) { .two-up { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

.promo-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo-card-image {
  aspect-ratio: 16 / 11;
  background-size: cover; background-position: center;
}
.promo-card-image--wedding { background-image: url('/assets/photos/wedding.jpg'); }
.promo-card-image--coloring { background-image: url('/assets/photos/coloring.jpg'); }
.promo-card-body { padding: var(--s-6) var(--s-6) var(--s-7); }
.promo-card-body h3 { margin: var(--s-2) 0 var(--s-4); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: var(--paper);
  overflow: hidden;
  transition: transform var(--t-med);
}
.product-link {
  display: flex; flex-direction: column; height: 100%;
}
.product-card:hover { transform: translateY(-4px); }
.product-card:hover .product-image { transform: scale(1.03); }
.product-image {
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
  background-color: var(--cream-2);
  transition: transform 600ms cubic-bezier(.2,.7,.3,1);
}
.product-image--wedding { background-image: url('/assets/photos/wedding.jpg'); }
.product-image--coloring { background-image: url('/assets/photos/coloring.jpg'); }
.product-image--planner { background-image: url('/assets/photos/planner.jpg'); }
.product-body {
  padding: var(--s-5) 0 0;
  display: flex; flex-direction: column;
  flex: 1;
}
.product-body h3 { margin: 0 0 var(--s-3); }
.product-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: var(--s-3);
  flex: 1;
}
.product-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.product-source { color: var(--ink); }

/* ---------- Testimonial band ---------- */
.testimonial {
  background: var(--cream);
  padding: var(--s-10) 0;
  text-align: center;
}
.testimonial-inner { max-width: 720px; margin: 0 auto; }
.stars {
  font-size: 16px;
  letter-spacing: 0.5em;
  color: var(--terracotta);
  margin: 0 0 var(--s-5);
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  letter-spacing: -0.005em;
}
.testimonial-attr {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 600;
}

/* ---------- Studio / Lab section ---------- */
.section-studio {
  background: var(--ink);
  color: var(--paper);
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.studio-image {
  background: url('/assets/photos/lab.jpg') center/cover no-repeat;
  min-height: 420px;
  min-width: 0;
}
@media (max-width: 899px) { .studio-image { aspect-ratio: 4/3; } }
.studio-copy {
  padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.studio-copy > * { max-width: 480px; }
.studio-copy h2 { color: var(--paper); }
.studio-copy p { color: rgba(255,255,255,0.78); }
.studio-copy .link-cta { color: var(--paper); margin-top: var(--s-3); align-self: flex-start; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1.5fr 1fr; gap: var(--s-9); align-items: start; }
}
.about-meta {
  background: var(--paper);
  padding: var(--s-6) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about-meta dl { margin: 0; }
.about-meta dt {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--s-1);
}
.about-meta dd {
  margin: 0 0 var(--s-5);
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  line-height: 1.3;
}
.about-meta dd:last-child { margin-bottom: 0; }

/* ---------- Newsletter ---------- */
.section-newsletter {
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: var(--paper);
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
}
.newsletter-inner { max-width: 640px; margin: 0 auto; }
.section-newsletter h2 { color: var(--paper); margin-bottom: var(--s-3); }
.newsletter-form {
  display: flex; gap: var(--s-3); flex-wrap: wrap;
  max-width: 480px; margin: var(--s-7) auto var(--s-3);
}
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.96);
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}
.fineprint {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: center; }
}
.contact-links { display: flex; flex-direction: column; gap: var(--s-3); }
.contact-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-5) var(--s-6);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.contact-links a:hover {
  border-color: var(--terracotta);
  background: var(--paper);
  transform: translateX(4px);
}
.contact-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--s-9) 0 var(--s-5);
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr; gap: var(--s-9); }
}
.footer-brand { max-width: 380px; }
.footer-logo {
  height: 22px;
  filter: invert(1) brightness(1.05);
  margin-bottom: var(--s-4);
}
.footer-tag { margin: 0; line-height: 1.55; color: rgba(255,255,255,0.65); }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
}
.footer-cols .micro-label { display: block; margin-bottom: var(--s-4); }
.footer-cols ul li { margin-bottom: var(--s-2); }
.footer-cols a {
  color: rgba(255,255,255,0.78);
  transition: color var(--t-fast);
}
.footer-cols a:hover { color: var(--terracotta); }

.footer-legal {
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}
.footer-legal p { margin: 0; }

/* ---------- Utility ---------- */
.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;
}

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