:root {
  --accent: #d7b98d;
  --text: #222;
  --muted: #777;
  --line: #e5e5e5;
  --band: #f5f5f5;
  --top: 42px;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: Tahoma, Helvetica, Arial, Verdana, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 13px/1.7 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--text); line-height: 1.35; }

/* header bar */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.top-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.top-left img { display: block; }
.fb { width: 18px; height: 18px; border-radius: 50%; background: #222; color: #fff; font: 700 11px/18px Arial, sans-serif; text-align: center; }
.fb:hover { background: var(--accent); text-decoration: none; }
.logo img { display: block; height: 26px; width: auto; }
.burger { flex: 1; display: flex; justify-content: flex-end; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: #222; position: relative; transition: transform .3s, background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* slide-in side menu */
.side { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(420px, 100%); padding: 80px 30px; background: rgba(255, 255, 255, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translateX(100%); transition: transform .4s ease; }
.menu-open .side { transform: none; }
.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .35); }
.side img { width: 160px; margin-bottom: 18px; }
.side ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.side li a { display: inline-block; padding: 6px 0; color: #222; font: 16px/1.6 var(--serif); }
.side li a.act, .side li a:hover { color: var(--accent); text-decoration: none; }

/* page title band + content */
.page-title { background: var(--band); padding: 34px 16px; text-align: center; }
.page-title h1 { margin: 0; font-size: 26px; }
.content { max-width: 690px; margin: 0 auto; padding: 40px 16px 60px; }
.wide .content { max-width: none; padding: 30px 8px 60px; }

/* portfolio */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 26px; }
.filter button { background: none; border: 0; padding: 2px 0; cursor: pointer; font: 12px var(--serif); color: var(--text); }
.filter button.act, .filter button:hover { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--band); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.tile span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; background: rgba(34, 34, 34, .6); color: #fff; font: 15px/1.4 var(--serif); opacity: 0; transition: opacity .3s; }
.tile:hover img { transform: scale(1.05); }
.tile:hover span, .tile:focus span { opacity: 1; }
.tile[hidden] { display: none; }

/* about (CV) */
.cv .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; margin-bottom: 20px; }
.cv .row:first-child { grid-template-columns: 1fr; }
.cv h2 { margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #ccc; font-size: 20px; font-weight: 700; }
.cv .row:first-child h2 { font-style: italic; }
.cv p { margin: 0 0 10px; }

/* reviews */
.card { display: flex; flex-direction: column; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.card img { width: 100%; max-height: 360px; object-fit: cover; }
.card h2 { margin: 0 0 4px; font-size: 18px; }
.card h2 a { color: var(--text); }
.card h2 a:hover { color: var(--accent); text-decoration: none; }
time { display: block; color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.more { font: 12px var(--serif); }
.post .content > img { display: block; margin: 0 0 24px; }

/* contact */
.contact h2 { font-size: 20px; margin-top: 0; }

/* fullscreen slideshow (home + albums) */
.fullscreen { overflow: hidden; }
.viewer { position: relative; height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); background: #fff; overflow: hidden; user-select: none; }
.dark .viewer { background: #000; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; opacity: 0; transition: opacity .8s ease; }
.viewer[data-fit="cover"] .stage img { object-fit: cover; }
.stage img.on { opacity: 1; }
.vprev, .vnext { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: none; border: 0; color: #fff; font: 300 54px/1 Arial, sans-serif; padding: 10px 14px; cursor: pointer; text-shadow: 0 0 6px rgba(0, 0, 0, .5); opacity: .8; }
.vprev { left: 0; }
.vnext { right: 0; }
.vprev:hover, .vnext:hover { opacity: 1; }
.thumbs { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 3px; padding: 4px; background: rgba(0, 0, 0, .25); overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; padding: 0; border: 0; background: none; cursor: pointer; opacity: .55; transition: opacity .3s; }
.thumbs button.on, .thumbs button:hover { opacity: 1; }
.thumbs img { display: block; height: 46px; width: auto; }
.vplay { position: absolute; z-index: 2; right: 12px; bottom: 62px; width: 26px; height: 26px; border: 0; border-radius: 3px; background: rgba(0, 0, 0, .35); cursor: pointer; }
.vplay::before { content: ""; position: absolute; left: 9px; top: 8px; width: 2px; height: 10px; border-left: 2px solid #fff; border-right: 2px solid #fff; width: 4px; }
.vplay.paused::before { left: 10px; top: 7px; width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; }
.album-nav { position: absolute; z-index: 3; top: 14px; right: 16px; display: flex; align-items: center; gap: 4px; color: #fff; font: 12px var(--serif); }
.album-nav span { margin-right: 8px; }
.album-nav a, .album-nav .prev:empty, .album-nav .next:empty { display: inline-block; width: 18px; height: 18px; position: relative; }
.album-nav a::before { content: ""; position: absolute; left: 6px; top: 5px; width: 6px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.album-nav a.next::before { transform: rotate(-135deg); left: 4px; }
.album-nav span.prev, .album-nav span.next { opacity: .3; }

@media (max-width: 700px) {
  .cv .row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .logo img { height: 20px; }
  .vprev, .vnext { font-size: 40px; }
  .thumbs img { height: 36px; }
  .vplay { bottom: 52px; }
}
@media (min-width: 900px) {
  .card { flex-direction: row-reverse; align-items: flex-start; }
  .card img { width: 45%; }
  .card > div { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
