:root {
  color-scheme: light dark;

  --bg: #f2f6ed;
  --bg-accent: #e4edd7;
  --surface: #ffffff;
  --surface-soft: #f4f8ef;
  --text: #22301f;
  --muted: #55664d;
  --brand: #5c743d;
  --brand-strong: #4a5d32;
  --accent: #6f8b4c;
  --line: #d0dbca;
  --masthead-bg: linear-gradient(
    90deg,
    #f3f7ef 0%,
    #e3ebd7 26%,
    #bed09f 58%,
    #5c743d 100%
  );
  --header-bg: var(--masthead-bg);
  --topnav-bg: var(--masthead-bg);
  --footer-bg: linear-gradient(
    90deg,
    #a9c184 0%,
    #86a860 42%,
    #6f8b4c 72%,
    #5c743d 100%
  );
  --footer-text: #eaf2ea;
  --btn-text: #f7fefb;
  --btn-bg: linear-gradient(135deg, #7f9d5b 0%, #5c743d 100%);
  --btn-bg-hover: linear-gradient(135deg, #93b66a 0%, #678346 100%);
  --topnav-text: #f7ffef;
  --topnav-link-bg: rgba(255, 255, 255, 0.09);
  --topnav-link-border: rgba(255, 255, 255, 0.3);
  --topnav-link-bg-hover: rgba(255, 255, 255, 0.2);
  --topnav-link-border-hover: rgba(255, 255, 255, 0.52);
  --shadow: 0 14px 32px rgba(28, 42, 33, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131a11;
    --bg-accent: #1b2616;
    --surface: #1a2416;
    --surface-soft: #202d1b;
    --text: #e8efe0;
    --muted: #b6c8ad;
    --brand: #9ec37a;
    --brand-strong: #84a364;
    --accent: #b9d395;
    --line: #314028;
    --masthead-bg: linear-gradient(
      90deg,
      #f3f7ef 0%,
      #e3ebd7 26%,
      #bed09f 58%,
      #5c743d 100%
    );
    --header-bg: var(--masthead-bg);
    --topnav-bg: var(--masthead-bg);
    --footer-bg: linear-gradient(
      90deg,
      #a9c184 0%,
      #86a860 42%,
      #6f8b4c 72%,
      #5c743d 100%
    );
    --footer-text: #e0ebd7;
    --btn-text: #f2fbf7;
    --btn-bg: linear-gradient(135deg, #7ea35d 0%, #607d44 100%);
    --btn-bg-hover: linear-gradient(135deg, #93b66f 0%, #6f9050 100%);
    --topnav-text: #eff9e4;
    --topnav-link-bg: rgba(255, 255, 255, 0.08);
    --topnav-link-border: rgba(255, 255, 255, 0.25);
    --topnav-link-bg-hover: rgba(255, 255, 255, 0.16);
    --topnav-link-border-hover: rgba(255, 255, 255, 0.44);
    --shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  }
}

/* ── Manual theme overrides (override OS preference) ── */
[data-theme="dark"] {
  --bg: #131a11;
  --bg-accent: #1b2616;
  --surface: #1a2416;
  --surface-soft: #202d1b;
  --text: #e8efe0;
  --muted: #b6c8ad;
  --brand: #9ec37a;
  --brand-strong: #84a364;
  --accent: #b9d395;
  --line: #314028;
  --masthead-bg: linear-gradient(
    90deg,
    #f3f7ef 0%,
    #e3ebd7 26%,
    #bed09f 58%,
    #5c743d 100%
  );
  --header-bg: var(--masthead-bg);
  --topnav-bg: var(--masthead-bg);
  --footer-bg: linear-gradient(
    90deg,
    #a9c184 0%,
    #86a860 42%,
    #6f8b4c 72%,
    #5c743d 100%
  );
  --footer-text: #e0ebd7;
  --btn-text: #f2fbf7;
  --btn-bg: linear-gradient(135deg, #7ea35d 0%, #607d44 100%);
  --btn-bg-hover: linear-gradient(135deg, #93b66f 0%, #6f9050 100%);
  --topnav-text: #eff9e4;
  --topnav-link-bg: rgba(255, 255, 255, 0.08);
  --topnav-link-border: rgba(255, 255, 255, 0.25);
  --topnav-link-bg-hover: rgba(255, 255, 255, 0.16);
  --topnav-link-border-hover: rgba(255, 255, 255, 0.44);
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  --bg: #f2f6ed;
  --bg-accent: #e4edd7;
  --surface: #ffffff;
  --surface-soft: #f4f8ef;
  --text: #22301f;
  --muted: #55664d;
  --brand: #5c743d;
  --brand-strong: #4a5d32;
  --accent: #6f8b4c;
  --line: #d0dbca;
  --masthead-bg: linear-gradient(
    90deg,
    #f3f7ef 0%,
    #e3ebd7 26%,
    #bed09f 58%,
    #5c743d 100%
  );
  --header-bg: var(--masthead-bg);
  --topnav-bg: var(--masthead-bg);
  --footer-bg: linear-gradient(
    90deg,
    #a9c184 0%,
    #86a860 42%,
    #6f8b4c 72%,
    #5c743d 100%
  );
  --footer-text: #eaf2ea;
  --btn-text: #f7fefb;
  --btn-bg: linear-gradient(135deg, #7f9d5b 0%, #5c743d 100%);
  --btn-bg-hover: linear-gradient(135deg, #93b66a 0%, #678346 100%);
  --topnav-text: #f7ffef;
  --topnav-link-bg: rgba(255, 255, 255, 0.09);
  --topnav-link-border: rgba(255, 255, 255, 0.3);
  --topnav-link-bg-hover: rgba(255, 255, 255, 0.2);
  --topnav-link-border-hover: rgba(255, 255, 255, 0.52);
  --shadow: 0 14px 32px rgba(28, 42, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: 135%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 20% -20%,
      var(--bg-accent) 0%,
      rgba(0, 0, 0, 0) 46%
    ),
    linear-gradient(
      180deg,
      var(--bg-accent) 0%,
      var(--bg) 240px,
      var(--bg) 100%
    );
  color: var(--text);
  font:
    1rem "Trebuchet MS",
    "Segoe UI",
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

.site-shell {
  max-width: 1100px;
  margin: 24px auto 30px;
  padding: 0 16px;
}

.masthead {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 150px;
  background: var(--masthead-bg);
}

.site-header {
  width: 100%;
  background: transparent;
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 320px) 1fr;
  z-index: 2;
  min-height: 120px;
}

.fx-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  mix-blend-mode: normal;
  overflow: hidden;
}

.fx-canvas-global {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  z-index: 40;
  opacity: 1;
  mix-blend-mode: normal;
}

.header-logo {
  overflow: hidden;
  border-right: 1px solid var(--line);
  position: relative;
  z-index: 1;
  padding: 20px;
  display: grid;
  align-items: center;
  background: transparent;
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-brand {
  min-height: 101px;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 12px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(16, 27, 11, 0.78);
}

.header-brand a {
  color: #ffffff;
  font-size: clamp(1.5rem, 3.9vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  user-select: text;
  -webkit-user-select: text;
  text-shadow:
    0 1px 0 rgba(16, 22, 12, 0.76),
    0 2px 12px rgba(9, 15, 6, 0.55);
}

.header-brand a:visited,
.header-brand a:hover,
.header-brand a:focus-visible {
  color: #ffffff;
}

.header-tagline {
  margin: 0;
  color: #f6ffe8;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(8, 14, 6, 0.68);
}

.site-topnav {
  width: 100%;
  border: 0;
  border-top: 0;
  background: transparent;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--topnav-text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  position: relative;
  z-index: 2;
  min-height: 30px;
}

.nav-hamburger {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 16, 9, 0.5);
  color: #fbfff4;
  padding: 5px 9px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  cursor: pointer;
}

.nav-hamburger__bar {
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.nav-hamburger__label {
  margin-left: 3px;
}

.topnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.topnav-list a {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 0;
  color: #fbfff4;
  font-size: 0.97rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 0;
  background: transparent;
  letter-spacing: 0.16em;
  text-shadow:
    0 2px 2px rgba(6, 13, 8, 0.9),
    0 0 10px rgba(249, 255, 233, 0.55);
  -webkit-text-stroke: 0.4px rgba(24, 40, 15, 0.85);
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease;
}

.topnav-list a:hover {
  color: #ffffff;
  filter: none;
  text-shadow:
    0 0 10px rgba(255, 255, 218, 0.75),
    0 2px 10px rgba(17, 27, 13, 0.55);
  transform: translateY(-1px);
}

.topnav-list a[aria-current="page"] {
  color: #fff9cc;
  text-shadow:
    0 0 12px rgba(255, 255, 206, 0.95),
    0 0 20px rgba(255, 255, 231, 0.75),
    0 2px 10px rgba(18, 31, 13, 0.75);
  transform: translateY(-1px) scale(1.08);
  position: relative;
}

.topnav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a3d1d 0%, #5c743d 40%, #f3cc64 100%);
  box-shadow:
    0 0 6px rgba(243, 204, 100, 0.55),
    0 1px 0 rgba(25, 39, 17, 0.7);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.nav-date {
  opacity: 0.94;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(17, 27, 13, 0.35);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: var(--topnav-text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 3px 7px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
  min-width: 34px;
  text-align: center;
}

.fx-size-toggle {
  position: relative;
  min-width: 38px;
  width: 38px;
  height: 30px;
  padding: 0;
  font-size: 0;
  overflow: visible;
}

.fx-size-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translate(-10%, -48%);
  transition:
    width 0.2s ease,
    height 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.fx-size-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 19px;
  background: linear-gradient(180deg, #ffffff 0%, #eef6dd 100%);
  clip-path: polygon(0 0, 0 100%, 26% 73%, 44% 100%, 61% 91%, 42% 63%, 78% 63%);
  transform: translate(-48%, -50%) rotate(-18deg);
  box-shadow: 0 0 0 1px rgba(35, 42, 21, 0.48);
}

.fx-size-toggle[data-size="small"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.fx-size-toggle[data-size="small"]::before {
  background: radial-gradient(
    circle,
    rgba(255, 243, 173, 0.42) 0%,
    rgba(255, 230, 120, 0.18) 55%,
    rgba(255, 213, 80, 0) 100%
  );
  box-shadow: 0 0 10px rgba(255, 236, 132, 0.28);
}

.fx-size-toggle[data-size="large"] {
  background: rgba(255, 184, 98, 0.2);
  border-color: rgba(255, 212, 134, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 242, 183, 0.12),
    0 0 16px rgba(255, 204, 111, 0.24);
}

.fx-size-toggle[data-size="large"]::before {
  width: 22px;
  height: 22px;
  background: radial-gradient(
    circle,
    rgba(255, 250, 232, 0.96) 0%,
    rgba(255, 235, 142, 0.86) 26%,
    rgba(255, 152, 83, 0.58) 52%,
    rgba(255, 90, 90, 0.36) 70%,
    rgba(150, 208, 255, 0.18) 84%,
    rgba(255, 164, 54, 0) 100%
  );
  box-shadow:
    0 0 12px rgba(255, 232, 120, 0.72),
    0 0 20px rgba(255, 123, 84, 0.4),
    0 0 28px rgba(255, 72, 72, 0.28),
    0 0 36px rgba(118, 194, 255, 0.16);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.site-main {
  width: 100%;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
  padding: 26px;
}

.site-footer {
  width: 100%;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 24px;
}

.page-content {
  width: min(980px, 100%);
  margin-inline: auto;
}

@media (min-width: 1440px) {
  .site-shell {
    max-width: 1320px;
  }

  .page-content {
    width: min(1176px, 100%);
  }
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--brand);
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.page-intro {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 20px;
  font-size: 1.02rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.home-hero__logo-wrap {
  display: grid;
  place-items: center;
  background: var(--surface);
  min-height: 190px;
  padding: 12px;
}

.home-hero__logo {
  width: min(535px, 100%);
  height: auto;
}

.home-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.panel--soft {
  background: var(--surface-soft);
}

.home-content,
.home-sidebar {
  padding: 20px;
}

.home-content {
  font-size: 1.02rem;
}

.home-sidebar {
  color: var(--muted);
  font-size: 0.98rem;
  height: fit-content;
}

.home-sidebar a {
  font-weight: 700;
}

.home-sidebar p {
  margin: 0 0 14px;
}

.home-recent {
  margin-top: 20px;
  padding: 20px;
}

.subhead {
  color: var(--brand-strong);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-card a {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 230px;
  padding: 14px;
  text-align: center;
}

.gallery-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  transition:
    transform 0.24s ease,
    filter 0.24s ease;
}

.gallery-card:hover img {
  transform: scale(1.2);
  filter: saturate(1.06);
}

.gallery-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.gallery-card__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.cta-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}

.gallery-pagination {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.gallery-pagination__status {
  color: var(--muted);
  font-weight: 700;
}

.gallery-detail {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 22px;
  align-items: start;
}

.gallery-detail__image {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  overflow: visible;
  position: relative;
}

.gallery-detail__image img {
  width: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform 0.26s ease;
}

.gallery-detail__image:hover img {
  transform: scale(1.2);
  z-index: 2;
}

.product-meta {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.product-meta div {
  display: grid;
  gap: 2px;
}

.product-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.product-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.gallery-detail__nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.gallery-detail__spacer {
  flex: 1;
}

.tour-lead {
  display: flow-root;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
}

.tour-lead__photo {
  float: right;
  margin-left: 16px;
  margin-bottom: 8px;
  width: min(50.4%, 384px);
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.24s ease;
}

.tour-lead__photo:hover {
  transform: scale(1.15);
}

.tour-hero {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-soft);
}

.tour-hero__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.24s ease;
}

.tour-hero picture,
.tour-hero img {
  display: block;
}

.tour-hero:hover .tour-hero__image {
  transform: scale(1.02);
}

.tour-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tour-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
}

.tour-card h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tour-card p {
  margin: 0 0 9px;
  font-size: 1rem;
}

.notfound-card {
  padding: 18px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.footer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 20px;
}

.footer-block h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 4px;
}

.footer-nav {
  display: grid;
  gap: 6px;
}

.footer-photo {
  align-self: center;
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.footer-photo img {
  width: auto;
  max-width: 100%;
  max-height: 180px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.footer-photo img:hover,
.footer-photo img:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
  filter: brightness(1.03);
}

.footer-nav a,
.footer-block a {
  display: inline-block;
  width: fit-content;
  transition:
    color 0.16s ease,
    transform 0.16s ease,
    text-shadow 0.16s ease;
}

.footer-nav a,
.footer-block a {
  color: var(--footer-text);
  font-size: 0.96rem;
}

.site-credit-row {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.site-credit-line {
  display: block;
}

.footer-build-badge {
  position: relative;
  cursor: help;
}

.footer-build-badge::after,
.footer-build-badge::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-build-badge::after {
  content: attr(data-build-info);
  bottom: calc(100% + 0.5rem);
  transform: translate(-50%, 6px);
  white-space: nowrap;
  font-size: 0.72rem;
  line-height: 1.15;
  padding: 0.3rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(14, 24, 11, 0.95);
  color: #f2f7ec;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
  z-index: 5;
}

.footer-build-badge::before {
  content: "";
  bottom: calc(100% + 0.18rem);
  transform: translate(-50%, 6px);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(14, 24, 11, 0.95);
  z-index: 4;
}

.footer-build-badge:hover::after,
.footer-build-badge:hover::before,
.footer-build-badge:focus-visible::after,
.footer-build-badge:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.footer-nav a[aria-current="page"] {
  color: #fff7b9;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow:
    0 0 8px rgba(255, 246, 181, 0.5),
    0 0 12px rgba(255, 255, 255, 0.3);
}

.footer-nav a:hover,
.footer-block a:hover {
  color: #ffffff;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-block a:hover,
.footer-block a:focus-visible {
  color: #fff7b9;
  transform: translateX(3px) scale(1.03);
  text-shadow:
    0 0 8px rgba(255, 246, 181, 0.6),
    0 0 14px rgba(255, 255, 255, 0.35);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .footer-build-badge::after,
  .footer-build-badge::before {
    transition: none;
  }
}

/* ── Site credit link (canonical) ── */

.site-credit-link {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.5s ease;
}

.footer-block .site-credit-link:hover,
.footer-block .site-credit-link:focus-visible {
  transform: scale(1.2) rotate(5deg);
  filter: hue-rotate(180deg) drop-shadow(0 0 8px rgb(102 126 234 / 0.8));
  animation: site-credit-color-swirl 2s infinite;
  font-weight: 700;
  outline: none;
}

@keyframes site-credit-color-swirl {
  0% {
    filter: hue-rotate(0deg) drop-shadow(0 0 8px rgb(102 126 234 / 0.8));
  }
  25% {
    filter: hue-rotate(90deg) drop-shadow(0 0 8px rgb(234 102 126 / 0.8));
  }
  50% {
    filter: hue-rotate(180deg) drop-shadow(0 0 8px rgb(126 234 102 / 0.8));
  }
  75% {
    filter: hue-rotate(270deg) drop-shadow(0 0 8px rgb(234 126 102 / 0.8));
  }
  100% {
    filter: hue-rotate(360deg) drop-shadow(0 0 8px rgb(102 126 234 / 0.8));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-credit-link {
    transition: color 0.2s ease;
  }

  .footer-block .site-credit-link:hover,
  .footer-block .site-credit-link:focus-visible {
    animation: none;
    transform: none;
    filter: none;
  }
}

.footer-contact {
  font-style: normal;
  font-size: 0.96rem;
  line-height: 1.55;
}

.btn-link {
  min-width: 170px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn-link:hover,
.btn-link:focus-visible {
  background: var(--btn-bg-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  outline: none;
}

@media (max-width: 980px) {
  .site-shell {
    margin-top: 0;
    padding: 0 12px 12px;
  }

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

  .home-recent {
    margin-top: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav-date {
    width: 100%;
    padding-top: 2px;
  }

  .gallery-detail {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .home-recent .gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html {
    font-size: 75%;
  }

  .site-shell {
    padding: 0 8px 10px;
  }

  .masthead {
    min-height: 114px;
  }

  .site-header {
    grid-template-columns: minmax(96px, 124px) 1fr;
    min-height: 84px;
  }

  .header-logo {
    padding: 8px;
  }

  .header-logo img {
    width: 75%;
    height: auto;
    justify-self: center;
  }

  .site-main {
    padding: 14px;
  }

  .header-brand {
    min-height: 74px;
    gap: 6px;
    padding: 7px 9px;
  }

  .header-brand a {
    font-size: clamp(1.1rem, 6.2vw, 1.65rem);
    letter-spacing: 0.05em;
  }

  .header-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .site-topnav {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    row-gap: 6px;
    padding: 6px 9px 8px;
    min-height: 0;
  }

  .nav-hamburger {
    display: inline-flex;
    width: fit-content;
  }

  .topnav-list,
  .nav-end {
    display: none;
    width: 100%;
    margin-top: 2px;
  }

  .site-topnav.nav-open .topnav-list,
  .site-topnav.nav-open .nav-end {
    display: flex;
  }

  .topnav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-topnav a {
    width: 100%;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    padding: 6px 4px;
    color: #fbfff4;
    font-weight: 700;
    text-shadow:
      0 1px 2px rgba(6, 13, 8, 0.9),
      0 0 6px rgba(249, 255, 233, 0.5);
    -webkit-text-stroke: 0.3px rgba(24, 40, 15, 0.85);
    background: rgba(10, 16, 9, 0.25);
    border-radius: 3px;
    transition:
      background 0.2s ease,
      color 0.2s ease;
  }

  .site-topnav a:hover {
    color: #ffffff;
    background: rgba(10, 16, 9, 0.45);
  }

  .site-topnav a[aria-current="page"] {
    color: #fff9cc;
    background: rgba(92, 116, 61, 0.4);
    text-shadow:
      0 0 6px rgba(255, 255, 206, 0.8),
      0 1px 3px rgba(18, 31, 13, 0.8);
  }

  .nav-end {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
  }

  .nav-date {
    font-size: 0.64rem;
    width: auto;
    padding-top: 0;
  }

  .theme-toggle {
    min-width: 30px;
    font-size: 0.86rem;
    padding: 2px 6px;
  }

  .fx-size-toggle {
    min-width: 32px;
    width: 32px;
    height: 26px;
  }

  .gallery-detail__image {
    max-width: 85%;
    margin: 0 auto;
  }

  .btn-link {
    min-width: 130px;
    min-height: 40px;
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero a {
    display: none;
  }

  .tour-lead__photo {
    float: none;
    width: 100%;
    margin: 0 0 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    grid-template-columns: 1fr;
  }
}
