@import url("./site.css?v=20260714-media");

:root {
  --bg: #f3efe7;
  --paper: #fffefa;
  --ink: #15211f;
  --muted: #66726e;
  --line: #ddd2c2;
  --brand: #a11d35;
  --brand-dark: #66101d;
  --accent: #0f727d;
  --olive: #586a3a;
  --gold: #c89a3b;
  --shadow: 0 20px 55px rgba(42, 34, 24, .15);
}

body.theme-modern {
  background:
    radial-gradient(circle at 8% 12%, rgba(200, 154, 59, .12), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(15, 114, 125, .13), transparent 30rem),
    linear-gradient(180deg, #fffdf7 0, #f5efe5 48rem, #eee8de 100%);
}

.theme-modern .topbar {
  background: #66101d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset;
}

.theme-modern .site-header {
  background: #fff;
  border-bottom-color: rgba(221, 210, 194, .75);
  box-shadow: 0 14px 38px rgba(36, 29, 19, .08);
}

.theme-modern .header-main {
  max-width: 1240px;
  padding-top: 17px;
  padding-bottom: 17px;
}

.theme-modern .brand-mark {
  background: linear-gradient(145deg, #b1253f, #66101d);
  box-shadow: 0 11px 26px rgba(161, 29, 53, .27);
}

.theme-modern .brand strong {
  font-size: 1.04rem;
}

.theme-modern .site-nav > a,
.theme-modern .nav-group > summary {
  font-weight: 700;
}

.theme-modern .site-nav > a:hover,
.theme-modern .nav-group > summary:hover,
.theme-modern .site-nav .is-active {
  background: #f2e6d5;
  color: var(--brand);
  box-shadow: 0 1px 0 #fff inset;
}

.theme-modern .nav-menu {
  border: 0;
  box-shadow: 0 18px 42px rgba(36, 29, 19, .16);
}

.theme-modern .home-hero {
  position: relative;
  min-height: min(780px, calc(100vh - 110px));
  align-items: center;
  padding-top: 92px;
  padding-bottom: 110px;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(14, 18, 17, .9) 0, rgba(14, 18, 17, .68) 43%, rgba(14, 18, 17, .22) 78%),
    linear-gradient(0deg, rgba(14, 18, 17, .58), rgba(14, 18, 17, .06) 45%),
    var(--hero-image) center / cover;
}

.theme-modern .home-hero::after {
  display: none;
}

.theme-modern .hero-logo-panel {
  position: absolute;
  right: max(28px, calc((100vw - 1240px) / 2));
  top: 50%;
  width: min(30vw, 390px);
  padding: clamp(18px, 2.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  transform: translateY(-43%);
  z-index: 1;
  pointer-events: none;
}

.theme-modern .hero-logo-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 560px);
  object-fit: contain;
}

.theme-modern .hero-content {
  width: min(820px, 100%);
  margin-left: max(22px, calc((100vw - 1240px) / 2));
  padding: 0;
  position: relative;
  z-index: 2;
}

.theme-modern .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #fff3d1;
  background: rgba(15, 114, 125, .72);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
}

.theme-modern .hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.theme-modern .hero h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(3.8rem, 8.3vw, 7.8rem);
  line-height: .88;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}

.theme-modern .hero-lead {
  max-width: 660px;
  color: rgba(255, 255, 255, .93);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.theme-modern .hero-actions {
  margin-top: 32px;
}

.theme-modern .button,
.theme-modern button {
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .62) inset;
}

.theme-modern .button.primary,
.theme-modern button.primary {
  background: linear-gradient(135deg, #a11d35, #c23850);
  box-shadow: 0 16px 34px rgba(161, 29, 53, .25);
}

.theme-modern .button.light {
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .44);
  backdrop-filter: blur(10px);
}

.theme-modern .hero-note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.theme-modern .hero-note-row span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, .9);
  background: rgba(102, 16, 29, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  backdrop-filter: blur(9px);
  font-weight: 700;
}

.theme-modern .hero-note-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: var(--gold);
  border-radius: 50%;
}

.theme-modern .home-dock {
  grid-template-columns: 1.15fr .75fr 1.1fr;
  gap: 14px;
  max-width: 1240px;
  margin-top: -58px;
  position: relative;
  z-index: 2;
}

.theme-modern .home-dock > * {
  display: block;
  min-width: 0;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 254, 250, .94);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.theme-modern .home-dock > *::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 14px;
  background: var(--gold);
  border-radius: 99px;
}

.theme-modern .home-dock > :nth-child(2)::before {
  background: var(--accent);
}

.theme-modern .home-dock > :nth-child(3)::before {
  background: var(--brand);
}

.theme-modern .section {
  max-width: 1240px;
  padding-top: 92px;
}

.theme-modern .section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.theme-modern .section-heading h2 {
  color: #15211f;
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
}

.theme-modern .section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.theme-modern .priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.theme-modern .priority-card {
  position: relative;
  display: grid;
  min-height: 292px;
  align-content: end;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(102, 16, 29, .96), rgba(161, 29, 53, .9)),
    #761525;
  border-radius: 8px;
  box-shadow: 0 22px 44px rgba(73, 45, 33, .18);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.theme-modern .priority-card::before {
  content: "";
  position: absolute;
  inset: auto -28px -36px auto;
  width: 170px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
}

.theme-modern .priority-card-2 {
  background: linear-gradient(145deg, rgba(15, 114, 125, .97), rgba(20, 78, 84, .95));
}

.theme-modern .priority-card-3 {
  background: linear-gradient(145deg, rgba(88, 106, 58, .98), rgba(52, 75, 55, .96));
}

.theme-modern .priority-card-4 {
  background: linear-gradient(145deg, rgba(47, 55, 57, .98), rgba(28, 38, 39, .96));
}

.theme-modern .priority-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 58px rgba(73, 45, 33, .23);
}

.theme-modern .priority-card small,
.theme-modern .priority-card p,
.theme-modern .priority-card strong,
.theme-modern .priority-index {
  position: relative;
}

.theme-modern .priority-index {
  position: absolute;
  top: 18px;
  left: 22px;
  color: rgba(255, 255, 255, .32);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
}

.theme-modern .priority-card small {
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
  text-transform: uppercase;
}

.theme-modern .priority-card h3 {
  position: relative;
  margin: 10px 0 10px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.08;
}

.theme-modern .priority-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .82);
}

.theme-modern .priority-card strong {
  justify-self: start;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.theme-modern .home-story {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
  gap: 0;
  max-width: 1240px;
  padding-top: 92px;
}

.theme-modern .home-story-media {
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
  box-shadow: var(--shadow);
}

.theme-modern .home-story-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.theme-modern .home-story-content {
  align-self: center;
  margin-left: -52px;
  padding: clamp(30px, 5vw, 56px);
  background: rgba(255, 254, 250, .96);
  border: 1px solid rgba(221, 210, 194, .82);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(42, 34, 24, .18);
}

.theme-modern .home-story-content h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1;
}

.theme-modern .home-story-content p:not(.eyebrow) {
  color: var(--muted);
}

.theme-modern .story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.theme-modern .story-search {
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.theme-modern .story-search label {
  font-size: 1rem;
}

.theme-modern .home-gallery {
  padding-bottom: 16px;
}

.theme-modern .gallery-mosaic {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, minmax(0, .8fr));
  grid-auto-rows: 220px;
  gap: 14px;
}

.theme-modern .mosaic-card {
  min-height: 0;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(35, 34, 30, .16);
}

.theme-modern .mosaic-card img {
  min-height: 0;
  height: 100%;
}

.theme-modern .mosaic-card-large {
  grid-row: span 2;
}

.theme-modern .mosaic-card span {
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .34);
}

.theme-modern .search-panel,
.theme-modern .wide-search,
.theme-modern .login-box,
.theme-modern .admin-form,
.theme-modern .article,
.theme-modern .article-feature-image,
.theme-modern .gallery-group,
.theme-modern .music-category,
.theme-modern .music-track,
.theme-modern .gallery-create-form,
.theme-modern .gallery-admin-card,
.theme-modern .music-create-form,
.theme-modern .music-admin-card,
.theme-modern .article-side a,
.theme-modern .side-search {
  border: 0;
  box-shadow: 0 14px 38px rgba(42, 34, 24, .09);
}

.theme-modern .gallery-section-nav a,
.theme-modern .music-category-nav a,
.theme-modern .gallery-page-link,
.theme-modern .legacy-content .gallery .parentlink a {
  background: #fff8ec;
  border-color: rgba(200, 154, 59, .36);
}

.theme-modern .gallery-group,
.theme-modern .music-category {
  background: rgba(255, 254, 250, .96);
}

.theme-modern .gallery-thumb,
.theme-modern .legacy-content .gallery .img a {
  border: 0;
  box-shadow: 0 10px 24px rgba(42, 34, 24, .1);
}

.theme-modern .article-shell {
  max-width: 1240px;
}

.theme-modern .article {
  padding: clamp(26px, 4vw, 48px);
}

.theme-modern .legacy-content {
  color: #263330;
  font-size: 1.08rem;
}

.theme-modern .legacy-content a {
  color: var(--accent);
  font-weight: 750;
}

.theme-modern .legacy-content blockquote {
  margin: 22px 0;
  padding: 13px 18px;
  background: #f5eddf;
  border-left: 4px solid var(--gold);
}

.theme-modern .site-footer {
  max-width: 1240px;
  margin-top: 108px;
}

.theme-modern .admin-layout {
  max-width: 1480px;
}

.theme-modern .quick-create-form,
.theme-modern .admin-page-list,
.theme-modern .gallery-admin-image,
.theme-modern .music-track-editor,
.theme-modern .music-add-track,
.theme-modern .music-track-row,
.theme-modern .menu-item-row,
.theme-modern .menu-group-editor {
  background: rgba(255, 254, 250, .97);
}

@media (max-width: 1180px) {
  .theme-modern .hero-logo-panel {
    display: none;
  }
}

@media (max-width: 1080px) {
  .theme-modern .priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-modern .home-story {
    grid-template-columns: 1fr;
  }

  .theme-modern .home-story-media {
    border-radius: 8px;
  }

  .theme-modern .home-story-content {
    margin: -64px 20px 0;
  }

  .theme-modern .gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .theme-modern .home-dock {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
    padding: 0;
  }

  .theme-modern .home-dock > * {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
  }

  .theme-modern .home-hero::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .theme-modern .home-hero {
    min-height: 680px;
    align-items: end;
    padding-bottom: 56px;
  }

  .theme-modern .hero h1 {
    font-size: clamp(3.1rem, 17vw, 4.8rem);
  }

  .theme-modern .hero-note-row {
    display: grid;
  }

  .theme-modern .priority-grid,
  .theme-modern .gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .theme-modern .priority-card {
    min-height: 240px;
  }

  .theme-modern .home-story-media,
  .theme-modern .home-story-media img {
    min-height: 360px;
  }

  .theme-modern .home-story-content {
    margin: -34px 12px 0;
    padding: 24px 18px;
  }

  .theme-modern .mosaic-card-large {
    grid-row: span 1;
  }
}
