@charset "utf-8";

/* =========================================================
   HOME PAGE
   ========================================================= */

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 34px 0 46px;
  overflow: hidden;
}

.hero::before {
  content: "BUCKET";
  position: absolute;
  top: 10px;
  right: -30px;
  font-family: var(--font-display);
  font-size: clamp(9rem, 22vw, 21rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(25, 20, 16, 0.07);
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--red) 0 28px,
    transparent 28px 56px
  );
  opacity: 0.9;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin: 22px 0 24px;
  font-size: clamp(2.9rem, 6.6vw, 5.5rem);
  letter-spacing: -0.015em;
}

.hero__title .accent {
  color: var(--red);
  position: relative;
  display: inline-block;
}

.hero__title .accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.02em;
  height: 0.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='12' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 C 40 2, 70 10, 100 5 S 170 2, 198 7' stroke='%23D0112B' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
}

.hero__dek {
  max-width: 46ch;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero__dek strong {
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--gold-soft) 62%);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero__stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1.5px solid var(--line-strong);
  list-style: none;
  max-width: 560px;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stats b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--ink);
}

.hero__stats span {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* hero media */

.hero__media {
  position: relative;
}

.hero__frame {
  position: relative;
  transform: rotate(1.6deg);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 12px;
  box-shadow: 14px 16px 0 rgba(25, 20, 16, 0.13);
  transition: transform 0.5s var(--ease);
}

.hero__frame:hover {
  transform: rotate(0deg);
}

.hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
}

.hero__stamp {
  position: absolute;
  top: -20px;
  right: -18px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: rotate(9deg);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 10px;
}

.hero__badge {
  position: absolute;
  left: -26px;
  bottom: 42px;
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 11px 16px 9px;
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero__badge b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
}

.hero__badge span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.hero__note {
  position: absolute;
  right: 10px;
  bottom: -30px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8a4c;
  box-shadow: 0 0 0 3px rgba(47, 138, 76, 0.18);
}

/* ---------- section spacing ---------- */

.section {
  padding: 46px 0;
}

.section--tight {
  padding: 32px 0;
}

/* ---------- price index ---------- */

.price-index {
  position: relative;
}

.price-index__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 38px;
  align-items: start;
}

.price-index__aside {
  position: sticky;
  top: 108px;
}

.price-index__aside .kicker {
  margin-bottom: 18px;
}

.price-index__title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.price-index__title em {
  font-style: normal;
  color: var(--red);
}

.price-index__text {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 40ch;
}

.price-index__mini {
  margin-top: 30px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 18px 20px;
  box-shadow: 4px 4px 0 var(--ink);
}

.price-index__mini h4 {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

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

.price-index__mini td {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.price-index__mini tr:last-child td {
  border-bottom: 0;
}

.price-index__mini td:last-child {
  text-align: right;
  font-family: var(--font-ui);
  font-weight: 600;
  white-space: nowrap;
}

.price-index__mini-note {
  margin-top: 10px;
  font-size: 0.76rem;
  font-style: italic;
  color: var(--muted);
}

.price-index__body .ledger__row:nth-child(1) {
  animation-delay: 0s;
}

/* ---------- featured ---------- */

.feature {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(25, 20, 16, 0.12);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
  transform: translate(-3px, -3px);
  box-shadow: 13px 13px 0 rgba(25, 20, 16, 0.16);
}

.feature__media {
  position: relative;
  min-height: 380px;
  border-right: 2px solid var(--ink);
  overflow: hidden;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.45s var(--ease);
}

.feature:hover .feature__media img {
  transform: scale(1.04);
}

.feature__flag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--red);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 12px 6px;
  box-shadow: 3px 3px 0 var(--ink);
}

.feature__body {
  padding: 42px 44px 38px;
  display: flex;
  flex-direction: column;
}

.feature__cat {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.9vw, 2.35rem);
  line-height: 1.06;
  margin-bottom: 18px;
}

.feature__dek {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.66;
  margin-bottom: 24px;
}

.feature__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature__meta img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--ink);
}

.feature__body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- categories ---------- */

.cat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  border-bottom: 1.5px solid var(--ink);
}

.cat-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 6px;
  border-top: 1.5px solid var(--line-strong);
  transition: background 0.2s var(--ease), padding 0.2s var(--ease), color 0.2s var(--ease);
  position: relative;
}

.cat-row:hover {
  background: var(--ink);
  color: var(--cream);
  padding-left: 16px;
}

.cat-row__n {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red);
  transition: color 0.2s var(--ease);
}

.cat-row:hover .cat-row__n {
  color: var(--gold);
}

.cat-row__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.2;
}

.cat-row__name small {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  transition: color 0.2s var(--ease);
}

.cat-row:hover .cat-row__name small {
  color: #b9ada1;
}

.cat-row__count {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s var(--ease);
}

.cat-row:hover .cat-row__count {
  color: var(--paper);
}

.cat-row__count::after {
  content: "→";
  color: var(--red);
  transition: transform 0.2s var(--ease);
}

.cat-row:hover .cat-row__count::after {
  transform: translateX(4px);
}

/* ---------- filters + latest ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.filter-bar .chip {
  background: transparent;
  cursor: pointer;
}

.filter-bar .chip.is-active,.filter-bar .chip:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ---------- newsletter ---------- */

.newsletter {
  position: relative;
  background: var(--red);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 40px 44px;
  color: var(--paper);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.055) 0 2px,
    transparent 2px 16px
  );
  pointer-events: none;
}

.newsletter__copy {
  position: relative;
}

.newsletter .kicker {
  color: var(--gold-soft);
}

.newsletter .kicker::before {
  background: var(--gold-soft);
}

.newsletter__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.02;
  margin: 16px 0 14px;
  color: var(--paper);
}

.newsletter__text {
  max-width: 46ch;
  color: rgba(255, 251, 242, 0.85);
  font-size: 1rem;
  line-height: 1.6;
}

.newsletter__form {
  position: relative;
  display: flex;
  gap: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 6px;
  box-shadow: 4px 4px 0 var(--ink);
}

.newsletter__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.newsletter__form input:focus {
  outline: none;
}

.newsletter__form .btn {
  box-shadow: none;
  border-width: 0;
}

.newsletter__fine {
  position: relative;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.7);
}

.newsletter__fine.is-done {
  color: var(--gold-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr 0.92fr;
    gap: 36px;
  }
  .price-index__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .price-index__aside {
    position: static;
  }
  .newsletter {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 38px;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 44px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .hero__media {
    max-width: 520px;
    margin-inline: auto;
  }
  .hero__frame img {
    aspect-ratio: 4 / 3.4;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .feature__media {
    min-height: 260px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
  .feature__body {
    padding: 30px 26px;
  }
  .cat-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 52px 0;
  }
  .hero__stats {
    gap: 20px;
  }
  .hero__stats b {
    font-size: 1.35rem;
  }
  .newsletter {
    padding: 34px 22px;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .newsletter__form {
    flex-direction: column;
  }
  .newsletter__form .btn {
    justify-content: center;
  }
  .hero__badge {
    left: -6px;
    bottom: 20px;
  }
  .hero__stamp {
    width: 78px;
    height: 78px;
    font-size: 0.62rem;
  }
}
