/* =========================================================
   Star Photo Lab — Atelier prototype
   Light theme · ivory paper · charcoal ink · antique gold
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  /* palette — deliberately tiny */
  --paper:      #f5f1e9;   /* warm ivory background        */
  --paper-2:    #efe9dd;   /* slightly deeper panel         */
  --surface:    #fdfbf6;   /* card surface, near white      */
  --ink:        #211f1b;   /* warm near-black text          */
  --ink-soft:   #5b564d;   /* secondary text                */
  --ink-faint:  #98917f;   /* tertiary / placeholders       */
  --line:       rgba(33,31,27,.12);   /* hairline borders   */
  --line-soft:  rgba(33,31,27,.07);
  --gold:       #9c7c3c;   /* antique gold, the one accent  */
  --gold-soft:  #c6a766;
  --gold-wash:  rgba(156,124,60,.10);
  --rose:       #9a4b46;   /* rare reject / alert tint      */

  --shadow-sm: 0 1px 2px rgba(33,31,27,.04);
  --shadow-md: 0 18px 40px -24px rgba(33,31,27,.35);
  --shadow-lg: 0 30px 70px -34px rgba(33,31,27,.45);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --maxw: 1120px;
  --ease: cubic-bezier(.4,.12,.2,1);
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Mulish', system-ui, sans-serif;
  font-size:16px;
  line-height:1.6;
  font-weight:400;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  /* faint paper grain + soft top glow */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.6), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  min-height:100vh;
}

/* ---------- typography ---------- */
h1,h2,h3,h4{
  font-family:'Fraunces', Georgia, serif;
  font-weight:400;
  color:var(--ink);
  margin:0;
  line-height:1.08;
  letter-spacing:-.01em;
}
.display{
  font-size:clamp(2.6rem,6vw,4.4rem);
  font-weight:300;
  letter-spacing:-.02em;
}
.serif-it{ font-style:italic; }
a{ color:inherit; text-decoration:none; }
p{ margin:0 0 1em; color:var(--ink-soft); }

.eyebrow{
  font-family:'Mulish',sans-serif;
  font-size:.7rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.26em;
  color:var(--gold);
  margin:0;
}
.muted{ color:var(--ink-soft); }
.faint{ color:var(--ink-faint); }
.price{ font-family:'Fraunces',serif; font-feature-settings:"tnum"; }

/* ---------- layout ---------- */
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 32px; }
.section{ padding:72px 0; }
.center{ text-align:center; }
.stack{ display:flex; flex-direction:column; }

/* ---------- top bar ---------- */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(140%) blur(8px);
  background:rgba(245,241,233,.82);
  border-bottom:1px solid var(--line-soft);
}
.topbar .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand .mark{
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--gold); color:var(--gold);
  display:grid; place-items:center;
  font-family:'Fraunces',serif; font-size:1rem; font-style:italic;
}
.brand .name{ font-family:'Fraunces',serif; font-size:1.18rem; letter-spacing:.01em; }
.brand .name b{ font-weight:500; }
.navlinks{ display:flex; align-items:center; gap:28px; font-size:.82rem; letter-spacing:.04em; }
.navlinks a{ color:var(--ink-soft); transition:color .25s var(--ease); }
.navlinks a:hover{ color:var(--ink); }

/* ---------- buttons ---------- */
.btn{
  --bg:var(--ink); --fg:var(--paper);
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:'Mulish',sans-serif; font-weight:600; font-size:.84rem;
  letter-spacing:.06em; text-transform:uppercase;
  padding:14px 28px; border-radius:var(--r-sm);
  background:var(--bg); color:var(--fg);
  border:1px solid var(--bg); cursor:pointer;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  box-shadow:var(--shadow-sm);
}
.btn:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn:active{ transform:translateY(0); }
.btn--ghost{ --bg:transparent; --fg:var(--ink); border-color:var(--line); }
.btn--ghost:hover{ border-color:var(--ink); background:transparent; }
.btn--gold{ --bg:var(--gold); --fg:#fff; border-color:var(--gold); }
.btn--lg{ padding:17px 36px; font-size:.9rem; }
.btn--block{ width:100%; }
.btn .arrow{ transition:transform .35s var(--ease); }
.btn:hover .arrow{ transform:translateX(4px); }

.link-underline{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.82rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink); position:relative; padding-bottom:3px;
}
.link-underline::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background:var(--gold); transform:scaleX(.0); transform-origin:left;
  transition:transform .4s var(--ease);
}
.link-underline:hover::after{ transform:scaleX(1); }

/* ---------- ornamental divider ---------- */
.divider{ display:flex; align-items:center; justify-content:center; gap:18px; margin:40px auto; max-width:520px; }
.divider .rule{ height:1px; flex:1;
  background:linear-gradient(90deg, transparent, var(--gold-soft) 60%, var(--gold)); }
.divider .rule:last-child{ background:linear-gradient(90deg, var(--gold), var(--gold-soft) 40%, transparent); }
.divider .lozenge{ width:9px; height:9px; transform:rotate(45deg);
  border:1px solid var(--gold); position:relative; }
.divider .lozenge::before{ content:""; position:absolute; inset:2px; background:var(--gold-wash); }

/* ---------- cards / panels ---------- */
.panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-sm);
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  padding:30px;
  box-shadow:var(--shadow-sm);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:rgba(33,31,27,.2); }

.grid{ display:grid; gap:24px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }

/* footer */
.foot{ border-top:1px solid var(--line-soft); padding:40px 0; margin-top:40px; }
.foot .wrap{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.foot small{ color:var(--ink-faint); letter-spacing:.04em; }

/* ---------- entrance animation ---------- */
@keyframes rise{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }
.reveal{ opacity:0; animation:rise .9s var(--ease) forwards; }
.d1{ animation-delay:.05s } .d2{ animation-delay:.15s } .d3{ animation-delay:.25s }
.d4{ animation-delay:.35s } .d5{ animation-delay:.45s } .d6{ animation-delay:.55s }
@media (prefers-reduced-motion:reduce){
  .reveal{ animation:none; opacity:1; }
  .btn,.card{ transition:none; }
}

/* =========================================================
   Landing
   ========================================================= */
.hero{ text-align:center; padding:90px 0 40px; }
.hero .tagline{
  font-family:'Fraunces',serif; font-style:italic; font-weight:300;
  font-size:clamp(1.1rem,2.4vw,1.5rem); color:var(--ink-soft); margin-top:14px;
}
.book{ width:min(360px,68vw); margin:46px auto 30px; display:block; }
.book path,.book line{ stroke:var(--ink); }

.entry-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; max-width:720px; margin:30px auto 0; }
.entry{
  text-align:center; padding:44px 28px; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:16px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.entry:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--gold); }
.entry .ico{ width:54px; height:54px; display:grid; place-items:center;
  border-radius:50%; border:1px solid var(--line); color:var(--gold); transition:.4s var(--ease); }
.entry:hover .ico{ border-color:var(--gold); background:var(--gold-wash); }
.entry h3{ font-size:1.18rem; }
.entry .sub{ font-size:.82rem; color:var(--ink-faint); letter-spacing:.03em; }

/* =========================================================
   Explore — tiers
   ========================================================= */
.tier{ position:relative; display:flex; flex-direction:column; }
.tier .tier-name{ font-family:'Fraunces',serif; font-size:1.5rem; }
.tier .tier-tag{ font-size:.7rem; text-transform:uppercase; letter-spacing:.2em; color:var(--gold); margin-bottom:18px; }
.tier.is-featured{ border-color:var(--gold); box-shadow:var(--shadow-md); }
.tier .ribbon{
  position:absolute; top:18px; right:-1px;
  background:var(--gold); color:#fff; font-size:.6rem; letter-spacing:.18em;
  text-transform:uppercase; padding:6px 14px; border-radius:4px 0 0 4px;
}
.spec{ list-style:none; padding:0; margin:0 0 24px; }
.spec li{ display:flex; justify-content:space-between; gap:16px;
  padding:11px 0; border-bottom:1px solid var(--line-soft); font-size:.92rem; }
.spec li:last-child{ border-bottom:0; }
.spec .k{ color:var(--ink-faint); letter-spacing:.04em; }
.spec .v{ color:var(--ink); font-weight:500; }
.tier .btn{ margin-top:auto; }

.feature-row{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:34px; }
.feature-tile{
  display:flex; align-items:center; gap:18px; padding:26px 28px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  cursor:pointer; transition:.4s var(--ease);
}
.feature-tile:hover{ border-color:var(--gold); transform:translateY(-3px); box-shadow:var(--shadow-md); }
.feature-tile .plus{ font-family:'Fraunces',serif; font-size:1.8rem; color:var(--gold); line-height:1; }
.feature-tile .ft-title{ font-family:'Fraunces',serif; font-style:italic; font-size:1.4rem; }
.feature-tile .ft-sub{ font-size:.8rem; color:var(--ink-faint); }

/* recent / frequent strip */
.saved-strip{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:24px; }
.saved{ display:flex; gap:20px; align-items:stretch; }
.saved .label{
  writing-mode:vertical-rl; transform:rotate(180deg);
  font-size:.68rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold); padding:4px 0; }

/* =========================================================
   Order
   ========================================================= */
.order-layout{ display:grid; grid-template-columns:1.55fr 1fr; gap:32px; align-items:start; }
.field{ margin-bottom:22px; }
.field label{ display:block; font-size:.7rem; text-transform:uppercase; letter-spacing:.16em;
  color:var(--ink-faint); margin-bottom:8px; }
.input{
  width:100%; font-family:'Mulish',sans-serif; font-size:1rem; color:var(--ink);
  background:transparent; border:0; border-bottom:1px solid var(--line);
  padding:9px 2px; transition:border-color .3s; }
.input::placeholder{ color:var(--ink-faint); }
.input:focus{ outline:none; border-color:var(--gold); }
textarea.input{ border:1px solid var(--line); border-radius:var(--r-sm); padding:12px; min-height:96px; resize:vertical; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.size-inline{ display:flex; align-items:center; gap:12px; }
.size-inline .input{ width:70px; text-align:center; }
.size-inline span{ color:var(--ink-faint); }

.dropzone{
  border:1px dashed var(--line); border-radius:var(--r-md);
  padding:34px; text-align:center; color:var(--ink-faint);
  display:flex; flex-direction:column; gap:6px; align-items:center;
  transition:.3s; cursor:pointer; background:var(--paper-2);
}
.dropzone:hover{ border-color:var(--gold); color:var(--ink-soft); }
.dz-or{ display:flex; align-items:center; gap:14px; margin:18px 0; color:var(--ink-faint); font-size:.8rem; }
.dz-or::before,.dz-or::after{ content:""; height:1px; flex:1; background:var(--line-soft); }

/* timeline */
.timeline li{ display:flex; align-items:center; justify-content:space-between;
  padding:12px 0; border-bottom:1px dotted var(--line); font-size:.92rem; }
.timeline li:last-child{ border-bottom:0; }
.timeline .dur{ font-family:'Fraunces',serif; }
.delivery-badge{ margin-top:14px; padding:14px 18px; border-radius:var(--r-sm);
  background:var(--gold-wash); border:1px solid rgba(156,124,60,.22);
  display:flex; justify-content:space-between; align-items:center; }
.delivery-badge .d{ font-family:'Fraunces',serif; font-size:1.1rem; color:var(--gold); }

.urgent{ display:flex; align-items:center; gap:12px; margin-top:18px; font-size:.9rem; cursor:pointer; }
.checkbox{ width:20px; height:20px; border:1px solid var(--line); border-radius:4px;
  display:grid; place-items:center; transition:.25s; flex:none; }
.urgent input{ display:none; }
.urgent input:checked + .checkbox{ background:var(--ink); border-color:var(--ink); color:var(--paper); }
.urgent input:checked + .checkbox::after{ content:"✓"; font-size:.8rem; }

/* summary / receipt */
.receipt .line{ display:flex; justify-content:space-between; align-items:center;
  padding:11px 0; border-bottom:1px dotted var(--line); font-size:.92rem; }
.receipt .line .nm{ display:flex; flex-direction:column; }
.receipt .line .meta{ font-size:.72rem; color:var(--ink-faint); letter-spacing:.04em; }
.receipt .line .amt{ font-family:'Fraunces',serif; }
.receipt .rm{ color:var(--ink-faint); cursor:pointer; margin-left:14px; transition:color .25s; }
.receipt .rm:hover{ color:var(--rose); }
.receipt .subtotal,.receipt .total{ display:flex; justify-content:space-between; padding:12px 0; }
.receipt .discount{ display:flex; justify-content:space-between; padding:8px 0; color:var(--gold); }
.receipt .total{ border-top:1px solid var(--ink); margin-top:6px; padding-top:16px; }
.receipt .total .amt{ font-family:'Fraunces',serif; font-size:1.7rem; }
.coupon{ display:flex; gap:10px; margin-top:18px; }
.coupon .input{ border:1px solid var(--line); border-radius:var(--r-sm); padding:11px 12px; }

/* add-ons */
.addons{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:10px; }
.addon{ border:1px solid var(--line); border-radius:var(--r-sm); padding:16px 10px;
  text-align:center; cursor:pointer; transition:.3s var(--ease); background:var(--surface); }
.addon:hover{ border-color:var(--gold-soft); transform:translateY(-2px); }
.addon.on{ border-color:var(--gold); background:var(--gold-wash); }
.addon .ic{ font-size:1.4rem; display:block; margin-bottom:8px; }
.addon .nm{ font-size:.78rem; }
.addon .pr{ font-size:.72rem; color:var(--ink-faint); font-family:'Fraunces',serif; }

/* =========================================================
   Design choices
   ========================================================= */
.choice-group{ margin-bottom:46px; }
.choice-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:18px; }
.choice{
  position:relative; cursor:pointer; border:1px solid var(--line);
  border-radius:var(--r-md); overflow:hidden; background:var(--surface);
  transition:.35s var(--ease);
}
.choice:hover{ border-color:var(--gold-soft); transform:translateY(-3px); box-shadow:var(--shadow-md); }
.choice.on{ border-color:var(--gold); box-shadow:var(--shadow-md); }
.choice .swatch{ height:120px; display:grid; place-items:center; }
.choice .cap{ padding:14px 16px; text-align:center; font-size:.9rem; border-top:1px solid var(--line-soft); }
.choice .tick{
  position:absolute; top:12px; right:12px; width:26px; height:26px; border-radius:50%;
  background:var(--gold); color:#fff; display:grid; place-items:center; font-size:.8rem;
  opacity:0; transform:scale(.6); transition:.3s var(--ease); }
.choice.on .tick{ opacity:1; transform:scale(1); }
/* abstract swatch fills */
.sw-dark{ background:linear-gradient(135deg,#3a2f2c,#7d2f28); }
.sw-light{ background:linear-gradient(135deg,#efe6dc,#d9c6b4); }
.sw-none{ background:repeating-linear-gradient(45deg,#fbf9f4,#fbf9f4 9px,#f1ebe0 9px,#f1ebe0 18px); }
.sw-frame{ background:var(--paper-2); position:relative; }
.sw-frame::after{ content:""; position:absolute; inset:24px; border:1px solid var(--ink-faint); border-radius:4px; }
.sw-curve{ background:var(--paper-2); position:relative; }
.sw-curve::after{ content:""; position:absolute; inset:24px; border:1px solid var(--ink-faint); border-radius:40px; }
.sw-cloud{ background:radial-gradient(circle at 30% 40%, #e7ddcf, var(--paper-2)); }
.sw-text{ font-family:'Fraunces',serif; font-style:italic; color:var(--ink-soft); padding:0 18px; text-align:center; line-height:1.3; }

/* =========================================================
   Confirmation
   ========================================================= */
.confirm{ text-align:center; padding:80px 0 30px; max-width:640px; margin:0 auto; }
.seal{ width:84px; height:84px; margin:0 auto 26px; border-radius:50%;
  border:1px solid var(--gold); color:var(--gold); display:grid; place-items:center;
  font-family:'Fraunces',serif; font-size:2rem; animation:rise .9s var(--ease) both; }
.order-id{ font-family:'Fraunces',serif; font-size:1.1rem; letter-spacing:.06em; color:var(--gold); }
.summary-card{ text-align:left; margin-top:30px; }
.summary-card .row{ display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px dotted var(--line); font-size:.92rem; }
.summary-card .row:last-child{ border-bottom:0; }

/* =========================================================
   Designer dashboard
   ========================================================= */
.dash-head{ display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.job-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:26px 0 12px; }
.job{ display:flex; flex-direction:column; gap:6px; }
.job .jt{ font-family:'Fraunces',serif; font-size:1.2rem; }
.job .sheets{ font-size:.82rem; color:var(--ink-faint); }
.job .fee{ font-family:'Fraunces',serif; font-size:1.4rem; margin:8px 0 14px; }
.job .actions{ display:flex; gap:10px; margin-top:auto; }
.job .actions .btn{ flex:1; padding:11px; font-size:.74rem; }
.job.is-late{ opacity:.55; }
.job .late-tag{ margin-top:auto; text-align:center; padding:11px; border:1px solid var(--line);
  border-radius:var(--r-sm); color:var(--rose); font-size:.74rem; letter-spacing:.1em; text-transform:uppercase; }
.btn--reject{ --bg:transparent; --fg:var(--rose); border-color:rgba(154,75,70,.4); }
.btn--reject:hover{ border-color:var(--rose); }

.brief{ display:grid; grid-template-columns:1fr 1.1fr; gap:34px; margin-top:14px; }
.brief .meta-line{ padding:9px 0; border-bottom:1px dotted var(--line); display:flex; justify-content:space-between; }
.brief .meta-line .k{ color:var(--ink-faint); font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; }
.note-box{ margin-top:18px; padding:16px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--paper-2); font-size:.9rem; color:var(--ink-soft); }
.sample-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.sample-grid .cell{ aspect-ratio:4/3; border:1px solid var(--line); border-radius:var(--r-sm);
  background:var(--paper-2); display:grid; place-items:center; color:var(--ink-faint); font-size:.74rem; }

/* toast */
.toast{ position:fixed; left:50%; bottom:34px; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:var(--paper); padding:13px 24px; border-radius:var(--r-sm);
  font-size:.84rem; letter-spacing:.04em; box-shadow:var(--shadow-lg); opacity:0;
  transition:.4s var(--ease); pointer-events:none; z-index:80; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width:880px){
  .order-layout{ grid-template-columns:1fr; }
  .grid-3,.job-grid,.choice-grid{ grid-template-columns:1fr; }
  .feature-row,.entry-grid,.saved-strip,.field-row,.brief{ grid-template-columns:1fr; }
  .addons{ grid-template-columns:repeat(2,1fr); }
  .navlinks{ display:none; }
  .section{ padding:48px 0; }
  .wrap{ padding:0 22px; }
}
