:root {
  --bg: #f1f5f0;
  --surface: #ffffff;
  --fg: #14231f;
  --muted: #55655f;
  --line: #d3ddd5;
  --brand: #1d5c49;
  --brand-fg: #ffffff;
  --sun: #f2b01e;
  --sun-fg: #2a1d00;
  --danger: #a3361f;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1816; --surface: #16231f; --fg: #e8f0ea; --muted: #9bafa6; --line: #2a3d36;
    --brand: #6fcfae; --brand-fg: #08241a; --sun: #f2b01e; --sun-fg: #2a1d00; --danger: #ff9b84;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.55;
  padding-block: 0 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1080px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; line-height: 1.05; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.mark { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.mark i { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); display: inline-block; box-shadow: 14px 0 0 -3px var(--brand); margin-right: 10px; }
.nav { display: flex; gap: 20px; font-weight: 600; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--fg); }
.nav a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

.intro { padding-block: 40px 28px; display: grid; gap: 14px; max-width: 760px; }
.intro h1 { font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.4rem); letter-spacing: -0.03em; }
.intro p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.btn {
  font: inherit; font-weight: 600; border: 2px solid var(--brand); background: var(--brand); color: var(--brand-fg);
  padding: 10px 18px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--sun-fg); }
.btn.small { padding: 6px 12px; font-size: 0.9rem; border-radius: 8px; }
.btn.warn { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block: 28px 18px; }
.head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.photo { aspect-ratio: 4 / 3; background: var(--line); position: relative; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .missing { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; }
.info { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; align-content: start; min-width: 0; }
.info h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--sun) 28%, transparent); color: var(--fg); }
.info p { margin: 0; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.actions { padding: 0 16px 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.empty { border: 2px dashed var(--line); border-radius: 14px; padding: 36px 20px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.empty strong { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--fg); margin-bottom: 4px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-block: 8px 12px; }
.panel h3 { font-size: 1.2rem; margin-bottom: 4px; }
.panel .hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
form.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { display: grid; gap: 4px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; }
input, textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 76px; }
.status { font-size: 0.9rem; min-height: 1.3em; color: var(--muted); }
.status.err { color: var(--danger); }
.login { max-width: 420px; margin: 40px auto 0; }

.contact { margin-top: 48px; background: var(--brand); color: var(--brand-fg); border-radius: 18px; padding: clamp(22px, 5vw, 44px); display: grid; gap: 22px; }
.contact h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.contact p { margin: 0; opacity: 0.9; max-width: 52ch; }
.ways { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.way { background: color-mix(in srgb, var(--brand-fg) 12%, transparent); border-radius: 12px; padding: 16px; display: grid; gap: 8px; min-width: 0; }
.way .k { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; opacity: 0.85; }
.way .v { font-family: var(--display); font-weight: 800; font-size: 1.3rem; overflow-wrap: anywhere; user-select: all; }
.way .row { display: flex; gap: 8px; flex-wrap: wrap; }
.way .btn { border-color: var(--brand-fg); background: var(--brand-fg); color: var(--brand); }
.way .btn.ghost { background: transparent; color: var(--brand-fg); }
footer { margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: no-preference) { .card { transition: transform .15s ease; } .card:hover { transform: translateY(-3px); } }
