:root {
  --arcg-yellow: #ffcc00;
  --arcg-green: #008000;
  --arcg-black: #101010;
  --arcg-dark: #1f2933;
  --arcg-gray: #e9edf1;
  --arcg-white: #ffffff;
  --shadow-soft: 0 14px 28px rgba(16, 16, 16, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--arcg-black);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

h1,
h2,
h3,
.site-nav a,
.btn,
.hero-kicker {
  font-family: "Montserrat", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e7e7e7;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.brand img {
  width: 158px;
  max-width: 40vw;
}

.header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-left: auto;
}

.header-user-link {
  flex-basis: 100%;
  text-align: right;
  color: #1b2734;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
}

.header-user-link:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  border: 1px solid #c9d2da;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: #fff;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.site-nav a {
  color: #111;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 0.65;
}

.app-menu {
  position: relative;
}

.app-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #c9d2da;
  border-radius: 0.55rem;
  background: #fff;
  color: #1b2734;
  cursor: pointer;
}

.app-menu-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.app-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem;
  border: 1px solid #d3dce5;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 31, 48, 0.18);
  z-index: 70;
}

.app-menu.is-open .app-menu-panel {
  display: flex;
}

.app-menu-panel a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.45rem;
  text-decoration: none;
  color: #101820;
  font-weight: 600;
}

.app-menu-panel a:hover {
  background: #f3f7fb;
}

.app-menu-panel a.app-menu-admin {
  margin-top: 0.2rem;
  border-top: 1px solid #dbe4ed;
  border-radius: 0;
  padding-top: 0.65rem;
}

.app-menu-panel img {
  width: 1.2rem;
  height: 1.2rem;
}

.hero {
  position: relative;
  min-height: min(76vh, 760px);
  overflow: hidden;
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.8s ease, transform 6s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.08) 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 8vh 1.2rem;
  color: #fff;
}

.hero-kicker {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
  background: rgba(255, 204, 0, 0.92);
  color: #141414;
  font-size: 0.82rem;
}

.hero h1 {
  margin: 0.7rem 0 0.5rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.hero p {
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--arcg-yellow);
  color: #111;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

.hero-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.hero-controls button {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.83);
  cursor: pointer;
}

.quick-links,
.blog,
.about {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.2rem 1rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: -4.5rem;
  position: relative;
  z-index: 3;
}

.quick-card {
  display: block;
  padding: 1.3rem;
  color: inherit;
  text-decoration: none;
  border-top: 4px solid var(--arcg-yellow);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.quick-card h2 {
  margin: 0;
}

.quick-card p {
  margin: 0.35rem 0 0;
}

.section-title p {
  margin: 0;
  color: var(--arcg-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.section-title h2 {
  margin: 0.2rem 0 1rem;
  font-size: 2rem;
}

.blog-entry {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 1rem;
  margin: 0.75rem 0;
  border: 1px solid #ccd5df;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #fff;
}

.blog-entry img {
  width: 100%;
  height: 100%;
  max-height: 148px;
  object-fit: cover;
}

.blog-entry > a {
  display: block;
}

.blog-entry h3 {
  margin: 0.85rem 0 0.25rem;
}

.blog-entry p {
  margin: 0;
}

.blog-entry time {
  display: inline-block;
  margin: 0.75rem 0 0.85rem;
  color: #66717d;
}

.about {
  margin-bottom: 1rem;
}

.about > div {
  padding: 1.4rem;
  border-radius: 0.8rem;
  border-left: 6px solid var(--arcg-green);
  background: linear-gradient(135deg, #ffffff, #f7fbf6);
}

.eyebrow {
  margin: 0;
  color: var(--arcg-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.about h2 {
  margin: 0.3rem 0 0.6rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.6rem 1rem 0.8rem;
  color: #fff;
  background: #1f2933;
}

.site-footer p {
  margin: 0.4rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: #d7dee6;
  text-decoration: none;
}

.copyright {
  margin-top: 1.2rem;
  padding-top: 0.65rem;
  border-top: 1px solid #33404d;
  color: #ced7df;
  font-size: 0.9rem;
}

.admin-link {
  margin-top: 0.9rem;
}

.admin-link a {
  color: #f1f5f9;
}

.admin-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1rem 3rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-card {
  border-radius: 0.7rem;
  border: 1px solid #d6dde5;
  background: #fff;
  padding: 1rem;
}

.admin-card h2,
.admin-card h3 {
  margin-top: 0;
}

.admin-field {
  margin-bottom: 0.7rem;
}

.admin-field label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
  color: #33404d;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 1px solid #c6d0da;
  border-radius: 0.45rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.admin-field input[type="checkbox"] {
  width: auto;
}

.admin-field textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.admin-btn {
  border: 0;
  border-radius: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: var(--arcg-green);
  color: #fff;
  cursor: pointer;
}

.admin-btn.secondary {
  background: #33404d;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-status {
  margin: 0.6rem 0 0;
  color: #33404d;
}

.users-list {
  display: grid;
  gap: 0.5rem;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid #dbe3ea;
  border-radius: 0.45rem;
  padding: 0.5rem 0.6rem;
}

.user-meta {
  min-width: 0;
}

.user-meta strong {
  display: block;
}

.user-meta span {
  color: #5e6b79;
  font-size: 0.85rem;
}

.admin-section-title {
  margin: 0.2rem 0 0.8rem;
}

.page-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.page-hero {
  margin-bottom: 1rem;
}

.page-meta {
  margin-top: 0.4rem;
  color: #3f4f61;
  font-size: 0.9rem;
}

.content-body {
  background: #fff;
  border: 1px solid #dbe3ea;
  border-radius: 0.6rem;
  padding: 1rem;
  line-height: 1.6;
}

.content-body a {
  color: #0b5f20;
}

.content-body img {
  max-width: 100%;
  height: auto;
}

.contact-form-wrap {
  margin-top: 1rem;
  border: 1px solid #dbe3ea;
  border-radius: 0.6rem;
  background: #fff;
  padding: 1rem;
}

.contact-form-wrap h2 {
  margin-top: 0;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  display: grid;
  gap: 0.2rem;
  font-weight: 600;
  color: #33404d;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c6d0da;
  border-radius: 0.45rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-weight: 400;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form .contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-status {
  margin: 0;
  color: #33404d;
}

.contact-form-note {
  margin: 0;
  font-size: 0.9rem;
  color: #5e6b79;
}

.log-output {
  margin: 0;
  border: 1px solid #dbe3ea;
  border-radius: 0.45rem;
  background: #0f1720;
  color: #d9e2ec;
  padding: 0.8rem;
  min-height: 260px;
  max-height: 520px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.album-item {
  border: 0;
  padding: 0;
  border-radius: 0.4rem;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  position: relative;
}

.album-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.album-item-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.55rem;
  background: rgba(10, 16, 24, 0.65);
  color: #f6f9fc;
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
}

.album-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 12, 17, 0.88);
  z-index: 120;
  padding: 1rem;
}

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

.album-modal-media {
  position: relative;
  display: inline-block;
}

.album-modal img {
  max-width: min(92vw, 1400px);
  max-height: 80vh;
  border-radius: 0.4rem;
}

.album-modal iframe {
  width: min(92vw, 1200px);
  height: min(70vh, 675px);
  border: 0;
  border-radius: 0.4rem;
  background: #000;
}

.album-modal p {
  color: #dbe4ee;
  text-align: center;
}

.album-modal-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.6rem 0.8rem;
  background: rgba(8, 12, 18, 0.64);
  color: #f2f7fb;
  text-align: left;
  border-bottom-left-radius: 0.4rem;
  border-bottom-right-radius: 0.4rem;
}

.album-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.album-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.album-modal-nav.prev {
  left: 1rem;
}

.album-modal-nav.next {
  right: 1rem;
}

.album-admin-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
}

.album-list {
  border: 1px solid #dbe3ea;
  border-radius: 0.45rem;
  max-height: 380px;
  overflow: auto;
}

.album-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #edf2f6;
  background: #fff;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.album-list button.active {
  background: #f2f8f2;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

.album-photo-card {
  border: 1px solid #dbe3ea;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #fff;
}

.album-photo-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.album-photo-card .meta {
  padding: 0.35rem 0.45rem;
  display: grid;
  gap: 0.35rem;
}

.album-photo-card .meta input {
  width: 100%;
  border: 1px solid #c7d1db;
  border-radius: 0.35rem;
  padding: 0.35rem 0.45rem;
  font: inherit;
}

.album-photo-card .meta .admin-actions {
  justify-content: space-between;
  gap: 0.35rem;
}

.media-kind {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f2933;
  background: #f5d278;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

@media (max-width: 900px) {
  .header-right {
    gap: 0.55rem;
    justify-content: flex-start;
  }

  .header-user-link {
    text-align: left;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e7e7e7;
    background: #fff;
  }

  .site-nav.is-open {
    display: flex;
  }

  .quick-links {
    grid-template-columns: 1fr;
    margin-top: -2rem;
  }

  .blog-entry {
    grid-template-columns: 1fr;
  }

  .blog-entry img {
    max-height: 220px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .album-admin-grid {
    grid-template-columns: 1fr;
  }
}
