/* DIGICAM — palette taken from the logo */
:root {
  --yellow: #FFE26A;       /* logo background */
  --gold: #FFCC00;         /* letter outline */
  --red: #DC0000;          /* wordmark */
  --teal: #0F8F86;         /* tagline outline */
  --ink: #1C1608;
  --paper: #FFF7DA;
  --line: rgba(28, 22, 8, .18);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
img, svg { display: block; max-width: 100%; }

/* ---------- Top bar (split nav + centered wordmark, like the reference) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: var(--yellow);
  border-bottom: 1px solid var(--line);
}
.topbar__side { display: flex; gap: 22px; align-items: center; }
.topbar__side--end { justify-content: flex-end; }
.topbar__side a, .bag {
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: .02em;
}
.topbar__side a:hover { text-decoration: underline; text-underline-offset: 4px; }
.topbar__mark {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--red);
  -webkit-text-stroke: 1.5px var(--gold);
  paint-order: stroke fill;
}
.bag {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  color: var(--ink);
}
.bag__count {
  display: inline-block; min-width: 1.4em;
  background: var(--red); color: #fff;
  border-radius: 99px; text-align: center;
}
.bag.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }

/* ---------- Hero ---------- */
.hero {
  background: var(--yellow);
  min-height: calc(100svh - 56px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 64px 16px 48px;
  gap: 40px;
}
.hero__logo { display: grid; justify-items: end; }
.logo-word {
  font-weight: 900;
  font-size: clamp(64px, 17vw, 240px);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--red);
  -webkit-text-stroke: clamp(4px, 1.1vw, 14px) var(--gold);
  paint-order: stroke fill;
}
.logo-tag {
  font-style: italic;
  font-weight: 800;
  font-size: clamp(18px, 3.6vw, 48px);
  letter-spacing: -.03em;
  color: #fff;
  -webkit-text-stroke: clamp(1px, .2vw, 2.5px) var(--teal);
  paint-order: stroke fill;
  margin-top: .2em;
}
.hero__menu {
  display: grid;
  gap: 6px;
}
.hero__menu a {
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.hero__menu a:hover { color: var(--red); }
.hero__note {
  max-width: 44ch;
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
}

/* ---------- Shared section heads ---------- */
section h2 {
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -.02em;
}

/* ---------- Shop ---------- */
.shop { padding: 88px clamp(16px, 4vw, 40px); }
.section-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: end;
  margin-bottom: 36px;
}
.filters { display: flex; gap: 8px; }
.filters button {
  font-family: var(--mono); font-size: 13px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  padding: 6px 14px; border-radius: 99px; cursor: pointer;
}
.filters button.is-on { background: var(--ink); color: var(--yellow); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 24px;
}
.card { display: grid; gap: 12px; }
.card[hidden] { display: none; }
.card__frame {
  aspect-ratio: 4 / 3;
  background: var(--tint, #f3e7b8);
  display: grid; place-items: center;
  padding: 18%;
  position: relative;
}
.card__badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 11px;
  background: var(--paper); padding: 2px 8px;
}
.card__badge--sold { background: var(--ink); color: var(--paper); }
.card__meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; text-transform: uppercase;
}
.card__meta span:last-child { white-space: nowrap; }
.card__spec { font-family: var(--mono); font-size: 12px; opacity: .7; margin-top: -8px; }
.card__add {
  justify-self: start;
  font-family: var(--mono); font-size: 12.5px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px;
}
.card__add:hover { color: var(--red); }
.card__add:disabled { opacity: .4; cursor: default; text-decoration: none; }

/* ---------- Film ---------- */
.film {
  background: var(--red);
  color: var(--paper);
  padding: 88px clamp(16px, 4vw, 40px);
}
.film__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px;
}
.film h2 { color: var(--yellow); }
.film p { margin: 0; max-width: 46ch; grid-column: 1; }
.film__list {
  grid-column: 2; grid-row: 1 / span 2;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--mono); font-size: 15px;
}
.film__list li {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 247, 218, .45);
}

/* ---------- About ---------- */
.about { padding: 88px clamp(16px, 4vw, 40px); max-width: 1180px; margin: 0 auto; }
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  counter-reset: step;
}
.steps li { border-top: 3px solid var(--ink); padding-top: 18px; counter-increment: step; }
.steps h3 { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.steps h3::before {
  content: counter(step) ". ";
  color: var(--red);
}
.steps p { margin: 0; max-width: 34ch; }

/* ---------- Contact ---------- */
.contact {
  background: var(--yellow);
  padding: 88px clamp(16px, 4vw, 40px);
  text-align: center;
}
.contact > p { max-width: 50ch; margin: 16px auto 36px; }
.contact__form {
  max-width: 640px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  text-align: left;
}
.contact__form label { display: grid; gap: 6px; font-family: var(--mono); font-size: 12.5px; }
.contact__form .wide { grid-column: 1 / -1; }
.contact__form input {
  font: inherit; font-family: var(--display); font-size: 17px;
  padding: 12px 14px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  border-radius: 0;
}
.contact__form input:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.contact__form button {
  grid-column: 1 / -1;
  font-family: var(--display); font-weight: 900; font-size: 20px;
  letter-spacing: .02em;
  padding: 16px;
  background: var(--red); color: #fff;
  border: 3px solid var(--gold);
  cursor: pointer;
}
.contact__form button:hover { background: #b80000; }
.contact__ok { grid-column: 1 / -1; margin: 0; font-family: var(--mono); text-align: center; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center;
  padding: 28px 16px;
  font-family: var(--mono); font-size: 12.5px;
  background: var(--ink); color: var(--paper);
}
.footer__mark { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--yellow); }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .topbar { grid-template-columns: auto auto 1fr; }
  .topbar__side:first-child a:not(.back) { display: none; }
  .topbar__side--end a { display: none; }
  .film__inner { grid-template-columns: 1fr; }
  .film__list { grid-column: 1; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bag.bump { animation: none; }
}
