:root {
  --ink: #1f1b18;
  --paper: #faf7f2;
  --cream: #f1ebe0;
  --gold: #a8843f;
  --gold-dark: #856527;
  --muted: #6d655c;
  --line: #ddd3c2;
  --radius: 4px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0 0 .6em; }
.script { font-family: "Pinyon Script", cursive; font-weight: 400; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(700px, 100% - 2.5rem); margin-inline: auto; }
section { padding: 5rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .85rem; color: var(--gold-dark); margin-bottom: 1rem; }
.center { text-align: center; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,247,242,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }
.logo { font-family: "Pinyon Script", cursive; font-size: 2rem; color: var(--ink); text-decoration: none; line-height: 1; }
nav a { margin-left: 1.6rem; color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; }
nav a:hover { color: var(--gold-dark); }
@media (max-width: 640px) {
  nav a { margin-left: .9rem; font-size: .75rem; letter-spacing: .08em; }
  .logo { font-size: 1.6rem; }
}
@media (max-width: 460px) { nav a.hide-sm { display: none; } }

/* hero */
.hero { padding: 7rem 0 6rem; text-align: center; background: radial-gradient(circle at 50% 0%, #fff 0%, var(--paper) 70%); }
.hero h1 { font-size: clamp(3.6rem, 12vw, 7rem); margin-bottom: .1em; }
.hero p.lead { font-size: 1.5rem; max-width: 34rem; margin: 0 auto 2rem; color: var(--muted); font-style: italic; }
.btn {
  display: inline-block; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: .8rem 2rem; font: inherit; font-size: .9rem; text-transform: uppercase; letter-spacing: .2em;
  text-decoration: none; border-radius: var(--radius); transition: .2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--paper); }
.btn.small { padding: .4rem 1rem; font-size: .75rem; }
.btn.danger { border-color: #9b2c2c; background: #9b2c2c; }
.btn[disabled] { opacity: .5; cursor: wait; }

/* services */
.services { background: var(--cream); }
.grid3 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { text-align: center; padding: 1rem; }
.card h3 { font-size: 1.6rem; }
.card p { color: var(--muted); margin: 0; }
.rule { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 1.2rem; }

/* portfolio */
.portfolio h2, .services h2, .about h2, .contact h2 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.gallery { columns: 3 280px; column-gap: 1.2rem; margin-top: 2.5rem; }
.tile { break-inside: avoid; margin-bottom: 1.2rem; cursor: pointer; background: #fff; border: 1px solid var(--line); padding: .6rem; transition: .25s; }
.tile:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.tile img { width: 100%; height: auto; }
.tile .cap { padding: .7rem .3rem .2rem; }
.tile .cap strong { display: block; font-weight: 600; font-size: 1.15rem; }
.tile .cap span { display: block; color: var(--muted); font-size: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--muted); font-style: italic; text-align: center; margin-top: 2rem; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15,12,10,.92); display: none; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.lightbox.open { display: flex; }
.lightbox figure { margin: auto; max-width: 900px; color: #eee; text-align: center; }
.lightbox img { max-height: 75vh; margin: 0 auto 1rem; object-fit: contain; }
.lightbox h3 { font-size: 1.8rem; }
.lightbox p { white-space: pre-line; max-width: 40rem; margin: 0 auto; }
.lightbox .x { position: fixed; top: .5rem; right: 1rem; font-size: 2.5rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* about */
.about .cols { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .about .cols { grid-template-columns: 1fr 1fr; } }
.about .panel { aspect-ratio: 4/5; background: var(--cream) center/cover; border: 1px solid var(--line); display: grid; place-items: center; font-size: 5rem; color: var(--gold); }

/* forms */
.contact { background: var(--cream); }
form.f { display: grid; gap: 1rem; margin-top: 2rem; text-align: left; }
form.f .row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { form.f .row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: .25rem; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 1.1rem; padding: .7rem .8rem; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.msg { padding: .8rem 1rem; border-radius: var(--radius); font-size: 1.05rem; display: none; }
.msg.ok { display: block; background: #e6f0e1; color: #2f5d20; }
.msg.err { display: block; background: #f6e2e2; color: #8a2222; }

footer.site { padding: 3.5rem 0 2rem; text-align: center; background: var(--ink); color: #d8d0c3; }
footer.site h3 { color: #fff; font-size: 1.8rem; }
footer.site form { display: flex; gap: .5rem; max-width: 460px; margin: 1.2rem auto 2rem; flex-wrap: wrap; }
footer.site form input { flex: 1 1 200px; }
footer.site .btn { background: var(--gold); border-color: var(--gold); }
footer.site small { color: #948b7d; }

/* admin */
.admin { padding: 2.5rem 0 5rem; }
.box { background: #fff; border: 1px solid var(--line); padding: 1.5rem; border-radius: var(--radius); }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.tabs button { font: inherit; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; padding: .5rem 1rem; border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: var(--radius); }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pane { display: none; }
.pane.on { display: block; }
.preview { max-height: 260px; margin-top: .6rem; border: 1px solid var(--line); }
.list-item { display: flex; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.list-item img { width: 80px; height: 80px; object-fit: cover; flex: none; }
.list-item div { flex: 1; min-width: 0; }
.list-item p { margin: 0; color: var(--muted); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
.inq { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.inq .meta { color: var(--muted); font-size: 1rem; }
.inq p { white-space: pre-line; margin: .4rem 0 0; }
.top-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
