:root {
  --bg: #fbf7f2; --surface: #ffffff; --ink: #1d1a17; --muted: #6f665d; --line: #e8dfd4;
  --accent: #e05a1b; --accent-ink: #fff; --soft: #fdf0e7; --ok: #2f7a4b; --err: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15120f; --surface: #1f1b17; --ink: #f3ece4; --muted: #a99d90; --line: #342d26; --soft: #2a2119; --accent: #f07a3c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, system-ui, sans-serif; }
h1, h2, h3, .brand { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0 0 .5rem; } h2 { font-size: 1.35rem; margin: 1.75rem 0 .75rem; }
a { color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.muted { color: var(--muted); }

.nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.brand { font-size: 1.5rem; color: var(--ink); text-decoration: none; } .brand em { color: var(--accent); font-style: italic; }
.nav nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav nav a.on { color: var(--accent); }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  padding: 9px 18px; border-radius: 999px; font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.big { padding: 13px 26px; font-size: 16px; }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn.danger { color: var(--err); }
.btn.ms { background: #2f2f2f; border-color: #2f2f2f; color: #fff; display: inline-flex; gap: 10px; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card.soft { background: var(--soft); border-color: transparent; padding: 16px; margin-top: 16px; }
.narrow { max-width: 560px; margin: 32px auto; }
.center { text-align: center; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; background: #e6f4ea; color: var(--ok); }
.flash.err { background: #fbe9e7; color: var(--err); }

.hero { text-align: center; padding: 72px 0 40px; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--accent); font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; }
.steps div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.steps span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 600; }
.steps h3 { margin: 12px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
input, select, textarea { font: 15px Inter, sans-serif; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.indent { margin-left: 28px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 600; padding: 0 6px; }
[hidden] { display: none !important; }
.preview { display: flex; gap: 8px; flex-wrap: wrap; } .preview img { width: 80px; height: 100px; object-fit: cover; border-radius: 8px; }
.dev { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }

.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; margin: 16px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.tile:hover { border-color: var(--accent); }
.tile .ph { aspect-ratio: 3/4; background: var(--soft); display: block; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.tile .meta .muted { font-size: 14px; }
.hidden-listing { opacity: .6; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tags i { font-style: normal; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--accent); padding: 3px 9px; border-radius: 999px; }

.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
.gallery #main { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; background: var(--soft); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.desc { white-space: pre-wrap; }
.info form.card { margin-top: 20px; } .info h2 { margin-top: 0; }

.req { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 18px; flex-wrap: wrap; }
.req p { margin: 4px 0 0; }
.msg { font-style: italic; }
.contact { font-weight: 600; color: var(--ok); }
.actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; } .actions form { margin: 0; }
.status { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; margin-left: 6px; background: var(--soft); color: var(--muted); }
.status.pending { color: #a15c00; } .status.accepted { color: var(--ok); } .status.declined, .status.cancelled { color: var(--err); }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; } .filters input { grid-column: 1 / -1; }
  .row { grid-template-columns: 1fr; }
  .nav { padding: 12px 16px; } .nav nav { gap: 12px; font-size: 14px; }
}

.note { background: var(--soft); border-radius: 10px; padding: 10px 14px; }
.links { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
button.link.accent { color: var(--accent); text-decoration: underline; }
input.code { font-size: 22px; letter-spacing: 6px; text-align: center; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
