:root {
  --green: #0e5b47;
  --green-soft: #e7f0ec;
  --ink: #17211d;
  --muted: #63706a;
  --line: #d9e0dc;
  --paper: #f7f8f7;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
a { color: inherit; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand img { border-radius: 6px; }
.brand strong { color: var(--green); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: #46534d; font-size: 13px; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.intro { display: flex; justify-content: space-between; gap: 60px; align-items: end; padding: 46px 0 38px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .1em; }
h1 { max-width: 720px; margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.045em; }
.intro p:not(.eyebrow) { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.intro-actions { min-width: 230px; display: grid; gap: 9px; }
.button { display: inline-flex; justify-content: center; padding: 11px 15px; border: 1px solid #b9c5bf; border-radius: 6px; background: var(--white); font-size: 13px; font-weight: 700; text-decoration: none; }
.button:hover { border-color: var(--green); color: var(--green); }
.button.primary { border-color: var(--green); color: white; background: var(--green); }
.button.primary:hover { background: #0a4939; }

.catalog { margin-bottom: 62px; }
.catalog-bar { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 20px 0 16px; border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.catalog-bar p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
label { color: var(--muted); font-size: 12px; font-weight: 650; }
select { display: block; min-width: 190px; margin-top: 5px; padding: 8px 32px 8px 10px; border: 1px solid #b9c5bf; border-radius: 5px; background: var(--white); color: var(--ink); font: inherit; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards article { min-height: 224px; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.cards article > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: #7b8781; font-size: 11px; }
.tag { width: max-content; margin: 28px 0 6px; padding: 3px 7px; border-radius: 4px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 750; text-transform: uppercase; }
h3 { margin: 4px 0 7px; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.cards article > p:not(.tag) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cards article > a { margin-top: auto; padding-top: 18px; color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }
.cards article > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { grid-column: 1 / -1; padding: 32px; border: 1px dashed #aebbb4; border-radius: 7px; background: white; }
.empty-icon { display: none; }
.empty h3 { margin: 0 0 5px; }
.empty p { margin: 0 0 12px; color: var(--muted); }

.how { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding: 38px 0; border-top: 1px solid var(--line); }
.how ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 7px; background: white; }
.how li { display: flex; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.how li:nth-child(odd) { border-right: 1px solid var(--line); }
.how li:nth-last-child(-n+2) { border-bottom: 0; }
.how li span { color: var(--green); font-weight: 800; }
.how li p { margin: 0; color: var(--muted); }
.how li strong { color: var(--ink); }
.submit { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: 24px 0 52px; padding: 25px; border: 1px solid #b8cbc2; border-radius: 7px; background: var(--green-soft); }
.submit p { max-width: 660px; margin: 5px 0 0; color: #52615a; }

footer { display: flex; align-items: center; justify-content: space-between; min-height: 70px; border-top: 1px solid var(--line); }
.gallery-hero { display: block; min-height: auto; padding: 46px 0 26px; }
.gallery-hero h1 { margin-bottom: 12px; }
.gallery-hero .lede { max-width: 720px; color: var(--muted); font-size: 16px; }
.gallery-count { color: var(--green); font-size: 13px; font-weight: 700; }
.submission-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.submission-meta span { padding: 3px 6px; border-radius: 3px; background: var(--green-soft); font-size: 10px; }
.submission-links { display: flex; gap: 15px; margin-top: auto; }
.submission-links a { color: var(--green); font-size: 13px; font-weight: 700; }

a:focus-visible, select:focus-visible { outline: 3px solid #79b6a3; outline-offset: 2px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } .intro { align-items: start; } .how { grid-template-columns: 1fr; } }
@media (max-width: 650px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header nav a:not(:last-child) { display: none; }
  .intro { display: block; padding: 32px 0 28px; }
  .intro-actions { margin-top: 24px; }
  .catalog-bar, .submit { align-items: stretch; flex-direction: column; }
  .cards { grid-template-columns: 1fr; }
  .cards article { min-height: 205px; }
  .how ol { grid-template-columns: 1fr; }
  .how li, .how li:nth-child(odd), .how li:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .how li:last-child { border-bottom: 0; }
  footer nav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
