:root {
  color-scheme: light;
  --ink: #1d1c19;
  --muted: #6f6a60;
  --paper: #fff;
  --panel: #fff;
  --line: #dfd6ca;
  --accent: #b54c35;
  --accent-dark: #833321;
  --forest: #26382f;
  --blue: #24445b;
  --shadow: 0 18px 55px rgba(30, 25, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Quicksand", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.viewer-open {
  overflow: hidden;
}

body.gallery-open {
  overflow: hidden;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: #fff;
  background: linear-gradient(rgba(13, 14, 12, 0.72), rgba(13, 14, 12, 0));
}

.brand,
.site-nav a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.86;
}

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

.admin-page .site-header,
.collections-page .site-header,
.about-page .site-header {
  position: sticky;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #151613;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 220ms ease;
}

.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 13, 11, 0.78), rgba(12, 13, 11, 0.2) 62%, rgba(12, 13, 11, 0.48)),
    linear-gradient(0deg, rgba(12, 13, 11, 0.72), rgba(12, 13, 11, 0.04) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 46px;
  color: #fff;
  transform: translateX(-18vw);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  max-width: 560px;
  font-family: inherit;
  font-size: clamp(0.9rem, 1.25vw, 1.15rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-byline {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.9rem, 1.25vw, 1.15rem);
  line-height: 1.25;
  font-weight: 700;
}

.hero p:not(.eyebrow):not(.hero-byline) {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.toolbar-band {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}

.toolbar h2,
.collections h1,
.collections h2,
.admin-intro h1,
.admin-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.section-kicker {
  color: var(--accent-dark);
}

.portfolio-section {
  padding: 24px 0 72px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.photo-grid-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.photo-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: #fff;
  background: #252520;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.photo-card img {
  width: 100%;
  height: auto;
}

.collections-band {
  background: #fff;
  color: var(--ink);
}

.collections-page-band {
  min-height: calc(100vh - 76px);
  padding-top: 0;
}

.collections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding: 34px 0 17px;
}

.collection-library-grid {
  columns: 3 340px;
  column-gap: 28px;
  padding: 0 0 76px;
}

.collection-library {
  display: inline-block;
  width: 100%;
  margin: 0 0 28px;
  break-inside: avoid;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.collection-library h3 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0;
}

.collection-library p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.collections-empty-state {
  display: inline-block;
  width: 100%;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  line-height: 1.6;
  background: #fff;
}

.collection-featured {
  min-width: 0;
}

.collection-featured-photo {
  position: relative;
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.collection-featured-photo img {
  width: 100%;
  height: auto;
}

.empty-collection {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

.collection-gallery {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  overflow: auto;
  padding: 0 clamp(16px, 4vw, 56px) 56px;
  color: var(--ink);
  background: #fff;
}

.about-section {
  padding: 56px 0 72px;
  background: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.86fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 94px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.about-portrait img {
  width: 100%;
  height: auto;
}

.about-copy {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 34px);
  background: #fff;
  box-shadow: 0 14px 40px rgba(30, 25, 18, 0.08);
}

.about-copy h1,
.contact-layout h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.contact-layout h2 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.03;
}

.about-copy p,
.contact-layout p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.about-copy p:first-of-type {
  color: var(--accent-dark);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.35;
  font-weight: 800;
}

.about-copy .button {
  margin-top: 12px;
}

.contact-section {
  border-top: 1px solid var(--line);
  padding: 58px 0 80px;
  background: #fff;
}

.contact-section[hidden] {
  display: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
  box-shadow: 0 14px 40px rgba(30, 25, 18, 0.08);
}

.contact-layout > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
}

.collection-gallery.is-open {
  display: block;
}

.collection-gallery-topbar {
  position: sticky;
  z-index: 1;
  top: 0;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.collection-gallery-menu,
.collection-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.collection-gallery-menu {
  padding: 16px 0 10px;
  color: var(--ink);
}

.collection-gallery-header {
  align-items: end;
  padding: 14px 0 18px;
}

.collection-gallery-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0;
}

.collection-gallery-description {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.collection-gallery-hero {
  margin: 0 0 24px;
}

.collection-gallery-hero img {
  width: 100%;
  max-height: min(68vh, 760px);
  object-fit: contain;
}

.collection-gallery-grid {
  columns: 4 240px;
  column-gap: 16px;
}

.gallery-photo-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.gallery-photo-card img {
  width: 100%;
  height: auto;
}

.collection-copy p:not(.section-kicker) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.collections .section-kicker {
  color: var(--accent-dark);
}

.stats-panel {
  display: grid;
  gap: 14px;
}

.stats-panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
}

.stats-panel strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.3rem;
  font-weight: 500;
}

.stats-panel span {
  color: var(--muted);
  font-weight: 750;
}

.admin-section {
  padding: 78px 0;
  background: #fff;
}

.admin-page .admin-section {
  min-height: calc(100vh - 76px);
}

.admin-layout {
  display: block;
}

.admin-intro {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
}

.admin-intro p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.admin-panel-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.password-form {
  grid-column: auto;
}

.image-manager {
  grid-column: 1 / -1;
}

.password-form,
.admin-stats,
.admin-form,
.library-form,
.hero-form,
.image-manager {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-section.is-locked .admin-form {
  display: none;
}

.admin-section.is-locked .admin-stats {
  display: none;
}

.admin-section.is-locked .library-form {
  display: none;
}

.admin-section.is-locked .hero-form {
  display: none;
}

.admin-section.is-locked .image-manager {
  display: none;
}

.admin-section:not(.is-locked) .password-form {
  display: none;
}

.upload-drop {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px dashed #b8aa99;
  border-radius: 8px;
  padding: 26px;
  text-align: center;
  background: #fff;
  cursor: pointer;
}

.upload-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-size: 1.8rem;
  line-height: 1;
}

.upload-title,
label > span {
  font-weight: 850;
}

.upload-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(181, 76, 53, 0.34);
  outline-offset: 2px;
}

.preview-pane {
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.preview-pane img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 750;
}

.manager-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.manager-heading h2,
.manager-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0;
}

.manager-filter {
  min-width: 190px;
}

.manager-count {
  margin: -6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.manager-list {
  display: grid;
  gap: 12px;
}

.is-hidden {
  display: none !important;
}

.library-manager-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: #fff;
}

.library-manager-open {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.library-manager-item:hover {
  border-color: #b8c7d0;
}

.library-manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.library-manager-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.library-manager-actions button:disabled {
  opacity: 0.42;
  cursor: default;
}

.publish-library:not(:disabled) {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.suspend-library:not(:disabled) {
  border-color: #c7b58d;
  background: #fff8e7;
}

.delete-library:not(:disabled) {
  color: var(--accent-dark);
  background: #fff7f4;
}

.library-manager-thumb {
  display: grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  color: var(--muted);
  background: #f6f6f6;
  font-size: 0.82rem;
  font-weight: 800;
}

.library-manager-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-manager-open strong,
.library-manager-open span {
  display: block;
}

.library-manager-open span span,
.library-manager-open > span:last-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.manager-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.manager-item img {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.order-actions {
  display: flex;
  gap: 6px;
}

.order-photo,
.hero-photo,
.feature-photo,
.remove-photo {
  min-height: 38px;
  border: 1px solid #d8b7ab;
  border-radius: 6px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 850;
}

.order-photo {
  color: var(--blue);
  border-color: #b8c7d0;
  background: #f2f8fb;
}

.order-photo:disabled {
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
  cursor: default;
}

.hero-photo {
  color: var(--blue);
  border-color: #b8c7d0;
  background: #f2f8fb;
}

.hero-photo:disabled {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  cursor: default;
}

.feature-photo {
  color: var(--forest);
  border-color: #b7c9bd;
  background: #f3fbf5;
}

.feature-photo:disabled {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  cursor: default;
}

.remove-photo {
  color: var(--accent-dark);
  background: #fff7f4;
}

.empty-manager {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fff;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  grid-template-rows: 1fr auto;
  place-items: stretch;
  padding: 28px clamp(16px, 4vw, 72px);
  background: #0e0d0b;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-frame {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 28px 72px 18px;
}

.lightbox img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 1.15rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 1.45rem;
  transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-prev {
  left: clamp(16px, 3vw, 42px);
}

.lightbox-next {
  right: clamp(16px, 3vw, 42px);
}

.lightbox-caption {
  width: min(980px, 100%);
  justify-self: center;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 0 0 6px;
  color: #fff;
}

.lightbox-caption strong,
.lightbox-caption span {
  display: block;
}

.lightbox-caption strong {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.lightbox-caption span {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .hero-content {
    transform: none;
  }

  .toolbar,
  .collections,
  .admin-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .about-portrait {
    position: static;
  }

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

  .toolbar {
    display: grid;
  }

  .admin-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .admin-page .site-header,
  .collections-page .site-header,
  .about-page .site-header {
    position: sticky;
  }

  .site-nav {
    display: grid;
    justify-items: end;
    gap: 8px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding-bottom: 54px;
  }

  .field-grid,
  .lightbox-caption {
    grid-template-columns: 1fr;
    display: grid;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-frame {
    padding: 58px 0 18px;
  }

  .lightbox img {
    max-height: calc(100vh - 190px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 82px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .manager-heading,
  .library-manager-item,
  .manager-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .library-manager-actions {
    justify-content: start;
  }

  .manager-heading {
    display: grid;
  }

  .collection-gallery-menu,
  .collection-gallery-header {
    display: grid;
  }

  .manager-item img {
    width: 100%;
    max-height: 220px;
  }

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

}
