/* Structure shared by every option. Each theme file sets the variables and
   picks one of the three grid styles. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body-font); font-size: 17px; line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--max, 1240px); margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 40px; position: relative; z-index: 20;
}
@media (max-width: 700px) { .site-head { padding: 18px 16px; } }
.site-name {
  font-family: var(--name-font); font-size: var(--name-size, 26px);
  font-weight: var(--name-weight, 400); letter-spacing: var(--name-track, 0);
  text-transform: var(--name-case, none); text-decoration: none; white-space: nowrap;
}
.nav { display: flex; gap: 34px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav a, .nav button {
  font: inherit; font-family: var(--nav-font); font-size: var(--nav-size, 15px);
  letter-spacing: var(--nav-track, 0); text-transform: var(--nav-case, none);
  text-decoration: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 0;
}
.nav a[aria-current], .nav .has-menu.current > button { border-bottom: 1px solid currentColor; }
.has-menu { position: relative; }
.has-menu > button::after { content: " \25BE"; font-size: .8em; }
.menu {
  display: none; position: absolute; top: 100%; left: -18px; min-width: 240px;
  list-style: none; margin: 0; padding: 12px 0; background: var(--bg); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.menu a { display: block; padding: 8px 18px; }
.has-menu:hover .menu, .has-menu.open .menu { display: block; }
.burger { display: none; background: none; border: 0; font-size: 26px; color: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; right: 16px; left: 16px;
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 20px;
    background: var(--bg); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
  body.nav-open .nav { display: flex; }
  .menu { display: block; position: static; box-shadow: none; padding: 0 0 0 14px; background: none; }
  .has-menu > button::after { content: ""; }
}

/* ---------- landing ---------- */
.landing { position: fixed; inset: 0; background: #d9cfc9 url(landing-poster.jpg) center/cover; }
.landing video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.landing .site-head { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.landing .menu { text-shadow: none; }

/* ---------- page furniture ---------- */
.page-head { display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap; margin: 40px 0 18px; }
h1 { font-family: var(--head-font); font-weight: var(--head-weight, 400);
  font-size: var(--h1-size, 40px); line-height: 1.15; margin: 0;
  letter-spacing: var(--head-track, 0); text-transform: var(--head-case, none); }
h2 { font-family: var(--head-font); font-weight: var(--head-weight, 400); font-size: 26px; margin: 0 0 12px; }
.intro { max-width: 680px; margin: 0 0 48px; color: var(--muted); }
.intro-block { margin-bottom: 48px; }
.intro-block .intro { margin: 0 0 14px; }
.section-head { margin: 72px 0 28px; }
.avail-link { font-family: var(--nav-font); font-size: 15px; letter-spacing: var(--nav-track, 0);
  text-transform: var(--nav-case, none); white-space: nowrap; }
.placeholder { background: var(--ph, #eee); color: var(--muted); display: flex;
  align-items: center; justify-content: center; font-size: 14px; }
footer.site-foot { margin-top: 100px; padding: 30px 40px 90px; color: var(--muted); font-size: 14px; }

/* ---------- grids ---------- */
.works { --gap: 28px; margin: 0; }
.work { margin: 0; cursor: zoom-in; }
.frame { position: relative; overflow: hidden; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 16px;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.work:hover .cap { opacity: 1; }
.cap-title { display: block; font-family: var(--cap-font, inherit); font-size: 19px; line-height: 1.25; }
.cap-meta { display: block; font-size: 14px; margin-top: 4px; opacity: .85; }
.cap-inquire { pointer-events: auto; margin-top: 12px; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; padding: 7px 16px; border: 1px solid currentColor; text-decoration: none; }
@media (hover: none) { .cap { display: none; } }

/* even: every work centred in an equal square cell */
.works.even { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.works.even .work { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.works.even .work.land .frame { width: 100%; }
.works.even .work.port .frame { height: 100%; }
@media (max-width: 900px) { .works.even { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }

/* justified: rows of equal height, true proportions (sized by site.js) */
.works.justified { display: flex; flex-wrap: wrap; gap: var(--gap); }
.works.justified .frame { width: 100%; height: 100%; }

/* salon: masonry columns, larger works */
.works.salon { columns: 2; column-gap: 44px; }
.works.salon .work { break-inside: avoid; margin-bottom: 44px; }
@media (min-width: 1500px) { .works.salon { columns: 3; } }
@media (max-width: 640px) { .works.salon { columns: 1; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--lb-bg, rgba(255,255,255,.97));
  color: var(--ink); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 84vw; text-align: center; }
.lightbox img { max-width: 84vw; max-height: 78vh; object-fit: contain; display: block; margin: 0 auto; }
.lightbox figcaption { margin-top: 16px; }
.lightbox .cap-inquire { display: inline-block; }
.lightbox button { position: absolute; background: none; border: 0; color: inherit;
  font-size: 54px; line-height: 1; cursor: pointer; padding: 12px 18px; opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; font-size: 42px !important; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox figure, .lightbox img { max-width: 94vw; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ---------- installations ---------- */
.project { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: center; margin: 30px 0 90px; }
.project img { display: block; width: 100%; }
.project .more { display: inline-block; margin-top: 18px; }
@media (max-width: 800px) { .project { grid-template-columns: 1fr; gap: 24px; } }
.project-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.project-photos .placeholder { aspect-ratio: 3/2; }
.project-photos img { width: 100%; display: block; }
@media (max-width: 700px) { .project-photos { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; margin-top: 40px; }
.about img { width: 100%; display: block; }
.about h2 { margin-top: 36px; }
.about blockquote { margin: 0; font-style: italic; }
.cv-link { display: inline-block; margin-top: 30px; padding: 12px 22px; border: 1px solid currentColor; text-decoration: none; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- contact ---------- */
form.contact { max-width: 720px; margin-top: 30px; display: grid; gap: 22px; }
form.contact label.f { display: grid; gap: 6px; font-size: 15px; }
form.contact input[type=text], form.contact input[type=email], form.contact textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--rule); background: transparent; color: inherit; }
form.contact textarea { min-height: 150px; }
.inquiry-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; max-height: 330px; overflow-y: auto; padding: 4px; border: 1px solid var(--rule); }
.inq { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px; cursor: pointer; }
.inq img { width: 48px; height: 48px; object-fit: cover; flex: none; }
.inq:has(input:checked) { background: var(--ph, #f3f3f3); }
.inquiry-note { font-size: 14px; color: var(--muted); margin: 0; }
fieldset.topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
fieldset.topics legend { font-size: 15px; margin-bottom: 8px; padding: 0; }
.topic { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 9px 16px;
  border: 1px solid var(--rule); cursor: pointer; }
.topic:has(input:checked) { border-color: var(--ink); background: var(--ph, #f3f3f3); }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
form.contact button[type=submit] { justify-self: start; font: inherit; padding: 12px 30px;
  background: var(--ink); color: var(--bg); border: 0; cursor: pointer; }
.form-done { color: var(--muted); font-size: 15px; }
fieldset.topics legend .hint { font-size: 13px; opacity: .6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #9a2a2a; font-size: 15px; margin: 12px 0 0; }
.form-done h2 { margin: 0 0 8px; }
.legacy { max-width: 760px; }
.legacy-img { margin: 28px 0; }
.legacy-img img { width: 100%; height: auto; display: block; }
.legacy .p { line-height: 1.7; margin: 0 0 1.1em; }
.post-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.post-list .date, p.date { opacity: .6; font-size: 14px; margin-left: 10px; }
p.date { margin: 0 0 18px; }
[hidden] { display: none !important; }
