:root {
  --paper: #f4f1ea;
  --ink: #151512;
  --muted: #716e66;
  --line: #d8d0c2;
  --red: #d92b1f;
  --sand: #c9b897;
  --black: #050505;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; margin: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.site-header { align-items: center; background: var(--black); border-bottom: 1px solid rgba(255,255,255,.1); display: flex; gap: 28px; justify-content: space-between; left: 0; min-height: 70px; padding: 0 clamp(18px, 4vw, 48px); position: fixed; right: 0; top: 0; z-index: 40; }
.brand-mark { align-items: center; color: white; display: inline-flex; gap: 12px; }
.brand-mark span { align-items: center; border: 2px solid var(--red); border-radius: 999px; display: inline-flex; font-size: .78rem; height: 36px; justify-content: center; width: 36px; }
.brand-mark strong, nav a, .eyebrow, h1, h2, .collection-card strong, .collection-tabs span { font-weight: 850; text-transform: uppercase; }
.brand-mark strong { font-size: 1.75rem; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: white; font-size: .78rem; padding: 28px 14px; position: relative; }
nav a:not(:last-child)::after { color: var(--red); content: "/"; position: absolute; right: -3px; }

.hero { background: var(--black); display: grid; min-height: 100svh; overflow: hidden; padding-top: 70px; position: relative; }
.hero-image { filter: grayscale(1) contrast(1.08); height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.hero-shade { background: linear-gradient(180deg, rgba(5,5,5,.12), rgba(5,5,5,.84)), linear-gradient(90deg, rgba(5,5,5,.76), rgba(5,5,5,.12) 55%, rgba(5,5,5,.68)); inset: 0; position: absolute; z-index: 1; }
.hero-copy { align-self: center; max-width: 1040px; padding: 42px clamp(18px, 6vw, 78px) clamp(40px, 9vh, 86px); position: relative; z-index: 2; }
.hero-copy p { color: rgba(255,255,255,.86); font-size: 1.28rem; line-height: 1.45; max-width: 620px; }
.eyebrow { color: var(--red); font-size: .78rem; margin: 0 0 12px; }
h1, h2 { letter-spacing: 0; line-height: .92; margin: 0; }
h1 { color: white; font-size: clamp(4rem, 13vw, 12rem); line-height: .78; }
h2 { font-size: clamp(2.4rem, 7vw, 6rem); }
.hero-link, .button, .ghost-button { border: 1px solid currentColor; cursor: pointer; display: inline-flex; min-height: 42px; padding: 10px 16px; }
.hero-link { color: white; margin-top: 12px; }
.button { background: var(--ink); color: white; }
.button.light { background: white; color: var(--black); }
.ghost-button { background: transparent; color: var(--ink); }

.portfolio-section, .contact-section, .collection-page { padding: clamp(58px, 9vw, 118px) clamp(18px, 6vw, 78px); }
.collection-page { padding-top: 120px; }
.work-heading, .page-heading { border-bottom: 1px solid var(--line); margin-bottom: 26px; padding-bottom: 22px; }
.photo-grid { column-count: 3; column-gap: 18px; }
.photo-tile { break-inside: avoid; display: block; margin-bottom: 18px; }
.photo-tile img { width: 100%; }
.collection-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collection-card { aspect-ratio: 16 / 9; background: var(--black); color: white; display: grid; overflow: hidden; position: relative; }
.collection-card img { filter: grayscale(1) contrast(1.05) brightness(.76); height: 100%; object-fit: cover; width: 100%; }
.collection-card span { align-self: end; display: grid; gap: 6px; inset: auto 18px 18px; position: absolute; }
.collection-card strong { font-size: 1.4rem; }
.collection-card small, .status-text { color: var(--muted); font-size: .9rem; }
.intro-strip { background: var(--black); color: white; padding: clamp(60px, 10vw, 126px) clamp(18px, 6vw, 78px); }
.intro-strip h2 { color: white; max-width: 920px; }
.intro-kicker { color: var(--sand); font-size: .84rem; font-weight: 800; margin: 0; text-transform: uppercase; }
.contact-section { background: var(--black); color: white; display: grid; gap: clamp(28px, 6vw, 82px); grid-template-columns: minmax(220px, .55fr) minmax(280px, .45fr); }
.contact-section h2 { color: white; }
.contact-form, .admin-form { display: grid; gap: 16px; }
.contact-form label, .admin-form label, .photo-editor label { color: var(--muted); display: grid; font-size: .82rem; gap: 7px; }
.contact-form input, .contact-form textarea, .admin-form input, .admin-form textarea, .photo-editor input, .photo-editor textarea { background: var(--paper); border: 1px solid var(--line); color: var(--ink); min-height: 44px; padding: 10px 12px; }
.contact-form-actions { align-items: center; display: flex; gap: 12px; }
.contact-form-actions span { color: rgba(255,255,255,.65); }
.admin-shell { margin: 0 auto; max-width: 1180px; padding: 36px clamp(18px, 4vw, 48px) 72px; }
.admin-top { align-items: end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 24px; }
.admin-panel, .notice { background: #fff; border: 1px solid var(--line); display: grid; gap: 24px; margin-top: 28px; padding: clamp(18px, 3vw, 30px); }
.notice { margin: 80px auto; max-width: 680px; }
.single-form, .compact-form { max-width: 560px; }
.admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form label:first-child, .admin-form label:nth-child(4) { grid-column: 1 / -1; }
.collection-tabs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.collection-tabs a { background: var(--paper); border: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 52px; padding: 14px 16px; }
.admin-collection { border-top: 1px solid var(--line); display: grid; gap: 16px; padding-top: 22px; }
.admin-list { display: grid; gap: 14px; }
.photo-editor { border-top: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: 150px 1fr; padding-top: 18px; }
.photo-editor > img { aspect-ratio: 1; height: 150px; object-fit: cover; width: 150px; }
.photo-editor form { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.photo-editor .wide { grid-column: span 2; }
.published { align-items: center; display: flex; gap: 10px; }
.published input { min-height: auto; }
.photo-editor footer { align-items: center; display: flex; gap: 10px; grid-column: 1 / -1; }
.home-picker { border-top: 1px solid var(--line); display: grid; gap: 14px; padding-top: 20px; }
.home-picker-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.home-picker-grid form, .home-picker-grid button { display: grid; }
.home-picker-grid button { background: transparent; border: 0; color: var(--ink); cursor: pointer; gap: 8px; padding: 0; text-align: left; }
.home-picker-grid img { aspect-ratio: 4 / 3; border: 1px solid var(--line); object-fit: cover; width: 100%; }
.message-list { display: grid; gap: 14px; }
.message-card { border-top: 1px solid var(--line); padding-top: 14px; }
.message-card header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

@media (max-width: 850px) {
  .site-header { padding: 0 18px; }
  .brand-mark strong { display: none; }
  nav a { font-size: .64rem; padding: 25px 5px; }
  .photo-grid { column-count: 1; }
  .collection-grid, .contact-section, .admin-form, .photo-editor, .photo-editor form { grid-template-columns: 1fr; }
  .photo-editor > img { height: auto; width: 100%; }
  .photo-editor .wide { grid-column: 1; }
}
