:root {
  color-scheme: light;
  --cream: #f7f2e8;
  --warm: #fffdf8;
  --ink: #3e342c;
  --muted: #70665b;
  --green: #62765b;
  --gold: #d7ae64;
  --line: rgba(62, 52, 44, .16);
  --shadow: 0 22px 70px rgba(62, 52, 44, .12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  line-height: 1.55;
}

body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
.skip {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: color-mix(in srgb, var(--warm) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; }
.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}
.site-nav { display: flex; justify-content: center; gap: 18px; font-weight: 760; color: var(--muted); }
.site-nav a { padding: 10px 0; }
.site-nav a:hover { color: var(--ink); }
.lang-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
.lang-switch button, .nav-toggle {
  min-width: 40px;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-weight: 850;
}
.lang-switch button.active { background: var(--ink); color: var(--cream); }
.nav-toggle { display: none; font-size: 24px; }

main { overflow: clip; }
.hero {
  height: clamp(620px, calc(100svh - 150px), 820px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  align-items: stretch;
  background: var(--cream);
}
.hero picture { min-height: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 42%; }
.hero-copy {
  align-self: center;
  max-width: 620px;
  padding: clamp(28px, 6vw, 76px);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 880;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}
.hero h1 { font-size: clamp(78px, 12vw, 172px); }
.subtitle {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}
.hero-copy p:not(.eyebrow):not(.subtitle) { max-width: 520px; color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
}
.button.primary { background: var(--ink); color: var(--cream); }
.button.secondary { background: transparent; color: var(--ink); }
.button.disabled { opacity: .55; pointer-events: none; }

.profile-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.profile-strip article { padding: 22px max(16px, calc((100vw - 1180px) / 8)); background: var(--warm); }
.profile-strip span { display: block; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.profile-strip strong { display: block; margin-top: 4px; font-size: clamp(16px, 1.7vw, 22px); line-height: 1.15; }

.section {
  padding: clamp(56px, 9vw, 112px) max(18px, calc((100vw - 1180px) / 2));
}
.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}
.section-head.narrow { max-width: 680px; }
.section-head h2 { font-size: clamp(34px, 5vw, 68px); }

.story-grid, .care-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.story-grid article, .care-grid article {
  min-height: 260px;
  padding: clamp(22px, 3vw, 38px);
  background: var(--warm);
}
.story-grid h3, .care-grid h3 { font-size: clamp(24px, 3vw, 38px); }
.story-grid p, .care-grid p, .care-grid li { color: var(--muted); font-size: 17px; }
.note {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--ink) !important;
  font-weight: 760;
}
.warning { background: color-mix(in srgb, var(--cream) 82%, white) !important; }

.places { background: var(--cream); }
.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.places-grid article { display: grid; gap: 12px; }
.places-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.places-grid h3 { font-size: 30px; }
.places-grid p { margin: 0; color: var(--muted); }

.gallery-section { background: var(--warm); }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-row button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-weight: 820;
}
.filter-row button.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gallery {
  columns: 4 230px;
  column-gap: 14px;
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 14px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 12px 34px rgba(62, 52, 44, .1);
}
.gallery button {
  width: 100%;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
}
.gallery img { width: 100%; height: auto; }
.gallery figcaption { padding: 10px 12px; color: var(--muted); font-size: 14px; }

.care { background: var(--cream); }
.care-grid ul { padding-left: 20px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  align-items: center;
  gap: 10px;
  padding: 22px;
  background: rgba(24, 19, 15, .86);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; color: white; text-align: center; }
.lightbox img { max-height: 82svh; margin: auto; border-radius: 8px; }
.lightbox button {
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 34px;
}
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 52px; }

.site-footer {
  padding: 26px max(18px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.found-page { background: var(--cream); }
.found-shell {
  min-height: 100svh;
  padding: clamp(18px, 3vw, 42px);
  display: grid;
  gap: 18px;
  align-content: center;
}
.found-card {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .75fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
  box-shadow: var(--shadow);
}
.found-card picture { min-height: 560px; }
.found-card img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 42%; }
.found-card > div { padding: clamp(26px, 5vw, 58px); align-self: center; }
.found-card h1 { font-size: clamp(78px, 12vw, 150px); }
.found-lead { color: var(--muted); font-size: 22px; }
.found-card dl { display: grid; gap: 10px; margin: 24px 0; }
.found-card dl div { padding-top: 10px; border-top: 1px solid var(--line); }
.found-card dt { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.found-card dd { margin: 3px 0 0; font-size: 19px; font-weight: 760; }
.qr-panel {
  max-width: 1120px;
  width: 100%;
  margin: auto;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
}
.qr-panel h2 { font-size: 28px; }
.qr-panel img { width: 120px; height: 120px; }

.private-page {
  min-height: 100svh;
  padding: 28px max(16px, calc((100vw - 1040px) / 2));
  background: var(--cream);
}
.private-shell {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
  box-shadow: var(--shadow);
}
.private-shell h1 { font-size: clamp(42px, 7vw, 82px); }
.private-grid, .admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.private-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
}
.private-panel h2 { font-size: 30px; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.flag { color: #8a3d18; font-weight: 850; }
form { display: grid; gap: 12px; max-width: 460px; margin-top: 18px; }
label { display: grid; gap: 5px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
textarea { min-height: 90px; resize: vertical; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto auto auto; justify-content: space-between; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    padding: 12px 18px 20px;
    flex-direction: column;
    background: var(--warm);
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .site-nav { display: flex; }
  .hero, .found-card { grid-template-columns: 1fr; }
  .hero { height: auto; }
  .hero picture { min-height: 42svh; }
  .found-card picture { min-height: 58svh; }
  .hero-copy { padding: 28px 18px 42px; }
  .profile-strip, .story-grid, .care-grid, .places-grid, .private-grid, .admin-grid { grid-template-columns: 1fr; }
  .profile-strip article { padding-inline: 18px; }
  .site-footer, .qr-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .site-header { min-height: 60px; gap: 8px; }
  .brand strong { display: none; }
  .site-nav { inset-block-start: 60px; }
  .hero h1, .found-card h1 { font-size: 76px; }
  .actions, .actions .button { width: 100%; }
  .section { padding-block: 48px; }
  .story-grid article, .care-grid article { min-height: auto; }
  .lightbox { grid-template-columns: 1fr; padding: 12px; }
  .lightbox-prev, .lightbox-next { display: none; }
}
