:root {
  --ink: #15201d;
  --ink-soft: #2a3936;
  --muted: #5a6a66;
  --muted-2: #8a958f;
  --paper: #f6f1e7;
  --paper-warm: #efe7d6;
  --surface: #ffffff;
  --line: #e0d9c8;
  --line-strong: #c9c0ad;
  --forest: #1f4a40;
  --forest-deep: #102e27;
  --moss: #6f8f4e;
  --clay: #b65f3b;
  --clay-deep: #8e3f1e;
  --sky: #6fa7bd;
  --stone: #7b8079;
  --amber: #f2c14e;
  --warning: #a74732;
  --shadow-sm: 0 4px 14px rgba(16, 46, 39, 0.06);
  --shadow: 0 18px 48px rgba(16, 46, 39, 0.12);
  --shadow-lg: 0 32px 80px rgba(16, 46, 39, 0.18);

  --font-display: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

::selection {
  background: var(--forest);
  color: #ffffff;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px var(--gutter);
  background: rgba(246, 241, 231, 0.86);
  border-bottom: 1px solid rgba(216, 212, 201, 0.6);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 54px;
  overflow: visible;
}

.brand-mark img,
.admin-mark img,
.login-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 36, "SOFT" 60;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
}

.top-nav a,
.admin-link {
  position: relative;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s ease;
}

.top-nav a::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  content: "";
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.top-nav a:hover::after,
.top-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.top-nav a:hover,
.admin-link:hover,
.top-nav a[aria-current="page"] {
  color: var(--forest);
}

.top-nav a[aria-current="page"] {
  font-weight: 700;
}

.admin-link {
  flex: 0 0 auto;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 76px));
  padding: clamp(40px, 6vw, 96px) var(--gutter);
  overflow: hidden;
  background: var(--forest-deep);
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(95% 70% at 0% 0%, rgba(8, 18, 14, 0.38), transparent 62%),
    linear-gradient(95deg, rgba(8, 18, 14, 0.58) 0%, rgba(8, 18, 14, 0.22) 48%, rgba(8, 18, 14, 0.04) 100%),
    linear-gradient(0deg, rgba(8, 18, 14, 0.2), rgba(8, 18, 14, 0) 58%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.02);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 880px;
  color: #ffffff;
}

.hero-copy h1 .accent,
h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--clay);
}

.hero-copy h1 .accent {
  display: block;
  color: var(--amber);
  font-weight: 500;
}

.page-hero h1 em {
  color: var(--clay);
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  align-self: end;
  padding-top: clamp(28px, 5vw, 56px);
  color: rgba(255, 255, 255, 0.86);
}

.hero-meta-item {
  display: grid;
  gap: 2px;
}

.hero-meta-item strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: #ffffff;
}

.hero-meta-item span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.eyebrow {
  position: relative;
  margin: 0 0 16px;
  padding-left: 30px;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.hero-copy .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 70;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
}

h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 600;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}

.hero-copy p:not(.eyebrow),
.section-heading p {
  max-width: 60ch;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  color: var(--ink-soft);
}

.pull-quote {
  position: relative;
  margin: 32px 0 0;
  padding: 28px 28px 28px 40px;
  border-left: 3px solid var(--clay);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.pull-quote::before {
  position: absolute;
  top: -12px;
  left: 18px;
  content: "“";
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--clay);
}

.pull-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink);
  font-variation-settings: "opsz" 72, "SOFT" 100;
}

.pull-quote cite {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  font-variation-settings: "opsz" 72, "SOFT" 100;
}

.eyebrow-num::before {
  content: attr(data-num);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--forest);
  font-style: normal;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--clay);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.button.danger {
  color: #ffffff;
  background: var(--warning);
}

.button.muted {
  color: var(--ink-soft);
  border-color: var(--line);
  background: #ffffff;
}

.button.muted:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.section {
  padding: clamp(64px, 9vw, 128px) var(--gutter);
}

.section-rule {
  max-width: var(--container);
  margin: 0 auto clamp(40px, 6vw, 72px);
  height: 1px;
  background: var(--line);
}

.home-section {
  background: #ffffff;
}

.home-start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
}

.home-main .section-heading {
  margin: 0 0 36px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.quick-links a {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 24px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.quick-links a:last-child {
  border-right: 0;
}

.quick-links a:hover {
  background: #eef3ef;
}

.quick-links span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-links strong {
  align-self: end;
  font-size: 1.15rem;
  line-height: 1.2;
}

.section-heading {
  max-width: var(--container);
  margin: 0 auto 40px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: var(--container);
  margin: 0 auto;
}

.home-start-layout .feature-grid {
  grid-template-columns: 1fr;
  max-width: none;
}

.feature-card {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card::after {
  position: absolute;
  bottom: 22px;
  right: 22px;
  content: "→";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-warm);
  color: var(--forest);
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.home-start-layout .feature-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  min-height: 200px;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.feature-card:hover::after {
  background: var(--clay);
  color: #ffffff;
  transform: translateX(4px);
}

.feature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.04);
}

.home-start-layout .feature-card img {
  grid-row: 1 / 4;
  height: 100%;
  aspect-ratio: auto;
}

.feature-card > span,
.storage-status {
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-card > span {
  display: block;
  margin: 26px 26px 10px;
}

.feature-card h3 {
  margin: 0 26px 10px;
  font-size: 1.5rem;
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 70;
}

.feature-card p {
  margin: 0 26px 28px;
  color: var(--muted);
  line-height: 1.55;
}

.news-sidebar {
  position: relative;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper) 0%, #ffffff 100%);
  box-shadow: var(--shadow-sm);
}

.news-sidebar::before {
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  content: "";
  height: 3px;
  background: var(--clay);
  border-radius: 0 0 3px 3px;
}

.news-sidebar h2 {
  margin: 6px 0 22px;
  font-size: 1.85rem;
  line-height: 1.05;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(56px, 7vw, 96px);
  max-width: var(--container);
  margin: 0 auto;
}

.page-hero-copy {
  max-width: 680px;
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
}

.page-hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.page-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow-lg);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 56px);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band-item {
  display: grid;
  gap: 8px;
}

.stats-band-item strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--forest);
}

.stats-band-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.section-stats {
  background: var(--paper-warm);
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}

.text-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.home-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.text-layout .section-heading {
  margin: 0;
}

.home-info-layout .section-heading {
  margin: 0;
}

.credential-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.credential-panel h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
}

.credential-panel dl {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
}

.credential-panel div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.credential-panel dt {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.credential-panel dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.card-grid,
.gallery-grid,
.split-layout,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: var(--container);
  margin: 0 auto;
}

.split-layout,
.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.news-card,
.gallery-card,
.info-panel,
.admin-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.news-card,
.gallery-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover,
.gallery-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 190px;
  padding: 16px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(16, 46, 39, 0.18), rgba(16, 46, 39, 0.42)),
    var(--card-bg, var(--forest));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(8, 18, 14, 0.55) 100%);
  pointer-events: none;
}

.card-media > * {
  position: relative;
  z-index: 1;
}

.card-media {
  position: relative;
}

.card-media .card-tag {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.card-media .photo-count {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 18, 14, 0.6);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}

.is-clickable {
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(33, 79, 69, 0.2);
}

.is-clickable:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.card-actions,
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.card-actions {
  margin-top: 14px;
}

.card-edit,
.card-delete {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--warning);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.card-edit {
  color: var(--forest);
}

.card-edit:hover {
  border-color: var(--forest);
  background: #eef5f1;
}

.card-delete:hover {
  border-color: var(--warning);
  background: #fdecea;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  inset: auto 0 24px 0;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast[data-variant="success"] {
  background: var(--forest);
}

.toast[data-variant="error"] {
  background: var(--warning);
}

body.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 14, 12, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  display: grid;
  gap: 12px;
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
}

.lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 8px;
  object-fit: contain;
  background: #000000;
}

.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-align: center;
}

.lightbox button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.lightbox-prev {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.lightbox-next {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

@media (max-width: 620px) {
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

.card-body,
.info-panel,
.admin-form {
  padding: 26px;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.news-card .card-body p,
.gallery-card .card-body p {
  margin: 0 0 4px;
}

.section-photo {
  display: block;
  width: calc(100% + 52px);
  max-width: none;
  aspect-ratio: 16 / 9;
  margin: -26px -26px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
  object-position: center;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.meta > span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--line-strong);
}

.news-card p,
.gallery-card p,
.info-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.news-feed {
  display: grid;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.news-sidebar .news-feed {
  max-width: none;
  background: transparent;
  border-top: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.news-sidebar .news-item {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 4px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  transition: background 0.18s ease;
}

.news-sidebar .news-item:last-child {
  border-bottom: 0;
}

.news-sidebar .news-item:hover {
  background: rgba(31, 74, 64, 0.04);
}

.news-sidebar .news-item:first-child {
  padding-top: 18px;
}

.news-item time {
  color: var(--forest);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.news-sidebar .news-item time {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-item h3 {
  margin: 6px 0 8px;
  font-size: 1.55rem;
  font-weight: 500;
}

.news-sidebar .news-item h3 {
  font-size: 1.18rem;
  line-height: 1.22;
  font-weight: 600;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}

.news-item p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.news-sidebar .news-item p {
  font-size: 0.94rem;
  line-height: 1.5;
}

.news-item .read-more {
  margin-top: 8px;
}

.info-panel h2 {
  margin: 14px 0 14px;
  font-size: 1.85rem;
  line-height: 1.05;
}

.section-photo {
  margin-bottom: 18px;
}

.section-youth {
  background: linear-gradient(180deg, #eef3ee 0%, #f4f7f2 100%);
}

.section-profile {
  background: var(--paper);
}

.section-gallery {
  background: linear-gradient(180deg, #f6efe3 0%, #f1e8d6 100%);
}

.section-adults {
  background: linear-gradient(180deg, #edf3f5 0%, #f4f7f8 100%);
}

.section-join {
  background: var(--paper-warm);
}

.section-contact {
  background: #ffffff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: var(--container);
  margin: 0 auto;
}

.steps-grid article {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.steps-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.steps-grid span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--forest);
  background: var(--paper-warm);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}

.steps-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.facts {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
}

.facts div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.profile-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  padding-left: 20px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 12px 1px -20px;
  background: var(--moss);
  border-radius: 50%;
}

.contact-table {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact-table div {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 16px;
  align-items: center;
  padding: 22px 26px;
  transition: background 0.18s ease;
}

.contact-table div:hover {
  background: var(--paper);
}

.contact-table div + div {
  border-top: 1px solid var(--line);
}

.contact-table strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  font-variation-settings: "opsz" 36, "SOFT" 60;
}

.contact-table a {
  color: var(--forest);
  font-weight: 600;
}

.contact-placeholder {
  color: var(--forest);
  font-weight: 600;
}

.site-footer {
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(32px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--forest-deep);
  background-image: radial-gradient(120% 80% at 0% 0%, rgba(242, 193, 78, 0.08), transparent 60%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--container);
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  gap: 14px;
  max-width: 360px;
}

.footer-brand .footer-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: #ffffff;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.footer-brand .footer-tag {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--amber);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-col li {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 0.96rem;
  line-height: 1.4;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  max-width: var(--container);
  margin: clamp(32px, 4vw, 48px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.site-footer p {
  margin: 0;
}

.admin-body {
  min-height: 100vh;
  background: #ebe5d6;
  background-image:
    radial-gradient(60% 40% at 100% 0%, rgba(31, 74, 64, 0.08), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(182, 95, 59, 0.06), transparent 60%);
}

.admin-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px var(--gutter);
  background: var(--forest-deep);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.admin-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 48px;
  overflow: visible;
}

.admin-titles {
  display: grid;
  line-height: 1.15;
}

.admin-titles strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  font-variation-settings: "opsz" 36, "SOFT" 60;
}

.admin-titles small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 500;
}

.admin-nav a {
  position: relative;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.admin-nav a::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  content: "";
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.admin-nav a:hover {
  color: #ffffff;
}

.admin-nav a:hover::after {
  transform: scaleX(1);
}

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.admin-user-label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-web-link {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.admin-web-link:hover {
  color: #ffffff;
}

.button-ghost-dark {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  padding: 8px 14px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.button-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.admin-main {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter);
}

.admin-section {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.admin-section:last-child {
  margin-bottom: 0;
}

.admin-intro h1 {
  margin: 6px 0 14px;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.05;
}

.admin-intro .lede {
  max-width: 70ch;
}

.admin-intro code,
.admin-footer code {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(31, 74, 64, 0.08);
  color: var(--forest-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: clamp(20px, 3vw, 32px);
  max-width: none;
  margin: 0;
}

.admin-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.admin-rules {
  align-self: start;
}

.admin-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  border-top: 1px solid rgba(31, 74, 64, 0.12);
  color: var(--muted);
  font-size: 0.84rem;
}

.login-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 56px);
  background: var(--forest-deep);
  background-image:
    radial-gradient(80% 60% at 0% 0%, rgba(242, 193, 78, 0.18), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(31, 74, 64, 0.6), transparent 70%),
    url("assets/images/hero-climbing-club.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.login-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 18, 14, 0.65), rgba(8, 18, 14, 0.85));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.login-back {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-back:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: clamp(32px, 4vw, 44px);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.login-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 72px;
  margin-bottom: 20px;
  overflow: visible;
}

.login-eyebrow {
  margin: 0 0 6px;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-card h1 {
  max-width: none;
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.login-lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.login-error {
  margin: 0;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: #fdecea;
  color: var(--warning);
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-intro {
  padding-bottom: 0;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.admin-form h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  line-height: 1.1;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 0.96rem;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 74, 64, 0.14);
}

.admin-form textarea {
  resize: vertical;
}

.admin-form small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

#reset-content {
  display: flex;
  margin: 24px auto 0;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section {
    min-height: 640px;
  }

  .hero-visual {
    inset: 0;
  }

  .card-grid,
  .gallery-grid,
  .split-layout,
  .admin-grid,
  .text-layout,
  .home-info-layout,
  .home-start-layout,
  .feature-grid,
  .steps-grid,
  .page-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-grid {
    gap: 36px;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-links a:nth-child(2n) {
    border-right: 0;
  }

  .home-start-layout .feature-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 15ch;
  }

  .admin-link {
    margin-left: auto;
  }

  .hero-section {
    padding-top: 56px;
    min-height: 560px;
  }

  .hero-copy {
    align-self: end;
  }

  .hero-meta {
    gap: 18px 24px;
  }

  .stats-band {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    min-height: 92px;
    border-right: 0;
  }

  .home-start-layout .feature-card {
    grid-template-columns: 1fr;
  }

  .home-start-layout .feature-card img {
    grid-row: auto;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .feature-card::after {
    display: none;
  }

  .contact-table div,
  .profile-row,
  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item {
    gap: 10px;
  }
}



.read-more {
  display: inline-block;
  margin-top: 6px;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.92rem;
}

.news-card .read-more {
  margin-left: 22px;
  margin-bottom: 18px;
}

.post-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(8, 14, 12, 0.78);
  overflow-y: auto;
}

.post-modal.is-open {
  display: flex;
}

.post-modal-panel {
  position: relative;
  width: min(820px, 100%);
  max-width: 100%;
  margin: auto;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.post-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

.post-modal-close:hover {
  background: var(--line);
}

.post-modal-content h2 {
  margin: 8px 0 6px;
  font-size: 2.2rem;
  line-height: 1.1;
}

.post-modal-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
}

.post-modal-body p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.post-modal-empty {
  color: var(--muted);
  font-style: italic;
}

.post-modal-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.post-modal-photo {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.post-modal-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.post-modal-photo:hover img {
  transform: scale(1.04);
}

@media (max-width: 620px) {
  .admin-user-label {
    display: none;
  }

  .post-modal-content h2 {
    font-size: 1.6rem;
  }
}
