:root {
  --ink: #201812;
  --muted: #695b4e;
  --paper: #fff7df;
  --cream: #f5e7c6;
  --green: #1d7a55;
  --green-dark: #0d4a36;
  --pink: #ef4d72;
  --yellow: #f6c84f;
  --blue: #2472b7;
  --red: #d9412f;
  --border: #2c2118;
  --void: #030303;
  --gold: #b9964f;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(32, 24, 18, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 28%, rgba(239, 77, 114, 0.16), transparent 26rem),
    radial-gradient(circle at 86% 38%, rgba(36, 114, 183, 0.13), transparent 24rem),
    var(--paper);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 16px clamp(16px, 4vw, 44px);
  color: #fff;
  mix-blend-mode: difference;
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand {
  flex: 0 0 auto;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: clamp(70px, 6vw, 88px);
  height: auto;
  filter: invert(1);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  font-family: "JetBrains Mono", monospace;
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.shell {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.hero {
  min-height: 112vh;
  overflow: clip;
  color: white;
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.1) 54%, rgba(0, 0, 0, 0.94)),
    radial-gradient(circle at 70% 28%, #3f3f3f, #050505 42rem);
}

.hero-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  width: min(100% - 32px, 1220px);
  margin-inline: auto;
  padding-block: 120px 76px;
  isolation: isolate;
}

.hero-stage::after {
  display: none;
}

.hero-stage .vision-portrait {
  position: absolute;
  z-index: 0;
  top: 0;
  right: clamp(-180px, -8vw, -32px);
  margin: 0;
  width: min(82vw, 1060px);
  height: calc(100vh + 42px);
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  opacity: 1;
}

.vision-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.72) 32%, rgba(3, 3, 3, 0) 54%, rgba(3, 3, 3, 0.18) 100%),
    linear-gradient(0deg, rgba(3, 3, 3, 0.34), transparent 42%);
}

.vision-portrait img,
.warm-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-portrait img {
  object-position: 50% 0%;
  filter: grayscale(1) brightness(1.18) contrast(1.08);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  order: -1;
}

.pretentious-kicker,
.eyebrow,
.product-label {
  margin: 0 0 var(--space-3);
  font: 700 13px/1.25 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pretentious-kicker {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: var(--space-5);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.95;
  max-width: 9ch;
}

h2 {
  margin-bottom: var(--space-5);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1;
}

h3 {
  margin-bottom: var(--space-4);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.hero-copy p:not(.pretentious-kicker) {
  max-width: 43ch;
  color: rgba(255, 255, 255, 0.72);
}

.gold-line {
  display: none;
}

.gold-line-one {
  width: 1px;
  height: 62vh;
  left: 48%;
  top: 17%;
}

.gold-line-two {
  width: 34vw;
  height: 1px;
  right: 8%;
  bottom: 22%;
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.6);
  font: 700 12px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.reveal-band {
  position: relative;
  margin-top: 0;
  padding: clamp(84px, 12vw, 150px) 0 var(--space-9);
  background: transparent;
  border-bottom: 4px solid var(--border);
}

.reveal-band > .shell {
  position: relative;
  z-index: 1;
}

.crack {
  position: absolute;
  top: -122px;
  bottom: 0;
  left: 0;
  right: 0;
  background:
    linear-gradient(135deg, rgba(246, 200, 79, 0.95), rgba(239, 77, 114, 0.9)),
    var(--yellow);
  -webkit-mask:
    radial-gradient(ellipse 92% 76% at 50% 100%, #000 99%, transparent 100%) 0 0 / 100% 230px no-repeat,
    linear-gradient(#000 0 0) 0 122px / 100% calc(100% - 122px) no-repeat;
  mask:
    radial-gradient(ellipse 92% 76% at 50% 100%, #000 99%, transparent 100%) 0 0 / 100% 230px no-repeat,
    linear-gradient(#000 0 0) 0 122px / 100% calc(100% - 122px) no-repeat;
}

.intro-grid,
.about-grid,
.split-section,
.manifesto-grid,
.proof-grid,
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.about-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

@media (min-width: 861px) {
  .about-grid .warm-photo {
    margin-left: -150px;
  }
}

.real-copy p,
.stack p {
  max-width: 62ch;
  font-size: 21px;
}

.promise-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.promise-row > div {
  min-height: 168px;
  padding: var(--space-5);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 247, 223, 0.92);
  box-shadow: 5px 5px 0 var(--border);
}

.promise-row span,
.process-rail span {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--red);
  font: 700 13px/1 "JetBrains Mono", monospace;
}

.promise-row strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 28px;
  line-height: 1.05;
}

.promise-row p {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--border);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--border);
}

.primary {
  background: var(--green);
  color: white;
}

.secondary {
  background: #fff;
}

.big {
  min-height: 60px;
  font-size: 22px;
}

.section {
  padding: var(--space-9) 0;
}

.about {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(29, 122, 85, 0.13) 48%),
    var(--paper);
}

.about-grid {
  position: relative;
  z-index: 1;
}

.about-otter-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.about-otter-pattern i {
  position: absolute;
  left: var(--otter-x);
  top: var(--otter-y);
  width: var(--otter-size);
  aspect-ratio: 1;
  opacity: var(--otter-opacity);
  background: url("./assets/img/utter_only.svg") center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(var(--otter-rotation));
}

@media (min-width: 861px) {
  .about-otter-pattern {
    left: 48%;
  }
}

.warm-photo,
.product-media {
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.warm-photo {
  position: relative;
  margin: 0;
  min-height: 520px;
  background: #8a512f;
  overflow: hidden;
}

.stack {
  display: grid;
  gap: var(--space-3);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.proof-strip > span {
  padding: 9px 12px;
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--border);
}

.products {
  background: #faf1d0;
}

.section-head {
  max-width: 780px;
  margin-bottom: var(--space-7);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.product-card {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: #fffdf5;
  overflow: hidden;
  box-shadow: 7px 7px 0 var(--border);
}

.product-media {
  position: relative;
  overflow: hidden;
  border: 0;
  border-bottom: 3px solid var(--border);
  border-radius: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: none;
}

.product-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(135deg, rgba(36, 114, 183, 0.14), rgba(239, 77, 114, 0.08));
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jamii-media {
  background: linear-gradient(135deg, rgba(29, 122, 85, 0.26), rgba(246, 200, 79, 0.2)), var(--green);
}

.pages-media {
  background: linear-gradient(135deg, rgba(36, 114, 183, 0.18), rgba(239, 77, 114, 0.14)), var(--blue);
}

.product-body {
  padding: var(--space-5);
}

.product-label {
  color: var(--red);
}

.product-deep {
  position: relative;
  overflow: hidden;
}

.jamii-deep {
  background:
    radial-gradient(circle at 8% 20%, rgba(246, 200, 79, 0.42), transparent 18rem),
    linear-gradient(90deg, rgba(29, 122, 85, 0.14), transparent 44%),
    var(--paper);
}

.pages-deep {
  background:
    radial-gradient(circle at 92% 28%, rgba(36, 114, 183, 0.16), transparent 20rem),
    #fffdf5;
}

.split-section.reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-5);
}

.feature-grid > div {
  padding: var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 3px 3px 0 var(--border);
}

.feature-grid h3 {
  margin-bottom: var(--space-2);
  font-size: 21px;
  line-height: 1.15;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.product-visual,
.product-photo {
  min-height: 560px;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--cream);
}

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.product-photo {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--cream);
}

.product-browser-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 8px 14px;
  border-bottom: 3px solid var(--border);
  background: #fffdf5;
}

.product-browser-dots {
  display: flex;
  gap: 7px;
}

.product-browser-dots i {
  width: 11px;
  height: 11px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--red);
}

.product-browser-dots i:nth-child(2) {
  background: var(--yellow);
}

.product-browser-dots i:nth-child(3) {
  background: var(--green);
}

.product-browser-address {
  grid-column: 2;
  width: min(100%, 360px);
  justify-self: center;
  overflow: hidden;
  padding: 7px 12px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  font: 700 11px/1 "JetBrains Mono", monospace;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.product-photo figcaption {
  position: static;
  padding: 14px 16px;
  border-top: 3px solid var(--border);
  background: var(--cream);
  font-weight: 900;
}

.showcases {
  background:
    linear-gradient(180deg, #fffdf5, #f5e7c6);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-4);
}

.showcase-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: #fffdf5;
  box-shadow: 5px 5px 0 var(--border);
}

.showcase-card h3 {
  margin-bottom: var(--space-2);
  font-size: 24px;
}

.showcase-card p {
  margin-bottom: 0;
  font-size: 16px;
}

.case-link,
.case-link-editor {
  margin-top: auto;
}

.case-link {
  align-self: flex-start;
}

.case-link-editor {
  display: grid;
  gap: 8px;
  padding-top: var(--space-3);
  border-top: 2px dashed var(--border);
}

.case-link-editor label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.case-link-field {
  display: block;
  min-height: 34px;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow-wrap: anywhere;
}

.case-link-editor small {
  color: var(--muted);
  font-size: 12px;
}

.showcase-thumb {
  position: relative;
  height: 288px;
  margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-3);
  overflow: hidden;
  border-bottom: 3px solid var(--border);
  background: var(--green);
}

.showcase-image {
  background: #eef3e8;
}

.showcase-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.thumb-green {
  background: linear-gradient(135deg, rgba(13, 74, 54, 0.72), rgba(246, 200, 79, 0.38)), var(--green);
}

.thumb-yellow {
  background:
    radial-gradient(circle at 28% 34%, var(--pink) 0 38px, transparent 40px),
    radial-gradient(circle at 76% 58%, var(--blue) 0 44px, transparent 46px),
    var(--yellow);
}

.thumb-blue {
  background: linear-gradient(135deg, rgba(36, 114, 183, 0.72), rgba(255, 247, 223, 0.22)), var(--blue);
}

.thumb-pink {
  background:
    linear-gradient(90deg, transparent 15px, rgba(255, 255, 255, 0.72) 16px 17px, transparent 18px),
    linear-gradient(180deg, var(--pink) 0 34%, #fffdf5 34% 100%);
  background-size: 42px 100%, 100% 100%;
}

.process {
  background:
    repeating-linear-gradient(90deg, rgba(32, 24, 18, 0.055) 0 1px, transparent 1px 78px),
    var(--paper);
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-rail li {
  position: relative;
  min-height: 260px;
  padding: var(--space-4);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: #fffdf5;
  box-shadow: 4px 4px 0 var(--border);
}

.process-rail li::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -18px;
  z-index: 1;
  width: 30px;
  height: 3px;
  background: var(--border);
}

.process-rail li:last-child::after {
  display: none;
}

.process-rail h3 {
  margin-bottom: var(--space-3);
  font-size: 24px;
}

.process-rail p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.manifesto {
  color: white;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent),
    var(--green-dark);
}

.manifesto-list {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  margin: 0;
  list-style: none;
}

.manifesto-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.manifesto-list span {
  color: var(--yellow);
  font: 700 14px/1.5 "JetBrains Mono", monospace;
}

.proof {
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 77, 114, 0.14), transparent 18rem),
    #fffdf5;
}

.proof blockquote {
  margin: 0;
  padding: var(--space-6);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--border);
}

.proof blockquote p {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(34px, 4.8vw, 66px);
  font-weight: 900;
  line-height: 1.02;
}

.nope-list {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-4) 0 0;
  list-style: none;
}

.nope-list li {
  padding: var(--space-3) var(--space-4);
  border-left: 8px solid var(--pink);
  background: var(--paper);
  font-weight: 700;
}

.contact {
  padding: var(--space-8) 0;
  background:
    repeating-linear-gradient(-8deg, rgba(32, 24, 18, 0.08) 0 10px, transparent 10px 22px),
    var(--pink);
}

.contact h2 {
  margin-bottom: var(--space-3);
}

.contact p {
  max-width: 44ch;
  margin-bottom: 0;
  font-size: 21px;
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-4) 0;
  border-top: 3px solid var(--border);
  background: var(--ink);
  color: #fffdf5;
}

.site-footer::before {
  position: absolute;
  inset: -20px;
  content: "";
  pointer-events: none;
  background: url("./assets/foogler-otter.svg") center / 140px auto repeat;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-weight: 900;
}

.footer-logo {
  display: block;
  width: 68px;
  height: auto;
  filter: invert(1);
}

@keyframes crackPulse {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 0.95;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    mix-blend-mode: normal;
  }

  .nav {
    display: none;
  }

  .brand-logo {
    width: 104px;
  }

  .footer-logo {
    width: 96px;
  }

  .hero-stage,
  .intro-grid,
  .about-grid,
  .split-section,
  .split-section.reverse,
  .manifesto-grid,
  .proof-grid,
  .contact-inner,
  .product-grid,
  .promise-row,
  .feature-grid,
  .showcase-grid,
  .process-rail {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    padding-top: 96px;
  }

  .hero-copy {
    order: initial;
  }

  h1 {
    max-width: 10ch;
  }

  .vision-portrait {
    min-height: 430px;
  }

  .gold-line {
    display: none;
  }

  .product-card {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .product-visual,
  .product-visual img,
  .product-photo,
  .product-photo img {
    min-height: 420px;
  }

  .about-grid .warm-photo {
    min-height: 0;
  }

  .about-grid .warm-photo img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .process-rail li {
    min-height: auto;
  }

  .process-rail li::after {
    top: auto;
    right: auto;
    left: 34px;
    bottom: -18px;
    width: 3px;
    height: 30px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: var(--space-8) 0;
  }

  .real-copy p,
  .stack p {
    font-size: 18px;
  }

  .promise-row > div,
  .showcase-card,
  .process-rail li {
    padding: var(--space-4);
  }

  .manifesto-list li {
    font-size: 20px;
  }

  .product-visual,
  .product-visual img,
  .product-photo,
  .product-photo img {
    min-height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

[x-cloak] {
  display: none !important;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.admin-login-link {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 600 11px/1 Archivo, system-ui, sans-serif;
  letter-spacing: 0.04em;
  opacity: 0.5;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: opacity 160ms ease, text-decoration-color 160ms ease;
}

.admin-login-link:hover {
  opacity: 0.8;
  text-decoration-color: currentColor;
}

.admin-login-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid currentColor;
  outline-offset: 4px;
  opacity: 1;
}

.editor-button,
.editor-add,
.editor-mini {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fffdf5;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--border);
  cursor: pointer;
  font: 900 13px/1 Archivo, system-ui, sans-serif;
}

.editor-button.primary,
.editor-add {
  background: var(--green);
  color: #fff;
}

.editor-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.editor-add {
  margin-top: var(--space-4);
}

.editor-mini {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}

.editor-mini.danger {
  background: var(--pink);
  color: #fff;
}

.editable {
  border-radius: 4px;
  outline: 2px dashed rgba(36, 114, 183, 0.72);
  outline-offset: 3px;
  background: rgba(255, 255, 255, 0.42);
  cursor: text;
}

.editable:focus {
  outline: 3px solid var(--blue);
  background: #fff;
}

.editable-repeater {
  position: relative;
}

.repeater-controls {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
}

.promise-row .repeater-controls {
  top: -16px;
  right: -12px;
}

.proof-strip .repeater-controls,
.action-wrapper .repeater-controls {
  top: -14px;
  right: -10px;
}

.editable-image-frame {
  position: relative;
}

.image-edit-button {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--border);
  cursor: pointer;
  font: 900 13px/1 Archivo, system-ui, sans-serif;
}

.product-edit {
  top: auto;
  bottom: 12px;
}

.visually-hidden-image {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.login-modal,
.media-picker-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 3, 3, 0.62);
}

.login-modal-panel,
.confirm-modal-panel,
.media-picker-panel {
  width: min(100%, 680px);
  max-height: min(92vh, 840px);
  overflow: auto;
  padding: var(--space-5);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--border);
}

.media-picker-panel {
  width: min(100%, 980px);
}

.login-form,
.media-picker-actions,
.media-picker-head,
.login-actions,
.confirm-modal-actions {
  display: flex;
  gap: var(--space-3);
}

.login-form {
  flex-direction: column;
  margin-top: var(--space-4);
}

.media-picker-head,
.confirm-modal-actions {
  align-items: center;
  justify-content: space-between;
}

.form-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fffdf5;
  color: var(--ink);
  font: inherit;
}

.control-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.media-picker-item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fffdf5;
  cursor: pointer;
  text-align: left;
  font: 700 12px/1.25 Archivo, system-ui, sans-serif;
}

.media-picker-item.is-current {
  background: var(--yellow);
}

.media-picker-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
}

.media-picker-status,
.confirm-modal-copy {
  margin-top: var(--space-3);
}

.toast {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
}

.toast-message {
  padding: 13px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fffdf5;
  box-shadow: 4px 4px 0 var(--border);
  font-weight: 900;
}

.toast-message.is-error {
  background: #ffd8df;
}

.toast-message.is-ok {
  background: #dff4dc;
}

.action-wrapper {
  display: inline-flex;
}

@media (max-width: 860px) {
  .admin-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .login-actions,
  .confirm-modal-actions,
  .media-picker-actions,
  .media-picker-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-controls .editor-button {
    flex: 1 1 auto;
  }
}
