:root {
  --bg: #f4f0e9;
  --bg-soft: #fbf8f2;
  --panel: rgba(255, 252, 247, 0.78);
  --text: #211c18;
  --muted: #71655b;
  --line: rgba(42, 33, 25, 0.14);
  --accent: #8b6250;
  --accent-dark: #644438;
  --shadow: 0 24px 80px rgba(39, 29, 21, 0.16);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 16% 8%, rgba(177, 133, 96, 0.24), transparent 28rem),
    radial-gradient(circle at 82% 2%, rgba(205, 183, 157, 0.28), transparent 32rem),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 55%, #eee7dd 100%);
}

a {
  color: inherit;
}

.page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: 0 16px 48px rgba(42, 33, 25, 0.08);
  backdrop-filter: blur(16px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  min-width: 0;
}

.brand,
.nav-link,
.social-link {
  text-decoration: none;
}

.brand {
  flex: 0 0 auto;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-dark);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.68);
  color: var(--muted);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent-dark);
  border-color: rgba(100, 68, 56, 0.28);
  background: rgba(255, 250, 244, 0.94);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.admin-header-link {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.4vw, 38px);
  align-items: start;
  min-height: auto;
  padding: 20px 0 78px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 4px 0 0;
}

.hero-title {
  text-align: right;
}

.hero-intro {
  padding-left: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(4.4rem, 7.5vw, 7.4rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 720;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf4;
  border-color: rgba(100, 68, 56, 0.55);
  background: linear-gradient(135deg, #8b6250, #654537);
  box-shadow: 0 18px 40px rgba(100, 68, 56, 0.26);
}

.button-secondary {
  background: rgba(255, 252, 247, 0.72);
  backdrop-filter: blur(14px);
}

.feature-frame {
  position: relative;
  min-height: 680px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.88), rgba(242, 234, 223, 0.68));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-video-frame {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-video-frame::before {
  display: none;
}

.feature-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-xl) - 16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 1;
}

.feature-frame img,
.hero-video {
  width: 100%;
  height: 100%;
  min-height: 644px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-xl) - 18px);
}

.hero-video-frame .hero-video {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: rgba(33, 28, 24, 0.12);
  border-radius: var(--radius-xl);
}

.feature-caption {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 38px;
  z-index: 2;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(33, 28, 24, 0.58);
  color: #fffaf4;
  backdrop-filter: blur(18px);
}

.feature-caption strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.feature-caption span {
  color: rgba(255, 250, 244, 0.8);
  font-size: 0.95rem;
}

.gallery-section {
  padding: 12px 0 104px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  justify-content: start;
  gap: 56px;
  margin-bottom: 56px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head > div {
  align-self: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-weight: 760;
  font-size: 0.84rem;
}

h2 {
  margin: 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(2.5rem, 4.9vw, 4.6rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.section-copy {
  max-width: 680px;
  margin: 0;
  padding-left: 46px;
  border-left: 1px solid rgba(100, 68, 56, 0.24);
  color: var(--muted);
  line-height: 1.44;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: 1.52rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  grid-auto-flow: dense;
}

.pictures-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.pictures-grid .art-card {
  aspect-ratio: 4 / 5;
  grid-column: auto;
  min-height: 0;
}

.art-card > .image-preview-link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  cursor: zoom-in;
  text-decoration: none;
}

.feature-frame > .image-preview-link {
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.image-preview-link:focus-visible {
  outline: 3px solid rgba(255, 250, 244, 0.92);
  outline-offset: -8px;
}

.art-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.72);
  box-shadow: 0 18px 50px rgba(42, 33, 25, 0.12);
  isolation: isolate;
}

.art-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}

.art-card:hover img {
  transform: scale(1.035);
}

.art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 15, 12, 0.02) 40%,
    rgba(20, 15, 12, 0.42) 100%
  );
  pointer-events: none;
}

.art-card > span:not(.availability-badge) {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: #fffaf4;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 760;
  pointer-events: none;
}

.availability-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 250, 244, 0.54);
  border-radius: 999px;
  color: #fffaf4;
  cursor: zoom-in;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 14px 36px rgba(20, 15, 12, 0.28);
  outline: none;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition:
    width 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.availability-badge.is-available {
  background: rgba(74, 65, 58, 0.84);
}

.availability-badge.is-unavailable {
  background: rgba(74, 65, 58, 0.84);
}

.availability-badge > span {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 11px;
  margin-top: 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
  z-index: 1;
}

.availability-badge > span::before,
.availability-badge > span::after {
  content: "";
  position: absolute;
}

.availability-badge > span::before {
  left: -6px;
  top: -6px;
  width: 12px;
  height: 5px;
  border: 2px solid currentColor;
  border-right: 0;
  border-bottom: 0;
  border-radius: 999px 0 0 0;
  transform: rotate(12deg);
}

.availability-badge > span::after {
  left: 1px;
  right: 1px;
  bottom: -7px;
  height: 5px;
  background:
    radial-gradient(circle, currentColor 0 2px, transparent 2.2px) left center / 50% 100% no-repeat,
    radial-gradient(circle, currentColor 0 2px, transparent 2.2px) right center / 50% 100% no-repeat;
}

.availability-badge.is-unavailable::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  z-index: 2;
  width: 25px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  pointer-events: none;
  transform: translateY(-50%) rotate(-43deg);
}

.availability-badge::after {
  content: attr(data-tooltip);
  display: inline-block;
  width: 0;
  margin-left: 0;
  color: #fffaf4;
  white-space: nowrap;
  opacity: 0;
  transition:
    width 180ms ease,
    margin-left 180ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.availability-badge:hover,
.availability-badge:focus-visible {
  justify-content: flex-start;
  width: min(210px, calc(100% - 32px));
  border-color: rgba(255, 250, 244, 0.72);
  box-shadow: 0 16px 42px rgba(20, 15, 12, 0.34);
}

.availability-badge:hover::after,
.availability-badge:focus-visible::after {
  width: auto;
  margin-left: 9px;
  opacity: 1;
}

.availability-badge:focus-visible {
  box-shadow:
    0 14px 36px rgba(20, 15, 12, 0.28),
    0 0 0 3px rgba(255, 250, 244, 0.72);
}

.has-lightbox {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  background: rgba(22, 17, 13, 0.84);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: min(100%, 1380px);
  max-height: calc(100vh - 84px);
  margin: 0;
}

.image-lightbox-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(84vh, 900px);
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.image-lightbox-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  max-height: calc(100vh - 84px);
  overflow: auto;
  padding: clamp(26px, 3vw, 42px);
  border-left: 1px solid rgba(255, 250, 244, 0.18);
  color: #fffaf4;
}

.image-lightbox-date {
  margin: 0 0 34px;
  color: rgba(255, 250, 244, 0.56);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.image-lightbox-kicker {
  margin: 0 0 18px;
  color: rgba(255, 250, 244, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 760;
}

.image-lightbox-copy h3 {
  margin: 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  font-weight: 500;
}

.image-lightbox-description {
  margin: 24px 0 0;
  color: rgba(255, 250, 244, 0.76);
  font-size: 1.05rem;
  line-height: 1.7;
}

.image-lightbox-sale {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 244, 0.18);
}

.image-lightbox-availability {
  margin: 0;
  color: #fffaf4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-lightbox-contact,
.contact-form-submit {
  min-height: 46px;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 244, 0.36);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.14);
  color: #fffaf4;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.image-lightbox-contact:hover,
.image-lightbox-contact:focus-visible,
.contact-form-submit:hover,
.contact-form-submit:focus-visible {
  border-color: rgba(255, 250, 244, 0.72);
  background: rgba(255, 250, 244, 0.22);
  transform: translateY(-1px);
}

.contact-form-submit:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.image-lightbox-contact-form {
  margin-top: 20px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form-grid label {
  display: grid;
  gap: 7px;
  color: rgba(255, 250, 244, 0.68);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.1);
  color: #fffaf4;
  font: inherit;
  font-size: 0.96rem;
  letter-spacing: normal;
  outline: none;
  padding: 12px 13px;
  text-transform: none;
}

.contact-form-grid textarea {
  resize: vertical;
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
  border-color: rgba(255, 250, 244, 0.62);
  background: rgba(255, 250, 244, 0.15);
}

.contact-form-message {
  grid-column: 1 / -1;
}

.contact-form-submit {
  width: 100%;
}

.contact-form-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: rgba(255, 250, 244, 0.68);
  font-size: 0.86rem;
  line-height: 1.5;
}

.image-lightbox-close {
  position: fixed;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 250, 244, 0.34);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.12);
  color: #fffaf4;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(14px);
  transition:
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  border-color: rgba(255, 250, 244, 0.74);
  background: rgba(255, 250, 244, 0.2);
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  right: clamp(18px, 2.4vw, 34px);
  bottom: clamp(18px, 2.4vw, 34px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px 0 12px;
  border: 1px solid rgba(100, 68, 56, 0.22);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.82);
  color: var(--accent-dark);
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(42, 33, 25, 0.14);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  backdrop-filter: blur(16px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.back-to-top span:first-child {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(139, 98, 80, 0.12);
  font-size: 1rem;
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(100, 68, 56, 0.36);
  background: rgba(255, 252, 247, 0.96);
  transform: translateY(-2px);
}

/* Balanced collage for exactly 7 images */
.card-1 {
  grid-column: span 4;
  min-height: 620px;
}

.card-2 {
  grid-column: span 4;
  min-height: 420px;
}

.card-3 {
  grid-column: span 4;
  min-height: 420px;
}

.card-4 {
  grid-column: span 5;
  min-height: 520px;
}

.card-5 {
  grid-column: span 3;
  min-height: 520px;
}

.card-6 {
  grid-column: span 4;
  min-height: 520px;
}

.card-7 {
  grid-column: span 12;
  min-height: 560px;
}

.card-1 img {
  object-position: center;
}

.card-2 img {
  object-position: center;
}

.card-3 img {
  object-position: center;
}

.card-4 img {
  object-position: center;
}

.card-5 img {
  object-position: center;
}

.card-6 img {
  object-position: center;
}

.card-7 img {
  object-position: center 38%;
}

.coming-soon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 78px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 22px 64px rgba(42, 33, 25, 0.1);
  backdrop-filter: blur(16px);
}

.coming-soon h3 {
  margin: 0 0 10px;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.coming-soon p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.login-page {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 92px) 0;
}

.login-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 0.78fr);
  width: min(100%, 980px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.9), rgba(240, 231, 219, 0.72));
  box-shadow: var(--shadow);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: calc(var(--radius-xl) - 14px);
  pointer-events: none;
  z-index: 1;
}

.login-art {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 100%;
  padding: clamp(34px, 5vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 250, 244, 0.3), transparent 18rem),
    linear-gradient(150deg, rgba(39, 29, 21, 0.18), rgba(39, 29, 21, 0.74)),
    url("/images/photo_8_2026-05-15_22-55-01.jpg") center / cover;
}

.login-art::after {
  content: "";
  position: absolute;
  inset: auto -18% -28% 18%;
  height: 58%;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 250, 244, 0.12);
  filter: blur(2px);
}

.login-art-mark {
  position: relative;
  z-index: 1;
  color: #fffaf4;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.login-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 58px);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 98, 80, 0.12), transparent 16rem),
    rgba(255, 252, 247, 0.86);
  backdrop-filter: blur(16px);
}

.login-card h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
}

.login-copy {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.login-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(130, 48, 34, 0.2);
  border-radius: 16px;
  background: rgba(130, 48, 34, 0.08);
  color: #733226;
  font-size: 0.9rem;
  line-height: 1.45;
}

.login-alert-success {
  border-color: rgba(73, 107, 67, 0.22);
  background: rgba(73, 107, 67, 0.08);
  color: #425f39;
}

.login-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-field input {
  min-height: 54px;
  width: 100%;
  border: 1px solid rgba(100, 68, 56, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.74);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  outline: none;
  padding: 0 16px;
  text-transform: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.login-field input:focus {
  border-color: rgba(100, 68, 56, 0.46);
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 0 0 4px rgba(139, 98, 80, 0.1);
}

.login-submit {
  width: 100%;
  margin-top: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-page {
  padding-bottom: 72px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  padding: clamp(58px, 8vw, 96px) 0 38px;
  border-bottom: 1px solid var(--line);
}

.admin-hero h1 {
  font-size: clamp(4rem, 8vw, 7rem);
}

.admin-hero-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    "Times New Roman",
    serif;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.25;
}

.admin-workspace {
  display: grid;
  gap: 28px;
  padding-top: 34px;
}

.single-image-workspace {
  grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 1fr);
  align-items: start;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 98, 80, 0.09), transparent 20rem),
    rgba(255, 252, 247, 0.82);
  box-shadow: 0 18px 56px rgba(42, 33, 25, 0.1);
  backdrop-filter: blur(16px);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.admin-card-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.admin-label {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-pill,
.admin-status,
.table-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-pill {
  padding: 0 12px;
  border: 1px solid rgba(100, 68, 56, 0.18);
  color: var(--accent-dark);
  background: rgba(139, 98, 80, 0.08);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
}

.single-image-preview {
  position: sticky;
  top: 24px;
  overflow: hidden;
}

.single-image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.single-image-preview > div {
  padding: clamp(24px, 3vw, 34px);
}

.single-image-preview h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.single-image-preview p:not(.admin-label) {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  border: 1px solid rgba(100, 68, 56, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  outline: none;
  padding: 14px 15px;
  text-transform: none;
}

.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
  border-color: rgba(100, 68, 56, 0.46);
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 0 0 4px rgba(139, 98, 80, 0.1);
}

.admin-form-grid textarea {
  resize: vertical;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px);
}

.admin-error-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(39, 29, 21, 0.36);
  backdrop-filter: blur(10px);
}

.admin-error-dialog {
  width: min(100%, 460px);
  border: 1px solid rgba(100, 68, 56, 0.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(130, 48, 34, 0.12), transparent 16rem),
    rgba(255, 252, 247, 0.96);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 38px);
  text-align: center;
}

.admin-error-dialog h2 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.admin-error-dialog p:not(.admin-label) {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-error-close {
  cursor: pointer;
  font: inherit;
}

.image-table-wrap {
  overflow-x: auto;
}

.image-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.image-table th,
.image-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.image-table th {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-table td {
  color: var(--muted);
  font-size: 0.94rem;
}

.image-table td strong,
.image-table td span {
  display: block;
}

.image-table td strong {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 1rem;
}

.clickable-image-row {
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.clickable-image-row:hover,
.clickable-image-row:focus-visible {
  background: rgba(139, 98, 80, 0.06);
  box-shadow: inset 4px 0 0 rgba(100, 68, 56, 0.22);
}

.admin-thumb {
  width: 86px;
  height: 70px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(100, 68, 56, 0.16);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(42, 33, 25, 0.12);
}

.admin-status {
  min-height: 30px;
  gap: 8px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(113, 101, 91, 0.18);
  color: rgba(76, 68, 61, 0.82);
  background: rgba(113, 101, 91, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 250, 244, 0.62);
}

.image-table td .admin-status {
  display: inline-flex;
}

.admin-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.58;
}

.admin-status.is-live {
  border-color: rgba(79, 112, 72, 0.22);
  color: #365d32;
  background: rgba(79, 112, 72, 0.11);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-delete-form {
  margin: 0;
}

.table-action {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(100, 68, 56, 0.18);
  color: var(--accent-dark);
  background: rgba(255, 250, 244, 0.7);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.table-action:hover,
.table-action:focus-visible {
  border-color: rgba(100, 68, 56, 0.34);
  background: rgba(255, 250, 244, 0.96);
}

.table-action.is-danger {
  color: #733226;
}

.seal {
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.76);
  text-align: center;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  line-height: 1.55;
  text-transform: uppercase;
}

footer {
  padding: 0 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 760;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-login-link {
  color: inherit;
  text-decoration: none;
}

.footer-login-link:hover,
.footer-login-link:focus-visible {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .hero {
    padding-top: 70px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 780px;
    text-align: center;
  }

  .hero-title {
    text-align: center;
  }

  .hero-intro {
    padding-left: 0;
    border-left: 0;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-frame {
    min-height: 620px;
  }

  .hero-video-frame {
    min-height: 0;
  }

  .feature-frame img,
  .hero-video {
    min-height: 584px;
  }

  .hero-video-frame .hero-video {
    min-height: 0;
  }

  .section-head {
    display: block;
    padding: 28px 0 34px;
    margin-bottom: 36px;
  }

  .section-copy {
    margin-top: 16px;
    padding-left: 0;
    border-left: 0;
    font-size: 1.24rem;
    line-height: 1.48;
  }

  .image-lightbox-frame {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    overflow: auto;
  }

  .image-lightbox-frame img {
    max-height: 62vh;
    margin: 0 auto;
  }

  .image-lightbox-copy {
    min-height: 0;
    padding: 20px 4px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 250, 244, 0.18);
  }

  .image-lightbox-copy h3 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .image-lightbox-description {
    margin-top: 14px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .card-1,
  .card-2,
  .card-3,
  .card-4,
  .card-5,
  .card-6,
  .card-7 {
    grid-column: span 6;
    min-height: 520px;
  }

  .card-7 {
    grid-column: span 12;
  }

  .pictures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pictures-grid .art-card {
    grid-column: auto;
    min-height: 0;
  }

  .login-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-art {
    min-height: 260px;
  }

  .admin-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .single-image-workspace {
    grid-template-columns: 1fr;
  }

  .single-image-preview {
    position: static;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header {
    display: none;
  }

  .admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 26px;
  }

  .admin-header .main-nav {
    flex-wrap: wrap;
  }

  .admin-header-actions {
    width: 100%;
  }

  .admin-header-link {
    width: 100%;
  }

  .login-main {
    padding: 28px 0 54px;
  }

  .login-panel {
    border-radius: 30px;
  }

  .login-panel::before {
    inset: 14px;
    border-radius: 18px;
  }

  .login-art {
    min-height: 210px;
    padding: 28px;
  }

  .login-card {
    padding: 30px 22px;
  }

  .admin-hero {
    padding-top: 48px;
  }

  .admin-card-head {
    display: grid;
  }

  .admin-actions {
    display: grid;
  }

  .admin-actions .button {
    width: 100%;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .feature-frame {
    min-height: 520px;
    padding: 14px;
    border-radius: 30px;
  }

  .hero-video-frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .feature-frame::before {
    inset: 14px;
    border-radius: 18px;
  }

  .feature-frame img,
  .hero-video {
    min-height: 492px;
    border-radius: 18px;
  }

  .hero-video-frame .hero-video {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .feature-caption {
    left: 28px;
    right: 28px;
    bottom: 28px;
  }

  .hero-video-frame .feature-caption {
    display: none;
  }

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

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

  .pictures-grid .art-card {
    min-height: 0;
  }

  .card-1,
  .card-2,
  .card-3,
  .card-4,
  .card-5,
  .card-6,
  .card-7 {
    grid-column: auto;
    min-height: 440px;
  }

  .card-2,
  .card-3 {
    min-height: 360px;
  }

  .card-7 {
    min-height: 500px;
  }

  .pictures-grid .art-card {
    min-height: 0;
  }

  .coming-soon {
    grid-template-columns: 1fr;
  }

  .seal {
    width: 132px;
    height: 132px;
  }
}
