:root {
  --paper: #f6f8f5;
  --surface: #ffffff;
  --ink: #101820;
  --muted: #59645f;
  --line: #dbe3dd;
  --mineral: #245c73;
  --lichen: #6f8f63;
  --brass: #c98a32;
  --slate: #26313a;
  --soft-shadow: 0 18px 45px rgba(22, 34, 31, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, rgba(16, 24, 32, 0.03) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--paper) !important;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: rgba(201, 138, 50, 0.28);
}

.navbar.fixed-top {
  background: rgba(246, 248, 245, 0.92) !important;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}

.navbar.fixed-top .navbar-brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.navbar.fixed-top .nav-link {
  color: #29343d;
  font-size: 0.94rem;
  font-weight: 650;
}

.navbar.fixed-top .nav-link:hover,
.navbar.fixed-top .nav-link:focus,
.navbar.fixed-top .nav-link.active,
.navbar.fixed-top .nav-link.show {
  background: rgba(36, 92, 115, 0.1) !important;
  color: var(--mineral) !important;
}

.navbar.fixed-top .site-dropdown-menu a.site-dropdown-item {
  color: var(--ink) !important;
  text-decoration: none !important;
}

.navbar.fixed-top .site-dropdown-menu a.site-dropdown-item:hover,
.navbar.fixed-top .site-dropdown-menu a.site-dropdown-item:focus,
.navbar.fixed-top .site-dropdown-menu a.site-dropdown-item:active {
  background: rgba(36, 92, 115, 0.1) !important;
  color: var(--mineral) !important;
  text-decoration: none !important;
}

main {
  color: var(--ink);
}

.album,
.album.bg-light,
.photo-section,
.job-detail-section,
.blog-detail-section {
  background: transparent !important;
}

.album.py-5,
.photo-section,
.job-detail-section,
.blog-detail-section {
  padding-top: clamp(5.5rem, 9vw, 7.5rem) !important;
  padding-bottom: clamp(3rem, 7vw, 5rem) !important;
}

.album > .container,
.photo-section > .container,
.photo-hero > .container,
.job-detail-section.container,
.blog-detail-section.container {
  max-width: 1120px;
}

.album h2.text-center,
.photo-hero h1,
.photo-info h1,
.job-detail-section h1,
.blog-detail-section h1 {
  position: relative;
  max-width: 820px;
  margin-left: 0 !important;
  margin-right: auto !important;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  text-align: left !important;
}

.album h2.text-center::before,
.photo-hero h1::before,
.job-detail-section h1::before,
.blog-detail-section h1::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-bottom: 1rem;
  background: var(--brass);
}

.album h2.text-center::after,
.photo-hero h1::after,
.job-detail-section h1::after,
.blog-detail-section h1::after {
  content: attr(data-label);
  display: block;
  margin-top: 0.45rem;
  color: var(--mineral);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tag-cloud-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
}

.tag-cloud-title::before,
.tag-cloud-title::after {
  display: none !important;
}

.col-md-4 .tag-cloud-section {
  position: sticky;
  top: 92px;
}

.photo-hero {
  padding-top: clamp(5.5rem, 9vw, 7.5rem) !important;
  padding-bottom: 2rem !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
}

.photo-hero p,
.job-detail-section p.lead,
.blog-content,
.album .container > p,
.album .card-text {
  color: var(--muted) !important;
  font-size: 1rem;
  line-height: 1.75;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.08) !important;
  border-radius: 8px !important;
  background: var(--surface) !important;
  box-shadow: 0 1px 0 rgba(16, 24, 32, 0.04) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card-link {
  text-decoration: none !important;
}

.card-link:hover .card,
.card-link:focus .card {
  transform: translateY(-4px) !important;
  border-color: rgba(36, 92, 115, 0.28) !important;
  box-shadow: var(--soft-shadow) !important;
}

.card-img-top {
  aspect-ratio: 4 / 3;
  height: auto !important;
  object-fit: cover;
}

.card-title,
.card-body h5 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.4;
}

.btn,
.page-link {
  border-radius: 4px !important;
  font-weight: 700;
}

.btn-primary {
  border-color: var(--ink) !important;
  background: var(--ink) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--mineral) !important;
  background: var(--mineral) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-light {
  border-color: var(--ink) !important;
  background: transparent !important;
  color: var(--ink) !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-outline-light:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:focus,
.btn-outline-dark:focus,
.btn-outline-light:focus {
  border-color: var(--mineral) !important;
  background: rgba(36, 92, 115, 0.1) !important;
  color: var(--mineral) !important;
}

.pagination {
  gap: 0.3rem;
}

.pagination .page-link {
  border-color: var(--line);
  color: var(--mineral);
}

.pagination .active .page-link,
.pagination .page-item.active .page-link {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

#tag-cloud-app {
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 0 rgba(16, 24, 32, 0.04);
}

.photo-card,
.featured-photo,
.nearby-photo,
.photo-image-wrap,
.blog-image-container,
.job-image-container {
  border-radius: 8px !important;
  box-shadow: var(--soft-shadow) !important;
}

.photo-card,
.featured-photo {
  border: 1px solid rgba(16, 24, 32, 0.08);
}

.photo-card-title,
.photo-info h1 {
  color: var(--ink);
}

.photo-card-meta,
.photo-meta-label,
.photo-description {
  color: var(--muted) !important;
}

.photo-meta {
  border-top-color: var(--line) !important;
  border-bottom-color: var(--line) !important;
}

.blog-detail-section,
.job-detail-section {
  text-align: left !important;
}

.job-detail-section h1 {
  max-width: 900px;
  font-size: clamp(1.85rem, 3.7vw, 3.15rem);
  line-height: 1.08;
}

.blog-detail-section .row,
.job-detail-section .row {
  justify-content: flex-start;
}

.blog-detail-section .col-lg-6,
.blog-detail-section .col-md-8,
.job-detail-section .col-lg-6,
.job-detail-section .col-md-8 {
  width: 100%;
  max-width: 860px;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.blog-image,
.job-image {
  max-height: none !important;
  width: 100% !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.blog-content {
  color: #26313a !important;
  font-size: 1.05rem;
}

.controls-container,
.board-container,
.board-wrapper {
  border-radius: 8px;
}

.controls-container {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.board-container {
  padding: 1rem;
  border: 1px solid rgba(16, 24, 32, 0.08);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.board-wrapper {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.board-wrapper h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

footer.text-center.py-4,
footer {
  padding: 2rem 0 !important;
  border-top: 1px solid var(--line);
  background: #f0f4f0 !important;
  color: var(--muted) !important;
}

footer p {
  margin-bottom: 0.85rem;
}

footer a.btn,
footer a {
  color: var(--ink) !important;
}

@media (max-width: 991.98px) {
  .navbar.fixed-top .navbar-collapse {
    margin-top: 0.85rem;
    padding: 0.65rem;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(20, 35, 55, 0.12);
  }
}

@media (max-width: 575.98px) {
  .album .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .album.py-5,
  .photo-section,
  .job-detail-section,
  .blog-detail-section {
    padding-top: 4.85rem !important;
  }

  .album h2.text-center,
  .photo-hero h1,
  .photo-info h1,
  .job-detail-section h1,
  .blog-detail-section h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .job-detail-section h1 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
    line-height: 1.12;
  }

  .photo-grid {
    column-count: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
