/* ============================================================
   NORTH & OAK — responsive storefront styles
   Mobile-first. Breakpoints: >=768px tablet / >=1024px desktop
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ink: #1d2b26;            /* primary text / dark surfaces */
  --ink-soft: #55635d;       /* secondary text */
  --paper: #f6f2ea;          /* page background */
  --card: #fffdf9;
  --line: #e2dcd0;
  --accent: #b4552f;         /* terracotta */
  --accent-dark: #96401f;
  --radius: 4px;             /* tighter radius = more premium */
  --max: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.container {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 500;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: #000; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink);
  color: #efe9de;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(14px, 4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}

/* Mobile nav: collapsed panel under the header */
.nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav.is-open { display: flex; }
.nav__link {
  padding: 14px 0;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__link:last-child { border-bottom: 0; }

.header__actions { display: flex; align-items: center; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.cart-btn:hover { border-color: var(--ink); }
.cart-btn__label { display: none; }
.cart-btn__count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Eyebrow / section labels ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Hero ---------- */
.hero { padding: 44px 0 52px; }
.hero__inner { display: grid; gap: 40px; }
.hero__title {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  margin-bottom: 20px;
}
.hero__desc {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 28px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero__proof strong { color: var(--ink); font-weight: 600; }

/* Hero visual: stacked product plinth */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  background: linear-gradient(160deg, #e9e2d5, #d9cfbd);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.hero__glyph {
  font-size: clamp(64px, 18vw, 108px);
  filter: drop-shadow(0 18px 26px rgba(29, 43, 38, 0.22));
}
.hero__glyph--sm { font-size: clamp(44px, 12vw, 72px); }
.hero__glyph--xs { font-size: clamp(34px, 9vw, 56px); }
.hero__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 12px 18px;
  background: rgba(255, 253, 249, 0.94);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.hero__tag strong { color: var(--ink); font-size: 13px; }

/* ---------- Perks ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.perk {
  background: var(--paper);
  padding: 20px 16px;
  text-align: center;
}
.perk h3 {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.perk p { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Shop ---------- */
.shop { padding: 64px 0 24px; }
.shop__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.shop__head h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter--active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.product-card:hover { border-color: #c9c0b0; transform: translateY(-3px); }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: clamp(48px, 13vw, 72px);
}
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
}
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  flex: 1;
}
.product-card__name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.product-card__desc {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.product-card__price {
  font-size: 14px;
  font-weight: 600;
}
.product-card__was {
  margin-left: 6px;
  font-size: 12.5px;
  font-weight: 400;
  color: #9a9284;
  text-decoration: line-through;
}
.product-card__add {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.product-card__add:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.empty-tip {
  padding: 56px 0;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Story ---------- */
.story {
  margin-top: 56px;
  padding: 64px 0;
  background: var(--ink);
  color: #e9e3d8;
}
.story__inner { display: grid; gap: 36px; }
.story .eyebrow { color: #d08a68; }
.story h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-bottom: 20px; }
.story p {
  color: #b8bdb7;
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 52ch;
}
.story__list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.story__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 14px;
  color: #cfd3cc;
}
.story__list li::before {
  content: "—";
  color: #d08a68;
}

.story__media {
  position: relative;
  min-height: 260px;
}
.story__block {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.7;
}
.story__block--a {
  inset: 0 34% 32% 0;
  background: #d9cfbd;
  border-radius: var(--radius);
}
.story__block--b {
  inset: 34% 0 0 34%;
  background: #b4552f;
  color: #fdf6ee;
  border-radius: var(--radius);
}

/* ---------- Reviews ---------- */
.reviews { padding: 64px 0 40px; }
.reviews h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-bottom: 32px; }
.review-grid {
  display: grid;
  gap: 16px;
}
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.review__stars {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.review blockquote {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.review figcaption {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: #ede7db;
  border-top: 1px solid var(--line);
  padding: 56px 0;
  margin-top: 24px;
}
.newsletter__inner { display: grid; gap: 24px; }
.newsletter h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin-bottom: 10px; }
.newsletter p { font-size: 14px; color: var(--ink-soft); max-width: 46ch; }

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.newsletter__form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid #cfc6b6;
  border-radius: 999px;
  background: var(--card);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.newsletter__form input::placeholder { color: #a29a8c; }
.newsletter__msg {
  flex-basis: 100%;
  font-size: 13px;
  min-height: 20px;
}
.newsletter__msg.is-error { color: #a33218; }
.newsletter__msg.is-ok { color: #2f6b4f; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #c3c8c1;
  padding: 56px 0 24px;
}
.footer__inner {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: #f4efe4;
}
.footer__brand p { font-size: 13px; margin-top: 10px; line-height: 1.8; }

.footer__col h3 {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4efe4;
  margin-bottom: 12px;
}
.footer__col a,
.footer__col p {
  display: block;
  font-size: 13.5px;
  color: #c3c8c1;
  text-decoration: none;
  margin-bottom: 8px;
}
.footer__col a:hover { color: #fff; }
.footer__pay { font-size: 12px !important; color: #8d938c !important; margin-top: 12px; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  font-size: 12px;
  color: #8d938c;
}
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: #fff; }

/* ---------- Cart drawer ---------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 26, 23, 0.55);
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--paper);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.drawer__close {
  border: 0;
  background: none;
  font-size: 16px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* Free-shipping progress */
.ship-bar {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.ship-bar p {
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.ship-bar p strong { color: var(--accent); }
.ship-bar__track {
  height: 3px;
  background: #e0d9cc;
  border-radius: 3px;
  overflow: hidden;
}
.ship-bar__track span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.ship-bar.is-done p { color: #2f6b4f; }

.cart-list {
  flex: 1;
  list-style: none;
  overflow-y: auto;
  padding: 4px 22px;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item__media {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 3px;
  font-size: 28px;
}
.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.cart-item__name { font-size: 13.5px; font-weight: 600; }
.cart-item__variant { font-size: 12px; color: var(--ink-soft); }
.cart-item__price { font-size: 13.5px; white-space: nowrap; }

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.qty button:hover { background: #eae3d6; }
.qty span {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
}
.cart-item__remove {
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  cursor: pointer;
}
.cart-item__remove:hover { color: var(--accent); border-bottom-color: var(--accent); }

.cart-empty {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}

.drawer__foot {
  display: grid;
  gap: 10px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.drawer__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.drawer__row strong { font-size: 18px; letter-spacing: 0; }
.drawer__note {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #f4efe4;
  font-size: 13px;
  text-align: center;
  animation: toast-in 0.26s var(--ease);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   Tablet — >=768px
   ============================================================ */
@media (min-width: 768px) {
  .container { width: min(var(--max), 100% - 64px); }

  .perks { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .shop__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .review-grid { grid-template-columns: repeat(3, 1fr); }

  .newsletter__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
  }

  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   Desktop — >=1024px
   ============================================================ */
@media (min-width: 1024px) {
  .menu-toggle { display: none; }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav__link {
    padding: 4px 0;
    font-size: 13.5px;
    letter-spacing: 0.04em;
    border: 0;
    color: var(--ink-soft);
    transition: color 0.2s var(--ease);
  }
  .nav__link:hover { color: var(--ink); }
  .cart-btn__label { display: inline; }

  .hero { padding: 72px 0 84px; }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
  }
  .hero__visual { max-height: 560px; }

  .product-grid { grid-template-columns: repeat(4, 1fr); }

  .story { padding: 88px 0; }
  .story__inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 64px;
  }
  .story__media { min-height: 420px; }

  .reviews { padding: 88px 0 48px; }
  .newsletter { padding: 72px 0; }
  .shop { padding: 88px 0 24px; }
}

/* ============================================================
   Product images
   Any media box that receives a real <img> gets .has-image and
   switches from the emoji placeholder to a cover-fit photo.
   ============================================================ */
.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card__media.has-image,
.cart-item__media.has-image,
.admin-card__drop.has-image { padding: 0; }
.product-card__media.has-image { border-radius: 0; }
.cart-item__media.has-image,
.admin-card__drop.has-image { overflow: hidden; }

/* ============================================================
   Product manager (admin.html)
   ============================================================ */
.admin-page { background: var(--paper); }
.admin-title {
  display: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.admin-back { display: none; }

.admin { padding: 40px 0 72px; }
.admin__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.admin__intro h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  margin-bottom: 10px;
}
.admin__lede {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
}
.admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin__actions .btn { padding: 12px 22px; font-size: 13px; }

.admin__notice {
  margin: 24px 0 32px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: #f0ebe0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.admin__notice strong { color: var(--ink); }
.admin__notice code {
  padding: 1px 5px;
  border-radius: 3px;
  background: #e4ddcd;
  font-size: 12px;
  color: var(--ink);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.admin-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-card__drop {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  font-size: 44px;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), outline-color 0.2s var(--ease);
  outline: 2px dashed transparent;
  outline-offset: -8px;
}
.admin-card__drop:hover,
.admin-card__drop:focus-visible { outline-color: rgba(29, 43, 38, 0.35); }
.admin-card__drop.is-dragover {
  outline-color: var(--accent);
  box-shadow: inset 0 0 0 200px rgba(180, 85, 47, 0.1);
}

.admin-card__hint {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 3px;
  background: rgba(29, 43, 38, 0.82);
  color: #f6f2ea;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.admin-card__drop:hover .admin-card__hint,
.admin-card__drop:focus-visible .admin-card__hint,
.admin-card__drop.is-dragover .admin-card__hint {
  opacity: 1;
  transform: translateY(0);
}

.admin-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.admin-card__meta h3 {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.admin-card__meta p {
  font-size: 11.5px;
  color: var(--ink-soft);
}
.admin-card__row { margin-top: 8px; }
.admin-card__remove {
  border: 0;
  background: none;
  padding: 0 0 2px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  cursor: pointer;
}
.admin-card__remove:hover:not(:disabled) {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.admin-card__remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin__status {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 22px;
}

@media (min-width: 768px) {
  .admin-title { display: block; }
  .admin-back { display: inline-flex; }
  .admin__intro {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  .admin__actions { flex: 0 0 auto; }
  .admin-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
}
