:root {
  --bg: #fafaf8;
  --surface: #fff;
  --text: #1d1d1b;
  --muted: #6f6f6a;
  --line: #e4e3df;
  --accent: #1d1d1b;
  --accent-text: #fff;
  --danger: #b3261e;
  --ok: #2f6b3a;
  --warn: #8a5a00;
  --radius: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(640px, 100% - 2.5rem); }
.page { padding-block: 3rem 4rem; }
.section { padding-block: 3rem; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-header h1, .section-header h2 { margin: 0; }
.section-title { margin-top: 3rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.inline { display: inline; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 72px; padding-block: .75rem; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 1.4rem; text-decoration: none; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nav > a:not(.button) { text-decoration: none; color: var(--muted); }
.nav > a:not(.button).active, .nav > a:not(.button):hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text); font: inherit; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: opacity .15s;
}
.button:hover { opacity: .85; }
.button:disabled { opacity: .35; cursor: default; }
.button-ghost { background: transparent; color: var(--accent); }
.button-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.button-small { padding: .35rem .8rem; font-size: .85rem; }
.button-large { padding: 1rem 2.2rem; font-size: 1.1rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-button:hover { color: var(--text); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Hero */
.hero { position: relative; min-height: 70vh; display: flex; align-items: flex-end; background: #2b2b28; color: #fff; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); }
.hero-content { position: relative; z-index: 1; padding-block: 4rem; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero .button { background: #fff; color: var(--text); border-color: #fff; }
.hero .button-ghost { background: transparent; color: #fff; }
.intro { max-width: 46em; }
.signature { font-family: var(--serif); font-size: 1.2rem; display: flex; flex-direction: column; margin-top: 1.5rem; }
.signature .small { font-family: var(--sans); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; border-block: 1px solid var(--line); padding-block: 2rem; }
.facts li { display: flex; flex-direction: column; gap: .25rem; }
.facts strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.facts span { color: var(--muted); font-size: .95rem; }
.cta { text-align: center; border-top: 1px solid var(--line); }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem 1.5rem; }
.project-card { text-decoration: none; display: block; }
.project-card-image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); border-radius: var(--radius); }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover img { transform: scale(1.03); }
.project-card-body { padding-top: .8rem; }
.project-card-body h3 { margin: 0; }
.project-card-body p { margin: 0; font-size: .9rem; }
.placeholder { width: 100%; height: 100%; }
.prose { max-width: 44em; margin-bottom: 2rem; }

.gallery { columns: 3 320px; column-gap: 1rem; }
.gallery-item { display: block; margin-bottom: 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.95); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; padding: 1rem; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 0; right: .5rem; }
.lightbox .lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* Booking */
.booking-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-block: 1.5rem 1rem; }
.booking-frame iframe { display: block; width: 100%; height: 900px; border: 0; }
.booking-placeholder { display: block; width: 100%; height: auto; }

/* Cards, forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack > * { margin: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; }
label.checkbox { flex-direction: row; align-items: center; gap: .5rem; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="file"], textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 1rem; background: #fff; color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { flex: 1; }

.alert { padding: .9rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 1.5rem; }
.alert-success { border-color: #b7d3bc; background: #eef6ef; color: var(--ok); }
.alert-error { border-color: #e8b9b5; background: #fcefee; color: var(--danger); }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--line); font-size: .75rem; color: var(--muted); }
.badge-ok { background: #e2efe4; color: var(--ok); }
.badge-warn { background: #f7ecd6; color: var(--warn); }

.file-info { font-size: 1.05rem; margin-block: 1.5rem; }

/* Admin */
.is-admin .page h1 { font-size: 2rem; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table th, .table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-weight: 500; font-size: .85rem; color: var(--muted); }
.table tr.is-expired td { opacity: .6; }
.thumb-cell { width: 90px; }
.thumb-cell img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; }
@media (max-width: 760px) { .table { display: block; overflow-x: auto; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.stat { text-decoration: none; display: flex; flex-direction: column; }
.stat-value { font-family: var(--serif); font-size: 2.6rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.admin-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.admin-image { padding: .75rem; position: relative; display: flex; flex-direction: column; gap: .6rem; }
.admin-image.is-cover { border-color: var(--ok); }
.admin-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 4px; }
.admin-image .badge { position: absolute; top: 1.2rem; left: 1.2rem; }
.alt-form { display: flex; gap: .4rem; }
.alt-form input { padding: .35rem .5rem; font-size: .85rem; }
.image-actions { display: flex; gap: .35rem; flex-wrap: wrap; }

.progress-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .2s; }
.progress p { margin-top: .5rem; }
