/* =========================================================
   ARLO'S MASKS — cozy den design system
   ========================================================= */
:root{
  --cream:      #F6EEE1;
  --cream-dim:  #EFE3D0;
  --blush:      #E9CBBD;
  --blush-soft: #F1DCCF;
  --sage-soft:  #DCE3C6;
  --sage-mid:   #8B9A63;
  --sage-deep:  #5B6B45;
  --walnut:     #6B4A34;
  --walnut-dark:#4A3324;
  --amber:      #C8813E;
  --amber-dim:  #A9682F;
  --ink:        #3B2E22;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Caveat", cursive;

  --wrap: 1160px;
  --edge: clamp(20px, 4vw, 56px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* =========================================================
   TYPE
   ========================================================= */
h1,h2,h3{ font-family: var(--display); margin:0; font-weight:500; letter-spacing:-0.01em; color: var(--walnut-dark); }
h1 em, h2 em{ font-style: italic; color: var(--amber-dim); }

.script-line{
  font-family: var(--script);
  font-size: 26px;
  color: var(--sage-deep);
  margin: 0 0 6px;
  font-weight: 600;
}
.script-line--center{ text-align:center; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--body); font-weight:700; font-size: 15px;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration:none;
  border: 1.5px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-solid{ background: var(--amber); color: var(--cream); box-shadow: 0 6px 16px rgba(169,104,47,0.28); }
.btn-solid:hover{ background: var(--amber-dim); }

.btn-ghost{ background: transparent; color: var(--walnut-dark); border-color: var(--walnut); }
.btn-ghost:hover{ background: var(--walnut); color: var(--cream); }

.btn-line{ background: rgba(255,255,255,0.35); color: var(--walnut-dark); border-color: rgba(107,74,52,0.35); padding: 9px 20px; font-size: 14px; }
.btn-line:hover{ background: var(--walnut); color: var(--cream); border-color: var(--walnut); }

.btn-lg{ padding: 16px 32px; font-size: 16px; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 300;
  background: rgba(246,238,225,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107,74,52,0.14);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.wordmark{
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 22px; color: var(--walnut-dark); text-decoration:none; letter-spacing: -0.01em;
}
.wordmark--small{ font-size:18px; }

.main-nav{ display:flex; gap: 34px; }
.main-nav a{
  color: var(--ink); text-decoration:none; font-size: 14.5px; font-weight:700;
  letter-spacing: 0.01em;
  position:relative; padding: 4px 0;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background: var(--sage-mid); border-radius: 2px; transition: right .25s ease;
}
.main-nav a:hover::after{ right:0; }

.header-actions{ display:flex; align-items:center; gap: 16px; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 36px; height: 36px; background:none; border:none; cursor:pointer; padding:0;
}
.nav-toggle span{ display:block; height:2px; width:100%; background: var(--walnut-dark); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  background:
    radial-gradient(circle at 82% 18%, rgba(233,203,189,0.55) 0%, transparent 55%),
    var(--cream);
  padding: 76px 0 90px;
}
.hero-inner{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items:center;
}
.hero-title{
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  margin: 4px 0 22px;
}
.hero-sub{
  font-size: 17px; max-width: 480px; color: rgba(59,46,34,0.78);
  margin: 0 0 14px;
}
.hero-bio{
  font-size: 15.5px; max-width: 480px; color: var(--sage-deep);
  font-style: italic; margin: 0 0 28px;
}
.hero-cta{ display:flex; flex-wrap:wrap; gap: 16px; margin-bottom: 22px; }
.hero-follow{ font-size: 14.5px; color: rgba(59,46,34,0.7); }
.hero-follow a{ color: var(--amber-dim); text-decoration: underline; text-underline-offset:3px; font-weight:700; }

.hero-photo{ position:relative; display:flex; justify-content:center; }
.vine{ position:absolute; z-index:0; opacity:0.85; }
.vine-hero{ width: 90px; height:auto; top: -30px; left: -20px; }

/* =========================================================
   POLAROIDS
   ========================================================= */
.polaroid{
  position:relative; z-index:1;
  background: #FFFDF8;
  padding: 14px 14px 20px;
  box-shadow: 0 14px 30px rgba(74,51,36,0.18), 0 2px 6px rgba(74,51,36,0.12);
  border-radius: 3px;
}
.polaroid img{ width:100%; aspect-ratio: 4/5; object-fit:cover; object-position:50% 22%; border-radius: 1px; }
.polaroid-caption{
  font-family: var(--script); font-size: 20px; color: var(--sage-deep);
  text-align:center; margin: 12px 0 0;
}

.polaroid-hero{ width: min(360px, 82vw); transform: rotate(-3deg); }
.polaroid-hero::before{
  content:""; position:absolute; top:-16px; left: 50%; margin-left:-38px;
  width:76px; height:26px; background: rgba(139,154,99,0.55);
  border: 1px solid rgba(139,154,99,0.7);
  transform: rotate(-4deg);
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head{ max-width: 640px; margin-bottom: 50px; }
.section-head h2{ font-size: clamp(28px, 3.6vw, 40px); line-height:1.14; margin-bottom: 14px; }
.section-note{ color: rgba(59,46,34,0.68); font-size: 15.5px; max-width: 520px; }
.section-head--center{ margin-left:auto; margin-right:auto; text-align:center; }

/* =========================================================
   GALLERY / SCRAPBOARD
   ========================================================= */
.gallery{ background: var(--cream); padding: 100px 0 96px; }

.scrapboard{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px 28px;
}
.tilt-1{ transform: rotate(-2.4deg); }
.tilt-2{ transform: rotate(1.6deg); }
.tilt-3{ transform: rotate(-1deg); }
.polaroid:hover{ transform: rotate(0deg) scale(1.03); box-shadow: 0 20px 34px rgba(74,51,36,0.24); z-index:5; }
.scrapboard .polaroid{ transition: transform .35s ease, box-shadow .35s ease; }

.gallery-cta{
  margin-top: 56px; text-align:center; font-size: 15.5px; color: rgba(59,46,34,0.68);
}
.gallery-cta a{ color: var(--sage-deep); font-weight:700; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   PROCESS
   ========================================================= */
.process{ background: var(--sage-soft); padding: 100px 0; }
.process-grid{
  display:grid; grid-template-columns: repeat(5, 1fr); gap: 30px;
}
.process-step{ text-align:center; }
.process-icon{
  width: 68px; height: 68px; margin: 0 auto 18px;
  background: var(--cream); border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--sage-deep);
  box-shadow: 0 6px 14px rgba(91,107,69,0.18);
}
.process-icon svg{ width: 30px; height:30px; }
.process-step h3{ font-size: 18px; margin-bottom: 8px; color: var(--walnut-dark); }
.process-step p{ margin:0; color: rgba(59,46,34,0.72); font-size: 14px; line-height:1.55; }

/* =========================================================
   CUSTOM ORDERS
   ========================================================= */
.custom{ background: var(--blush-soft); padding: 104px 0; }
.custom-inner{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items:center;
}
.custom-copy h2{ font-size: clamp(28px,3.4vw,38px); margin-bottom: 18px; line-height:1.15; }
.custom-copy p{ color: rgba(59,46,34,0.78); font-size: 16px; margin: 0 0 20px; }
.custom-list{ margin: 0 0 22px; padding-left: 20px; color: rgba(59,46,34,0.8); font-size: 15px; }
.custom-list li{ margin-bottom: 8px; }
.custom-note{
  font-size: 14px; font-style: italic;
  color: rgba(59,46,34,0.65);
  margin: 0 0 24px;
}
.custom-media{ position:relative; display:flex; justify-content:center; }
.vine-custom{ width: 220px; height:auto; top:-46px; left: 50%; transform: translateX(-50%); }
.polaroid-custom{ width: min(320px, 80vw); transform: rotate(2.4deg); }

/* =========================================================
   FOOTER (doubles as closing CTA)
   ========================================================= */
.site-footer{ background: var(--sage-deep); color: var(--cream); padding: 64px 0 32px; }
.footer-top{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap: 28px; padding-bottom: 36px; border-bottom: 1px solid rgba(246,238,225,0.22);
}
.footer-top .wordmark{ color: var(--cream); font-size: 26px; }
.footer-tagline{ margin: 8px 0 0; color: rgba(246,238,225,0.8); font-size: 15px; max-width: 320px; }
.footer-actions{ display:flex; flex-wrap:wrap; gap: 14px; }
.footer-actions .btn-ghost{ color: var(--cream); border-color: rgba(246,238,225,0.6); }
.footer-actions .btn-ghost:hover{ background: var(--cream); color: var(--sage-deep); border-color: var(--cream); }

.footer-bottom{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap: 16px; padding-top: 24px;
}
.footer-links{ display:flex; gap: 24px; }
.footer-links a{ text-decoration:none; color: rgba(246,238,225,0.85); font-size: 14px; font-weight:600; }
.footer-links a:hover{ color: var(--cream); }
.footer-note{ font-size: 12.5px; color: rgba(246,238,225,0.6); margin:0; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform: translateY(0); }
.scrapboard .reveal.in-view.tilt-1{ transform: rotate(-2.4deg); }
.scrapboard .reveal.in-view.tilt-2{ transform: rotate(1.6deg); }
.scrapboard .reveal.in-view.tilt-3{ transform: rotate(-1deg); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-photo{ order:-1; margin-bottom: 20px; }
  .scrapboard{ grid-template-columns: repeat(3, 1fr); }
  .process-grid{ grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .custom-inner{ grid-template-columns: 1fr; }
  .custom-media{ order:-1; }
}

@media (max-width: 720px){
  .main-nav{
    position: fixed; inset: 76px 0 0 0; height: calc(100vh - 76px);
    background: var(--cream);
    flex-direction: column; gap:0; padding: 10px var(--edge);
    transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .main-nav.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .main-nav a{ padding: 18px 0; border-bottom: 1px solid rgba(107,74,52,0.14); font-size: 17px; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-line{ display:none; }
  .scrapboard{ grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .process-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px){
  .scrapboard{ grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .process-grid{ grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
}
