:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5c6170;
  --line: #e3dfd5;
  --accent: #c2410c;
  --accent-ink: #9a3412;
  --tint: #fbeee6;
  --ph: linear-gradient(135deg, #ece7dc, #d9d2c3);
  --radius: 14px;
  --shadow: 0 1px 2px rgb(22 24 29 / 6%), 0 8px 24px rgb(22 24 29 / 8%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #1b1e24;
    --ink: #eceae4;
    --muted: #a3a7b1;
    --line: #2c3038;
    --accent: #f07a3c;
    --accent-ink: #f59a68;
    --tint: #2a1f19;
    --ph: linear-gradient(135deg, #252930, #1d2026);
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); font-weight: 750; margin-bottom: 18px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 1.05rem;
}
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

main { padding-block: 28px 64px; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 28px 0 56px;
}
.eyebrow { margin: 0 0 14px; color: var(--accent-ink); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 56ch; margin: 18px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn {
  display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.btn:hover { color: var(--bg); background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-tile { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ph); box-shadow: var(--shadow); }
.hero-tile:nth-child(2) { transform: translateY(24px); }
.hero-tile:nth-child(4) { transform: translateY(24px); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-tile:hover img { transform: scale(1.04); }

/* page heads */
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs span { margin: 0 4px; opacity: .6; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 28px; }
.count { margin: 0; color: var(--muted); font-weight: 600; }

.block { margin-top: 40px; }
.block:first-child { margin-top: 0; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.card-media { display: block; aspect-ratio: 4 / 3; background: var(--ph); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { display: grid; place-items: center; height: 100%; font-size: 2.5rem; font-weight: 800; color: color-mix(in srgb, var(--muted) 45%, transparent); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.card-title { font-weight: 700; line-height: 1.3; }
.card-meta { font-size: 0.85rem; color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gallery .shot:first-child:not(:only-child) { grid-column: span 2; grid-row: span 2; }
.shot { display: block; border-radius: 12px; overflow: hidden; background: var(--ph); aspect-ratio: 4 / 3; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.03); }
.gallery .shot:only-child { max-width: 760px; grid-column: 1 / -1; aspect-ratio: auto; }
.gallery .shot:only-child img { height: auto; }

/* text */
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.7; margin-top: 32px; }
.page-head + .prose { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: 0.25em 0; }
.prose li::marker { color: var(--accent); }

.note {
  margin-top: 40px; max-width: 70ch; padding: 18px 20px; border-radius: var(--radius);
  background: var(--tint); border-left: 4px solid var(--accent);
}
.note p { margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.foot-in { padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.foot p { margin: 0; max-width: 72ch; }
.foot a { color: var(--muted); }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 30; display: none; place-items: center;
  background: rgb(10 11 14 / 92%); padding: 56px 16px;
}
.lb.open { display: grid; }
.lb img { max-width: min(1200px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 8px; }
.lb button {
  position: absolute; border: 0; background: rgb(255 255 255 / 12%); color: #fff;
  width: 48px; height: 48px; border-radius: 999px; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lb button:hover { background: rgb(255 255 255 / 22%); }
.lb .lb-close { top: 12px; right: 12px; }
.lb .lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb .lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb .lb-count { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; color: #cfd2d8; font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .hero-tile:nth-child(2), .hero-tile:nth-child(4) { transform: none; }
}

@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; gap: 4px; padding-block: 10px; min-height: 0; }
  .nav { margin-left: -12px; width: calc(100% + 12px); }
  .gallery .shot:first-child:not(:only-child) { grid-column: auto; grid-row: auto; }
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 8px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
