@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url(fonts/inter-tight-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 700; font-display: swap; src: url(fonts/inter-tight-latin-700-normal.woff2) format('woff2'); }

:root {
  --ground: #F5F4F0;
  --ink: #1A1A18;
  --muted: #5F5E58;
  --line: #D6D3CB;
  --chip: #E9E7E1;
  --pin: #D9480F;
  --wrap: 1280px;
  --pad: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 Inter, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1 { margin: 0; font-family: 'Inter Tight', Inter, sans-serif; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; font-size: clamp(34px, 5vw, 44px); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1F5FAD; outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--pad); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.brand-home { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { height: 56px; width: auto; }
.brand-name { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.brand-sep { color: #B4B0A6; font-size: 24px; font-weight: 300; }
.brand-section { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 17px; font-weight: 500; color: var(--muted); }
.brand-section:hover, .brand-home:hover .brand-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.lang-switch:hover { border-color: #B9B5AB; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--chip); border-radius: 999px; }
.tabs a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.tabs a:not([aria-current="page"]):hover { background: #DEDBD3; }

main { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--pad) 72px; outline: none; }
main:focus, main:focus-visible { outline: none; } /* main only takes focus so screen readers start there */
main section { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main section { animation: none; } .tile, .tile img { transition: none !important; } }

.view-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 16px; margin: 16px 0 32px; }
.view-head p { margin: 0; font-size: 15px; }

/* Places grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 40vw), 1fr)); gap: clamp(20px, 3vw, 32px) clamp(14px, 2vw, 24px); }
.tile { display: flex; flex-direction: column; gap: 12px; text-decoration: none; border-radius: 6px; position: relative; transition: transform .25s ease; }
.tile picture { display: block; border-radius: 6px; overflow: hidden; background: #DDD9D0; aspect-ratio: 4 / 3; transition: box-shadow .25s ease; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover, .tile:focus-visible { transform: scale(1.045); z-index: 2; }
.tile:hover picture, .tile:focus-visible picture { box-shadow: 0 14px 32px rgba(26, 26, 24, .18); }
.tile-text { display: flex; flex-direction: column; gap: 2px; padding: 0 2px 4px; }
.tile-title { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.25; }
.tile-sub { font-size: 13px; color: var(--muted); }

/* Gallery */
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.back:hover { border-color: #B9B5AB; }
.gallery-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: end; margin-bottom: 36px; }
.gallery-head > div:first-child { flex: 1 1 340px; min-width: 0; }
.gallery-head h1 { font-size: clamp(40px, 6vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.eyebrow { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.intro { flex: 1 1 340px; max-width: 560px; color: #3E3D39; line-height: 1.6; }
.intro > :first-child { margin-top: 0; } .intro > :last-child { margin-bottom: 0; }
.photos { columns: 3 280px; column-gap: 16px; }
.photo { break-inside: avoid; margin: 0 0 16px; }
.photo a { display: block; border-radius: 4px; overflow: hidden; cursor: zoom-in; background: #DDD9D0; }
.photo img { width: 100%; transition: opacity .2s ease; }
.photo a:hover img { opacity: .9; }
.photo figcaption { padding: 8px 2px 0; font-size: 13px; color: var(--muted); }

/* Map */
.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented button { min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; background: #fff; border: 1px solid var(--line); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.map { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid #DCD9D1; background: #CFE0EA; }
.map img { width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.pin .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pin); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.pin .lbl { position: absolute; left: 50%; top: 34px; transform: translate(-50%, 4px); white-space: nowrap; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 3; }
.pin:hover, .pin:focus-visible { z-index: 4; }
.pin:hover .dot, .pin:focus-visible .dot { transform: scale(1.25); }
.pin:hover .lbl, .pin:focus-visible .lbl { opacity: 1; transform: translate(-50%, 0); }
/* Gallery map */
.gallery-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: -12px 0 24px; }
.segmented button { display: inline-flex; align-items: center; gap: 8px; }
.photo-map { background: #fff; border-color: #CFCBC2; margin: 0 auto; }
.ppin { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ppin .dot { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--pin); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); color: #fff; font-size: 11px; font-weight: 600; line-height: 10px; display: flex; align-items: center; justify-content: center; box-sizing: content-box; transition: transform .15s ease; }
.ppin .dot:empty { padding: 0; min-width: 14px; height: 14px; }
.ppin .lbl { position: absolute; left: 50%; bottom: 40px; transform: translate(-50%, 4px); width: 168px; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 3; }
.ppin .lbl img { width: 160px; height: 106px; object-fit: cover; border-radius: 3px; }
.ppin .lbl span { display: block; padding: 5px 4px 2px; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppin:hover, .ppin:focus-visible { z-index: 4; }
.ppin:hover .dot, .ppin:focus-visible .dot { transform: scale(1.2); }
.ppin:hover .lbl, .ppin:focus-visible .lbl { opacity: 1; transform: translate(-50%, 0); }
.map-line .map { background: #fff; border-color: #CFCBC2; }
.map-note { margin: 14px 0 0; font-size: 14px; }

/* Lightbox */
#lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 14, 13, .96); color: #fff; }
#lightbox[open] { display: flex; align-items: center; justify-content: center; }
#lightbox::backdrop { background: rgba(14, 14, 13, .96); }
#lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 140px); }
#lightbox img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; }
#lightbox figcaption { font-size: 14px; color: #CFCDC6; min-height: 1em; text-align: center; }
#lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
#lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; font-size: 18px !important; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 18px; left: 20px; margin: 0; font-size: 13px; color: #A9A79F; }
@media (max-width: 640px) {
  #lightbox figure { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto !important; bottom: 16px; transform: none !important; }
}

.site-footer { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--pad) 40px; border-top: 1px solid #E2DFD8; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.license a { font-weight: 600; color: var(--ink); }

/* Search */
.search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -12px 0 28px; }
.search-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.search input { flex: 1 1 280px; max-width: 460px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.search input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(31, 95, 173, .25); }
.no-match { margin: 8px 0 0; }
.link-button { border: 0; background: none; padding: 0 4px; min-height: 44px; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; cursor: pointer; }
.grid li[hidden] { display: none; }

/* Gallery extras */
.place-list { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.9; }
.place-list span:first-child { margin-right: 4px; }
.place-list a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: #C9C5BB; text-underline-offset: 3px; }
.place-list a:hover { text-decoration-color: var(--ink); }
.year { margin: 36px 0 16px; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 26px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 16px; }
.year::after { content: ''; flex: 1; height: 1px; background: #DCD9D1; }
[data-gpanel="photos"] > .year:first-child { margin-top: 0; }

/* Front page */
.landing .site-header { align-items: center; }
.hero { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); padding: clamp(8px, 2vw, 24px) 0 clamp(36px, 5vw, 56px); }
.hero-portrait { flex: none; width: clamp(96px, 12vw, 132px); margin: 0; border: 3px solid var(--ink); border-radius: 50%; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); background: #FFD500; aspect-ratio: 1; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-intro { margin: 12px 0 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: #3E3D39; max-width: 40em; }
.sections { margin-bottom: clamp(36px, 5vw, 56px); }
.sections h2 { margin: 0 0 20px; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 16px; }
.sections h2::after { content: ''; flex: 1; height: 1px; background: #DCD9D1; }
.site-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 42vw), 1fr)); gap: 28px clamp(14px, 2vw, 24px); }
@media (max-width: 560px) { .site-card-title { font-size: 16px; } .site-card-desc { font-size: 13px; } .browser-empty span { font-size: 15px; } .browser-bar { height: 22px; } .browser-url { font-size: 9px; } }
.site-card { display: flex; flex-direction: column; gap: 8px; }
.site-card-main { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.browser { display: block; border: 1px solid #CFCBC2; border-radius: 9px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(26, 26, 24, .06); transition: transform .25s ease, box-shadow .25s ease; }
.browser-bar { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px; background: #EDEBE6; border-bottom: 1px solid #DCD9D1; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 8px; height: 8px; border-radius: 50%; background: #CBC7BE; }
.browser-url { flex: 1; min-width: 0; margin: 0 auto; padding: 2px 10px; border-radius: 5px; background: #fff; font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.browser-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 16px; background: #F1EFEA; }
.browser-empty span { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.site-card-main:hover .browser, .site-card-main:focus-visible .browser { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(26, 26, 24, .15); }
.site-card-title { display: flex; align-items: center; gap: 8px; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.site-card-title svg { flex: none; transition: transform .2s ease; color: var(--muted); }
.site-card-main:hover .site-card-title svg { transform: translate(2px, -2px); color: var(--ink); }
.site-card-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.site-card-extra { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: #C9C5BB; text-underline-offset: 3px; }
.site-card-extra:hover { text-decoration-color: var(--ink); }
@media (max-width: 560px) {
  .hero { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .browser, .site-card-title svg { transition: none; } }
