@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

:root {
  --color-background: #eeede9;
  --color-surface: #ffffff;
  --color-text-primary: #292523;
  --color-text-secondary: #7b7676;
  --color-accent: #292523;
  --color-border: #d4d2cd;
  --max-width-content: 980px;
  --max-width-prose: 800px;
  --gallery-thumb-width: 161px;
  --gallery-thumb-height: 200px;
  --gallery-gap: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-text-primary);
  background: var(--color-background);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-text-secondary);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: var(--max-width-content);
  padding-left: 1rem;
  padding-right: 1rem;
}

.max-w-prose {
  max-width: var(--max-width-prose);
}

.page-heading {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.375;
}

.section-heading {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.prose-body {
  font-size: 18px;
  line-height: 1.625;
}

.text-center { text-align: center; }
.text-secondary { color: var(--color-text-secondary); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

/* Header */
.site-header {
  background: var(--color-background);
  padding-top: 1.5rem;
}

.site-header .branding {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .site-header .header-top {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .site-header .branding {
    text-align: right;
    margin-bottom: 0.5rem;
  }

  .site-header {
    padding-top: 2rem;
  }

  .desktop-nav > ul {
    justify-content: flex-end;
  }
}

.brand-name {
  font-size: 32px;
  line-height: 1.25;
}

.brand-tagline {
  font-size: 18px;
  line-height: 1.375;
}

@media (min-width: 768px) {
  .brand-name { font-size: 40px; }
}

.nav-link {
  font-size: 14pt;
  line-height: 1.375;
  padding: 0.25rem 0.35rem;
  display: inline-block;
  white-space: nowrap;
}

.nav-link.active {
  text-decoration: underline;
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }
  .mobile-nav-toggle {
    display: none;
  }
}

.desktop-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.125rem;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16pt;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  white-space: nowrap;
}

.nav-dropdown > button:hover {
  color: var(--color-text-secondary);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  min-width: 220px;
  z-index: 50;
  padding: 0.5rem 0;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 14px;
}

/* Mobile drawer */
.mobile-nav-toggle {
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: var(--color-surface);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-drawer-panel ul li {
  margin-bottom: 0.5rem;
}

.mobile-drawer-panel .submenu {
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-background);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer h2 {
  font-size: 10pt;
  font-weight: 400;
  margin: 0;
}

.site-footer .terms-link {
  margin-top: 0.5rem;
  display: inline-block;
  font-size: 18px;
  text-decoration: underline;
}

/* Carousel */
.carousel {
  position: relative;
  max-width: calc(350px + 6rem);
  margin: 0 auto;
}

.carousel-stage {
  position: relative;
}

.carousel-viewport {
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: center;
  padding-bottom: 0.5rem;
}

.carousel-slide-image {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.carousel-lightbox-trigger {
  cursor: pointer;
}

@media (min-width: 768px) {
  .carousel-slide-image { min-height: 300px; }
}

.carousel-slide img,
.carousel-image {
  max-height: 35vh;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  cursor: pointer;
}

.carousel-title {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 18px;
  width: 100%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 1rem 0.5rem;
  z-index: 1;
}

.carousel-btn:hover { color: var(--color-text-secondary); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-counter {
  margin-top: 1rem;
  text-align: center;
  font-size: 16px;
}

/* Gallery grid — uniform thumb height, variable width */
.site-container:has(.gallery-grid) {
  max-width: min(90rem, 98vw);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: var(--gallery-gap);
  width: 100%;
  margin: 0 auto;
}

.gallery-card {
  margin-bottom: 0;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.gallery-card img {
  display: block;
  height: var(--gallery-thumb-height);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  transition: opacity 0.15s;
}

.gallery-card:hover img {
  opacity: 0.9;
}

.sold-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--color-text-primary);
  color: var(--color-background);
  font-size: 11px;
  padding: 0.125rem 0.5rem;
  text-transform: uppercase;
}

/* Gallery index */
.gallery-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gallery-categories { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-categories { grid-template-columns: repeat(4, 1fr); }
}

.category-card .thumb {
  aspect-ratio: 4 / 5;
  background: var(--color-background);
  overflow: hidden;
}

.category-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.15s;
}

.category-card:hover .thumb img {
  opacity: 0.9;
}

.category-card .label {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem;
  --lightbox-image-height: 140vh;
  --lightbox-display-height: min(140vh, 82vh);
  --lightbox-details-width: 33rem;
}

.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.lightbox-content {
  position: relative;
  max-width: min(90rem, 98vw);
  width: auto;
  margin: 0 auto;
  color: white;
}

.lightbox-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.5rem;
  width: auto;
  max-width: min(90rem, 98vw);
}

.lightbox-image-wrap {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  height: var(--lightbox-display-height);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.lightbox-sold-banner {
  position: absolute;
  top: 1.25rem;
  right: -2.75rem;
  transform: rotate(45deg);
  background: #8b0000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 3rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.lightbox-details {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--lightbox-details-width);
  width: var(--lightbox-details-width);
  min-width: 21rem;
  text-align: left;
  height: var(--lightbox-display-height);
  max-height: var(--lightbox-display-height);
}

.lightbox-title {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.lightbox-meta {
  margin-bottom: 0.5rem;
}

.lightbox-meta-row {
  margin: 0 0 0.35rem;
  font-size: 12pt;
  line-height: 1.4;
}

.lightbox-meta-label {
  display: block;
  font-size: 12pt;
  margin-bottom: 0.15rem;
}

.lightbox-description-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-bottom: 0.75rem;
}

.lightbox-description-wrap > .lightbox-meta-label {
  flex-shrink: 0;
}

.lightbox-description {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  font-size: 12pt;
  line-height: 1.5;
  padding-right: 0.25rem;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-top: auto;
}

.lightbox-btn {
  display: inline-block;
  border: 1px solid white;
  color: white;
  background: transparent;
  padding: 0.5rem 1.25rem;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 201;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 1rem 0.75rem;
  z-index: 201;
}

.lightbox-nav:hover {
  color: rgba(255, 255, 255, 0.75);
}

.lightbox-nav--prev {
  left: 1rem;
}

.lightbox-nav--next {
  right: 1rem;
}

.lightbox-nav[hidden] {
  display: none !important;
  pointer-events: none;
}

@media (max-width: 767px) {
  .lightbox {
    --lightbox-image-height: 100vh;
    --lightbox-display-height: min(100vh, 70vh);
  }

  .lightbox-content {
    width: 100%;
    max-width: 100%;
  }

  .lightbox-layout {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .lightbox-image-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: var(--lightbox-display-height);
    max-height: var(--lightbox-display-height);
  }

  .lightbox-image-wrap img {
    max-width: 100%;
    max-height: var(--lightbox-display-height);
  }

  .lightbox-details {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
  }

  .lightbox-description {
    max-height: 12rem;
  }

  .lightbox-nav {
    font-size: 2rem;
    padding: 0.75rem 0.5rem;
  }

  .lightbox-nav--prev {
    left: 0.25rem;
  }

  .lightbox-nav--next {
    right: 0.25rem;
  }
}

.btn-white {
  background: white;
  color: var(--color-text-primary);
  padding: 0.5rem 1.5rem;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-outline {
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1.5rem;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-sentence-case {
  text-transform: none;
  letter-spacing: normal;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 0.25rem;
}

.admin-description-drop {
  position: relative;
}

.admin-description-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.admin-description-label-row label {
  margin-bottom: 0;
}

.admin-description-size-toggle {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.admin-description-size-toggle:hover {
  color: var(--color-text-secondary);
}

.admin-description-drop textarea {
  width: 100%;
  box-sizing: border-box;
}

.admin-description-drop.is-dragover textarea {
  outline: 2px dashed var(--color-text-primary);
  outline-offset: 2px;
  background: #fff;
}

.admin-description-hint {
  margin: 0.35rem 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.admin-description-file-label {
  color: var(--color-text-primary);
  text-decoration: underline;
  cursor: pointer;
}

.admin-description-file-label:hover {
  color: var(--color-text-secondary);
}

.admin-blog-body-editor {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  min-height: 240px;
  cursor: text;
}

.admin-blog-body-editor.is-dragover {
  outline: 2px dashed var(--color-text-primary);
  outline-offset: 2px;
  background: #fff;
}

.admin-blog-body-editor.is-uploading {
  opacity: 0.7;
  pointer-events: none;
}

.admin-blog-body-text {
  min-height: 160px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
}

.admin-blog-body-text:empty::before {
  content: attr(data-placeholder);
  color: var(--color-text-secondary);
  pointer-events: none;
}

.admin-blog-body-media {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.75rem 0.75rem;
}

.admin-blog-body-media:empty {
  display: none;
  padding: 0;
}

.admin-blog-body-media .blog-inline-video,
.admin-blog-body-media .blog-inline-audio {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--color-border);
  background: #faf9f7;
}

.admin-blog-body-media .blog-inline-video {
  height: auto;
}

.admin-blog-body-media .blog-image-resize {
  position: relative;
  display: block;
  max-width: 100%;
  align-self: flex-start;
}

.admin-blog-body-media .blog-image-resize img.blog-inline-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  background: #faf9f7;
}

.admin-blog-body-media .blog-image-resize.is-resizing {
  user-select: none;
}

.admin-blog-body-media .blog-image-resize.is-resizing img {
  pointer-events: none;
}

.blog-image-resize-handle {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 2px;
  background: var(--color-text-primary);
  cursor: nwse-resize;
  touch-action: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.blog-image-resize-handle:hover {
  transform: scale(1.08);
}

.admin-blog-body-media .blog-link-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #faf9f7;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
}

.admin-blog-body-media .blog-link-card-image,
.admin-blog-body-media .blog-link-card-placeholder {
  display: block;
  width: 120px;
  min-height: 80px;
  height: 100%;
  object-fit: cover;
  background: #ebe8e4;
}

.admin-blog-body-media .blog-link-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.admin-blog-body-media .blog-link-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem 0.65rem 0;
  min-width: 0;
}

.admin-blog-body-media .blog-link-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.admin-blog-body-media .blog-link-card-description {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-blog-body-media .blog-link-card-url {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.admin-blog-body-hint {
  margin: 0.35rem 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-family: inherit;
  font-size: 16px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: #b91c1c;
  font-size: 14px;
  margin-top: 0.25rem;
}

.flash {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.flash.success { border-color: #16a34a; color: #15803d; }
.flash.error { border-color: #dc2626; color: #b91c1c; }

.btn {
  display: inline-block;
  border: 1px solid var(--color-text-primary);
  padding: 0.5rem 2rem;
  font-size: 16px;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--color-text-primary);
  color: var(--color-background);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Blog */
.blog-page {
  padding: 2rem 0 3rem;
}

.blog-page-title {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }

  .blog-index {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }
}

.blog-feed {
  min-width: 0;
}

.blog-feed-entries {
  max-width: var(--max-width-prose);
}

.blog-entry + .blog-entry {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.blog-entry-header {
  margin-bottom: 1.25rem;
}

.blog-entry-date {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
}

.blog-entry-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}

.blog-entry-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.blog-load-more-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.blog-load-more {
  min-width: 10rem;
}

.blog-index {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1rem;
}

.blog-index-search {
  margin-bottom: 1rem;
}

.blog-index-search-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.blog-search-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  font-family: inherit;
  font-size: 15px;
}

.blog-search-input:focus {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 1px;
}

.blog-search-empty {
  margin: 0.5rem 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.blog-index-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-index-month-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.blog-index-month-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.35rem 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--color-text-primary);
}

.blog-index-month-toggle:hover,
.blog-index-month-toggle:focus {
  color: var(--color-text-secondary);
  outline: none;
}

.blog-index-month-toggle:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 2px;
}

.blog-index-month-icon::before {
  content: '▼';
  display: inline-block;
  width: 1rem;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.blog-index-month-toggle[aria-expanded='true'] .blog-index-month-icon::before {
  content: '▲';
}

.blog-index-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 1.2rem;
}

.blog-index-item + .blog-index-item {
  margin-top: 0.15rem;
}

.blog-index-link {
  display: block;
  padding: 0.2rem 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-text-primary);
  text-decoration: none;
}

.blog-index-link:hover,
.blog-index-link.is-active {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.blog-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog-card .cover {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.blog-card .meta {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.blog-card h2 {
  font-size: 24px;
  font-weight: 400;
  margin: 0.5rem 0;
}

.blog-body {
  font-size: 18px;
  line-height: 1.625;
}

.blog-body p { margin-bottom: 1rem; }

.blog-body-text > :last-child {
  margin-bottom: 0;
}

.blog-body-images,
.blog-body-media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.blog-inline-image,
.blog-body-images img,
.blog-body-media img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.blog-body-images img:not([style*='width']),
.blog-body-media img:not([style*='width']) {
  width: 100%;
}

.blog-inline-video,
.blog-body-media video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  background: #000;
}

.blog-inline-audio,
.blog-body-media audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.blog-link-card {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  max-width: 100%;
  transition: border-color 0.15s ease;
}

.blog-link-card:hover {
  border-color: var(--color-text-secondary);
}

.blog-link-card-image,
.blog-link-card-placeholder {
  display: block;
  width: 100%;
  min-height: 100px;
  height: 100%;
  object-fit: cover;
  background: #ebe8e4;
}

.blog-link-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.blog-link-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem 0.85rem 0;
  min-width: 0;
}

.blog-link-card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.blog-link-card-description {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.blog-link-card-url {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Commissions strip */
.commission-strip {
  display: flex;
  justify-content: center;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.commission-strip img {
  width: 147px;
  height: 184px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Admin */
.admin-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.admin-nav a {
  font-size: 14px;
  text-decoration: underline;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.admin-page-header h1 {
  margin: 0;
}

.admin-publish-panel {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  background: #faf9f7;
  max-width: 42rem;
}

.admin-publish-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.admin-publish-note {
  margin: 0 0 1rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.admin-import-panel {
  border: 1px solid var(--color-border);
  background: #faf9f7;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-import-title {
  margin: 0 0 0.5rem;
  font-size: 18px;
  font-weight: 500;
}

.admin-import-note,
.admin-import-help {
  margin: 0 0 1rem;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.admin-import-methods {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .admin-import-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-import-method {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--color-border);
  background: white;
}

.admin-import-method legend {
  padding: 0 0.25rem;
  font-size: 14px;
  font-weight: 500;
}

.admin-import-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
}

.admin-import-file-count {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.admin-import-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 16, 0.5);
  backdrop-filter: blur(2px);
}

.admin-import-overlay[hidden] {
  display: none;
}

body.admin-import-busy {
  overflow: hidden;
}

.admin-import-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  min-width: 220px;
}

.admin-import-progress-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.admin-import-progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.admin-import-progress-ring-track {
  fill: none;
  stroke: #ebe8e4;
  stroke-width: 6;
}

.admin-import-progress-ring-bar {
  fill: none;
  stroke: var(--color-accent, #6b4f3a);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s ease;
}

.admin-import-progress-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
}

.admin-import-progress-status {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 280px;
}

@media (prefers-reduced-motion: reduce) {
  .admin-import-progress-ring-bar {
    transition: none;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.admin-col-id { width: 3rem; }
.admin-col-image { width: 5.5rem; }
.admin-col-year { width: 6.5rem; }
.admin-col-category { width: 10rem; }
.admin-col-featured { width: 6.5rem; }
.admin-col-actions { width: 5rem; }

.admin-table th,
.admin-table td {
  border: 1px solid var(--color-border);
  padding: 0.5rem;
  text-align: left;
}

.admin-table th {
  background: var(--color-surface);
  font-weight: 600;
}

.admin-table-filter-header {
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
  min-width: 5.5rem;
}

.admin-table-actions {
  width: 1%;
  min-width: 4.5rem;
  text-align: left;
  vertical-align: top;
}

.admin-table-actions a {
  display: block;
}

.admin-table-actions .admin-action-delete-form {
  display: block;
  margin: 0.35rem 0 0;
  padding: 0;
}

.admin-action-delete {
  background: none;
  border: none;
  color: #b91c1c;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  padding: 0;
  margin: 0;
  text-align: left;
}

.admin-table-filters th {
  background: var(--color-background);
  font-weight: 400;
}

.admin-filter-select {
  width: 100%;
  max-width: 11rem;
  font-size: 13px;
  font-family: inherit;
  padding: 0.25rem;
  border: 1px solid var(--color-border);
  background: white;
}

.admin-filter-select--header,
.admin-filter-select--row {
  max-width: none;
  min-width: 4.5rem;
  width: 100%;
  font-size: 14px;
  padding: 0.15rem 1.5rem 0.15rem 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23292523' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  color: var(--color-text-primary);
}

.admin-filter-select--header {
  font-weight: 600;
}

.admin-filter-select--row {
  font-weight: 400;
}

.admin-filter-select--header:hover,
.admin-filter-select--header:focus,
.admin-filter-select--row:hover,
.admin-filter-select--row:focus {
  color: var(--color-text-secondary);
  outline: none;
}

.admin-filter-select--row.is-saving {
  opacity: 0.6;
  pointer-events: none;
}

.admin-category-cell {
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
}

.admin-filter-radios {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-inline-radios {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.15rem 0;
}

.admin-inline-radios.is-saving {
  opacity: 0.6;
}

.admin-featured-cell {
  vertical-align: middle;
}

.admin-inline-radios label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.admin-radio-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-radio-fieldset legend {
  font-size: 14px;
  margin-bottom: 0.25rem;
  padding: 0;
}

.admin-radio-fieldset label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.admin-editable {
  cursor: pointer;
  vertical-align: middle;
}

.admin-editable:hover {
  background: rgba(0, 0, 0, 0.03);
}

.admin-editable.is-editing {
  padding: 0.5rem;
}

.admin-editable.is-saving {
  opacity: 0.6;
}

.admin-editable.is-error {
  background: #fde8e8;
}

.admin-inline-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  font-family: inherit;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-text-primary);
  background: white;
}

.admin-thumb {
  width: 60px;
  height: 75px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--color-border);
}

.admin-thumb-placeholder {
  display: inline-block;
  width: 60px;
  height: 75px;
  line-height: 75px;
  text-align: center;
  color: var(--color-text-secondary);
  background: var(--color-background);
  border: 1px solid var(--color-border);
}

.admin-thumb-cell {
  position: relative;
  display: inline-block;
  cursor: context-menu;
}

.admin-sold-badge {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  background: var(--color-text-primary);
  color: var(--color-background);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.15rem 0.3rem;
  text-transform: uppercase;
  pointer-events: none;
}

.admin-thumb-cell.is-uploading {
  opacity: 0.5;
  pointer-events: none;
}

.admin-thumb-context-menu {
  position: fixed;
  z-index: 1000;
  min-width: 10rem;
  padding: 0.25rem 0;
  background: white;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.admin-thumb-context-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.admin-thumb-context-menu button:hover,
.admin-thumb-context-menu button:focus {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.admin-form-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.admin-form-image-item {
  text-align: center;
}

.admin-form-thumb {
  width: 100px;
  height: 125px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--color-border);
}

.admin-form-thumb-placeholder {
  width: 100px;
  height: 125px;
  line-height: 125px;
}

.admin-form-image-remove {
  font-size: 12px;
  color: #b91c1c;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 0.25rem;
}

.admin-thumb-hint {
  font-size: 13px;
  font-weight: normal;
  color: var(--color-text-secondary);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 14px;
}

.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-2 { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

main {
  min-height: 50vh;
}
