@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root{
  --ink:#302d2a;
  --muted:#746d66;
  --cream:#fbf8f4;
  --paper:#fff;
  --line:#e9e1d9;
  --accent:#b18b68;
  --accent2:#d7c1aa;
  --danger:#a54d4d;
  --success:#56785f
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'DM Sans',Arial,sans-serif
}

a{color:inherit}

.topbar{
  height:78px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 5%;
  position:sticky;
  top:0;
  z-index:10;
  overflow:hidden;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width:0;
  height:100%;
}

.topbar .brand-logo{
  display:block !important;
  width:150px !important;
  max-width:150px !important;
  height:54px !important;
  max-height:54px !important;
  object-fit:contain !important;
  object-position:center center !important;
  flex:0 0 150px;
}

.brand strong{display:block}
.brand small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:2px
}

.topbar nav{
  display:flex;
  gap:20px;
  font-size:13px
}

.topbar nav a{
  text-decoration:none;
  color:var(--muted)
}

.container{
  width:min(1180px,92%);
  margin:0 auto;
  padding:48px 0
}

.narrow{max-width:620px}

.hero{
  display:grid;
  grid-template-columns:1.4fr .6fr;
  gap:60px;
  align-items:center;
  padding:70px 0
}

.eyebrow{
  font-size:11px;
  letter-spacing:.2em;
  color:var(--accent);
  font-weight:700
}

.hero h1,.page-title h1,.gallery-head h1{
  font-family:'Playfair Display',serif;
  font-weight:500;
  font-size:clamp(42px,6vw,76px);
  line-height:1.05;
  margin:15px 0
}

.hero h1 em{
  color:var(--accent);
  font-weight:500
}

.hero p{
  max-width:620px;
  color:var(--muted);
  font-size:17px;
  line-height:1.7
}

.hero-card{
  background:#efe4d7;
  border-radius:28px;
  padding:50px;
  min-height:300px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end
}

.hero-card span{
  color:var(--muted);
  margin-top:8px;
  line-height:1.5
}

.camera-icon{
  font-size:65px;
  color:var(--accent);
  margin-bottom:auto
}

.access-form{
  display:flex;
  gap:10px;
  margin-top:30px
}

.access-form input{flex:1}

.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line)
}

.steps>div{
  background:white;
  padding:28px
}

.steps b{
  color:var(--accent);
  display:block;
  margin-bottom:20px
}

.steps span,.steps strong{display:block}

.steps span{
  color:var(--muted);
  font-size:13px;
  margin-top:7px
}

.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:20px;
  padding:30px;
  margin:20px 0;
  box-shadow:0 12px 35px rgba(48,45,42,.04)
}

.center{text-align:center}
.page-title{margin-bottom:30px}
.page-title p{color:var(--muted)}

label{
  display:block;
  font-size:13px;
  font-weight:600;
  margin:16px 0
}

input,select,textarea{
  display:block;
  width:100%;
  margin-top:7px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  font:inherit;
  color:var(--ink)
}

textarea{
  min-height:110px;
  resize:vertical
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  background:var(--ink);
  color:white;
  padding:13px 22px;
  text-decoration:none;
  font-weight:600;
  cursor:pointer
}

.btn.secondary{
  background:#eee7df;
  color:var(--ink)
}

.btn.wide{
  width:100%;
  margin-top:12px
}

.small-btn{
  font-size:12px;
  padding:9px 13px
}

.flash,.success,.error{
  padding:14px 18px;
  border-radius:12px;
  margin-bottom:20px
}

.flash,.success{
  background:#e9f2eb;
  color:var(--success)
}

.error{
  background:#faecec;
  color:var(--danger)
}

.gallery-head{
  display:flex;
  justify-content:space-between;
  gap:30px;
  align-items:end;
  margin-bottom:30px
}

.gallery-head h1{font-size:54px}

.photo-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin:25px 0
}

.photo-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden
}

.photo-card img{
  display:block;
  width:100%;
  aspect-ratio:auto;
  object-fit:contain;
  background:#eee
}

.photo-actions{
  padding:14px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap
}

.photo-actions select{
  width:auto;
  min-width:180px;
  margin:0
}

.check{
  margin:0;
  font-weight:500
}

.check input{
  display:inline;
  width:auto;
  margin:0 6px 0 0
}

.cart-count{
  background:var(--accent);
  color:#fff;
  border-radius:50%;
  padding:2px 7px;
  margin-left:5px
}

.order-layout{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:25px
}

.order-row{
  display:grid;
  grid-template-columns:72px 1fr auto 28px;
  gap:15px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line)
}

.order-row img{
  width:72px;
  height:55px;
  object-fit:cover;
  border-radius:8px
}

.order-row span,.order-row strong{display:block}

.order-row span{
  font-size:12px;
  color:var(--muted);
  margin-top:4px
}

.order-row a{
  text-decoration:none;
  font-size:22px;
  color:var(--muted)
}

.total{
  display:flex;
  justify-content:space-between;
  padding-top:20px;
  font-size:18px
}

.small{
  font-size:12px;
  color:var(--muted)
}

.consent{font-weight:400}
.consent input{display:inline;width:auto}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px
}

.stats>div{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:24px
}

.stats b{
  font-size:28px;
  display:block
}

.stats span{
  font-size:12px;
  color:var(--muted)
}

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

.link-card{text-decoration:none}
.link-card h2{margin-top:0}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:0 18px
}

.table-wrap{
  overflow:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  margin:20px 0
}

.table-wrap table{
  border-collapse:collapse;
  width:100%;
  min-width:700px
}

.table-wrap th,.table-wrap td{
  text-align:left;
  padding:15px;
  border-bottom:1px solid var(--line);
  font-size:13px
}

.badge{
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  background:#eee7df
}

.link-btn{
  border:0;
  background:none;
  color:var(--danger);
  cursor:pointer
}

code{
  background:#f0ebe5;
  padding:4px 7px;
  border-radius:6px
}

footer{
  text-align:center;
  color:var(--muted);
  font-size:12px;
  padding:40px 0
}

.empty{
  padding:50px;
  text-align:center;
  background:#fff;
  border:1px dashed var(--line);
  border-radius:15px
}

@media(max-width:850px){
  .hero,.order-layout{grid-template-columns:1fr}
  .photo-grid{grid-template-columns:repeat(2,1fr)}
  .steps,.stats{grid-template-columns:repeat(2,1fr)}
  .topbar nav{display:none}
  .gallery-head{
    align-items:start;
    flex-direction:column
  }
}

@media(max-width:550px){
  .topbar{
    height:68px;
    padding:0 4%
  }

  .topbar .brand-logo{
    width:132px !important;
    max-width:132px !important;
    height:46px !important;
    max-height:46px !important;
    flex-basis:132px
  }

  .container{padding:30px 0}
  .photo-grid{grid-template-columns:1fr}
  .steps,.stats,.admin-grid,.form-grid{grid-template-columns:1fr}
  .access-form{flex-direction:column}
  .hero{padding:35px 0}
  .hero-card{padding:30px}
  .order-row{grid-template-columns:60px 1fr auto}
  .order-row img{
    width:60px;
    height:50px
  }
  .order-row>a{display:none}
}
