/* lorenbrock.com — site styles */

:root {
  --ink: #111826;
  --text: #1c1c1c;
  --muted: #5a5f6a;
  --wine: #590219;
  --rose: #bf5079;
  --blush: #f2aec7;
  --line: #d9d9d9;
  --paper: #ffffff;
  --stone: #f4f2ef;
  --serif: 'Lustria', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--rose); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { border-bottom: 2px solid var(--wine); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 96px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 250px; height: auto; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: none; border: 0; padding: .5rem 0; cursor: pointer;
  font: 700 1rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.site-nav a { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--wine); }
.site-nav a[aria-current="page"], .site-nav a.is-section { color: var(--wine); border-bottom-color: var(--wine); }

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; justify-content: center; min-height: 0; padding-top: 18px; padding-bottom: 0; gap: 0; }
  .brand { padding-bottom: 16px; }
  .nav-bar { width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); border-top: 2px solid var(--wine); display: flex; justify-content: flex-end; padding: 0 var(--gutter); }
  .js .nav-toggle { display: inline-flex; min-height: 52px; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0 0 .5rem; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 0; }
  .site-nav a[aria-current="page"], .site-nav a.is-section { border-bottom: 0; }
  .nav-bar { flex-wrap: wrap; }
}

/* ---------- main ---------- */
main { flex: 1; }
.page { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.page-intro { max-width: 46rem; }
.lead { font-size: 1.2rem; color: var(--ink); }
.muted { color: var(--muted); }

.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }

.button {
  display: inline-block; background: var(--wine); color: #fff; text-decoration: none;
  font: 700 .95rem/1 var(--sans); letter-spacing: .03em; padding: .95rem 1.5rem; border: 0; border-radius: 2px; cursor: pointer;
}
.button:hover { background: var(--ink); color: #fff; }
.button[disabled] { opacity: .6; cursor: progress; }
.button--ghost { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 2px var(--wine); }
.button--ghost:hover { background: var(--wine); color: #fff; }

/* ---------- home ---------- */
.home-hero { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.home-hero figure { margin: 0; }
.home-hero figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.home-hero .intro h1 { margin-bottom: .35em; }
.section-links { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.section-links a { display: block; text-decoration: none; color: inherit; padding: 1.1rem 1.25rem; border-left: 3px solid var(--wine); background: var(--stone); transition: background .2s; }
.section-links a:hover { background: #ece8e3; }
.section-links h2 { font-size: 1.4rem; margin: 0 0 .2rem; color: var(--wine); }
.section-links p { margin: 0; }

@media (max-width: 720px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero figure { order: 2; max-width: 360px; margin: 0 auto; }
}

.selected { margin-top: clamp(3rem, 7vw, 5rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }

/* ---------- gallery grid ---------- */
.gallery { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 2.25rem 1.75rem; }
.gallery--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1.5rem 1.25rem; margin-top: 0; }
.card { position: relative; }
.card a { text-decoration: none; color: inherit; display: block; }
.card .frame { position: relative; background: var(--stone); aspect-ratio: 9 / 16; overflow: hidden; }
.card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card a:hover .frame img { transform: scale(1.03); }
.card h2, .card h3 { font-size: 1.15rem; margin: .8rem 0 .15rem; color: var(--ink); }
.card a:hover h2, .card a:hover h3 { color: var(--wine); }
.card p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.45; }
.badge { position: absolute; top: .6rem; left: .6rem; background: var(--wine); color: #fff; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 2px; }

/* ---------- artwork page ---------- */
.artwork { display: grid; grid-template-columns: minmax(260px, 520px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.artwork figure { margin: 0; background: var(--stone); }
.details { margin: 1.5rem 0 2rem; display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; }
.details dt { font-weight: 700; color: var(--ink); }
.details dd { margin: 0; }
.status-sold { color: var(--wine); font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .95rem; }
.pager a { text-decoration: none; }
.pager span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .artwork { grid-template-columns: 1fr; } .artwork figure { max-width: 480px; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(240px, 440px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about figure { margin: 0; }
.about figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr minmax(280px, 560px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.15rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--ink); }
.field .req { color: var(--wine); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #b9bcc2; border-radius: 2px; padding: .8rem .9rem;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: #b00020; }
.field-error, .form-error { color: #b00020; font-size: .9rem; margin-top: .3rem; min-height: 0; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { background: var(--stone); border-left: 3px solid var(--wine); padding: 1.25rem 1.5rem; font-size: 1.1rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 2px solid var(--wine); padding: 2rem 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--wine); }
.site-footer p { margin: 0; color: var(--muted); }

/* ---------- zoomable image viewer ---------- */
.zoomable { position: relative; display: block; cursor: zoom-in; }
.zoom-hint {
  position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(17, 24, 38, .82); color: #fff; font: 700 .85rem/1 var(--sans); letter-spacing: .02em;
  padding: .6rem .8rem; border-radius: 2px; pointer-events: none; transition: background .2s;
}
.zoom-hint svg { width: 18px; height: 18px; }
.zoomable:hover .zoom-hint, .zoomable:focus-visible .zoom-hint { background: var(--wine); }
.zoom-note { font-size: .9rem; color: var(--muted); margin: .6rem 0 0; }

html.viewer-open { overflow: hidden; }
.viewer {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  background: #0d121c; color: #fff; overflow: hidden;
}
.viewer::backdrop { background: #0d121c; }
.viewer { --cap: 4.75rem; }
.viewer-stage { position: absolute; inset: 0 0 var(--cap); overflow: hidden; touch-action: none; cursor: zoom-in; }
.viewer.is-zoomed .viewer-stage { cursor: grab; }
.viewer-stage.is-dragging { cursor: grabbing; }
.viewer-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.viewer-tools {
  position: absolute; z-index: 2; top: .75rem; right: .75rem; display: flex; align-items: center; gap: .15rem;
  background: rgba(13, 18, 28, .78); border-radius: 4px; padding: .2rem;
}
.viewer button { background: none; border: 0; color: #fff; cursor: pointer; padding: .6rem; line-height: 0; border-radius: 3px; }
.viewer button:hover:not([disabled]) { background: rgba(255, 255, 255, .12); color: var(--blush); }
.viewer button[disabled] { opacity: .35; cursor: default; }
.viewer button svg { width: 24px; height: 24px; }
.viewer-level { min-width: 3.4rem; text-align: center; font: 700 .85rem/1 var(--sans); color: #d6d8dd; }
.viewer-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); background: rgba(13, 18, 28, .6) !important; }
.viewer-prev { left: .5rem; }
.viewer-next { right: .5rem; }
.viewer-caption {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--cap); padding: .5rem 1rem; background: #0d121c; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .2rem;
}
.viewer-text strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-right: .6rem; }
.viewer-text span { color: #c9ccd2; font-size: .95rem; }
.viewer-hint { margin: 0; font-size: .8rem; color: #8d929c; }
@media (max-width: 600px) {
  .viewer { --cap: 6.25rem; }
  .viewer-text strong { display: block; margin: 0; font-size: 1.05rem; }
  .viewer-text span { font-size: .85rem; }
  .viewer-nav { top: auto; bottom: calc(var(--cap) + .5rem); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card .frame img { transition: none; }
}

/* ---------- long-form text (privacy) ---------- */
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .6rem; }
