:root {
  --paper: #f2ebe1;
  --paper-2: #e8dfd1;
  --ink: #1c1814;
  --ink-soft: #3a342e;
  --muted: #746c62;
  --line: rgba(28, 24, 20, 0.12);
  --copper: #b85c2e;
  --teal: #315e59;
  --gold: #c9a36a;
  --rose: #b56b6b;
  --danger: #8c2f2f;
  --ok: #2f6a4a;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --wide: 1280px;
  --pad: clamp(1.15rem, 4vw, 2.4rem);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(42rem 28rem at 8% -10%, rgba(49, 94, 89, 0.16), transparent 60%),
    radial-gradient(36rem 24rem at 100% 8%, rgba(184, 92, 46, 0.14), transparent 55%),
    radial-gradient(28rem 20rem at 70% 110%, rgba(201, 163, 106, 0.18), transparent 50%);
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 20;
}

.skip:focus {
  left: var(--pad);
  top: 0.6rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--wide), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad) 0.9rem;
  width: min(var(--wide), 100%);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  background: linear-gradient(135deg, var(--teal), var(--copper));
  transform: rotate(12deg);
  flex-shrink: 0;
}

.brand-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--copper);
}

.site-nav .cta {
  border: 1px solid var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.site-nav .cta:hover {
  background: var(--ink);
  color: var(--paper);
}

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  padding: clamp(1.5rem, 5vw, 4rem) 0 3rem;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  max-width: 11ch;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 1.2rem 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--copper);
  border-color: var(--copper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-norma {
  object-position: 38% 28%;
}

.hero-caption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(242, 235, 225, 0.88);
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.section {
  padding: 3.2rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.quiet-link {
  font-size: 0.92rem;
  color: var(--copper);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
}

.mosaic article:first-child {
  grid-row: span 2;
}

.piece {
  display: block;
  text-decoration: none;
  color: inherit;
}

.piece-media {
  overflow: hidden;
  background: var(--paper-2);
}

.piece-media img,
.piece-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.piece:hover img,
.piece:hover video {
  transform: scale(1.04);
}

.mosaic article:first-child .piece-media {
  height: min(78vh, 720px);
}

.mosaic article:not(:first-child) .piece-media {
  height: min(38vh, 350px);
}

.piece-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.1rem 0.2rem;
  font-size: 0.92rem;
}

.piece-meta small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.band {
  background: var(--ink);
  color: var(--paper);
  margin-top: 1rem;
}

.band .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 3.4rem 0;
}

.band h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 12ch;
}

.band p {
  color: rgba(242, 235, 225, 0.82);
  max-width: 42ch;
}

.page-hero {
  padding: 2.2rem 0 1.4rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 1.6rem;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
}

.filter[aria-pressed="true"],
.filter:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem 0.9rem;
}

.gallery article {
  grid-column: span 4;
}

.gallery article:nth-child(5n + 1) {
  grid-column: span 7;
}

.gallery article:nth-child(5n + 2) {
  grid-column: span 5;
}

.gallery article:nth-child(5n + 3) {
  grid-column: span 5;
}

.gallery article:nth-child(5n + 4) {
  grid-column: span 7;
}

.gallery .piece-media {
  height: 320px;
}

.gallery article:nth-child(5n + 1) .piece-media,
.gallery article:nth-child(5n + 4) .piece-media {
  height: 420px;
}

.empty {
  color: var(--muted);
  padding: 2rem 0 4rem;
}

.work-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding-bottom: 3.5rem;
}

.work-stage img,
.work-stage video {
  width: 100%;
  margin-bottom: 0.7rem;
}

.work-stage iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  margin-bottom: 0.7rem;
}

.work-copy .kicker {
  margin-bottom: 0.5rem;
}

.work-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.prose {
  color: var(--ink-soft);
  max-width: 58ch;
}

.prose a {
  color: var(--copper);
}

.journal {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  padding-bottom: 4rem;
}

.journal article {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.journal time {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.journal h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.journal-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.journal-media img,
.journal-media video {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.form {
  max-width: 38rem;
  display: grid;
  gap: 0.95rem;
  padding-bottom: 3rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

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

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  width: 100%;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.flash {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.flash.ok {
  border-color: var(--ok);
}

.flash.err {
  border-color: var(--danger);
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem var(--pad) 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  width: min(var(--wide), 100%);
  margin-inline: auto;
}

.site-footer a {
  color: var(--ink-soft);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.admin-side {
  background: var(--ink);
  color: var(--paper);
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-side a,
.admin-side button.linkish {
  color: rgba(242, 235, 225, 0.78);
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
}

.admin-side a[aria-current="true"],
.admin-side a:hover,
.admin-side button.linkish:hover {
  color: var(--gold);
}

.admin-main {
  padding: 1.4rem 1.5rem 3rem;
}

.admin-main h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.admin-card {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.3rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0;
}

.media-list figure {
  margin: 0;
  width: 110px;
  position: relative;
}

.media-list img,
.media-list video {
  width: 110px;
  height: 80px;
  object-fit: cover;
}

.media-list button {
  position: absolute;
  top: 2px;
  right: 2px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  width: 1.4rem;
  height: 1.4rem;
  cursor: pointer;
}

.editor-toolbar {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.editor-toolbar button {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0.2rem 0.5rem;
}

.editor {
  min-height: 8rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  padding: 0.7rem;
}

.login-box {
  max-width: 24rem;
  margin: 12vh auto;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check input {
  width: auto;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 4.2rem;
    right: var(--pad);
    left: var(--pad);
    background: var(--paper);
    border: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    z-index: 5;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .hero,
  .band .wrap,
  .work-layout,
  .journal article,
  .admin-shell {
    grid-template-columns: 1fr;
  }

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

  .mosaic article:first-child {
    grid-row: auto;
  }

  .mosaic article:first-child .piece-media,
  .mosaic article:not(:first-child) .piece-media,
  .gallery .piece-media,
  .gallery article:nth-child(5n + 1) .piece-media,
  .gallery article:nth-child(5n + 4) .piece-media {
    height: 260px;
  }

  .gallery article,
  .gallery article:nth-child(5n + 1),
  .gallery article:nth-child(5n + 2),
  .gallery article:nth-child(5n + 3),
  .gallery article:nth-child(5n + 4) {
    grid-column: span 12;
  }

  .hero-figure img {
    height: 52vh;
  }

  .admin-side {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
  }
}
