@font-face {
  font-family: "LibreStile";
  src: url("./assets/fonts/librestile-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #080806;
  --bone: #e3cda6;
  --brass: #ae915e;
  --rust: #9e3b29;
  --line: rgba(174, 145, 94, 0.36);
  --display: "LibreStile", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.025) 4px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(0,0,0,0.08) 8px);
  mix-blend-mode: soft-light;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--bone);
  color: var(--black);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3px, 0.45vw, 9px);
  padding: clamp(3px, 0.45vw, 9px);
  overflow: hidden;
  background: #030302;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 80px 24px rgba(0,0,0,0.68);
}

.comic-panel {
  position: relative;
  min-width: 0;
  height: 100svh;
  overflow: hidden;
  border: 1px solid rgba(227, 205, 166, 0.42);
  background: #090806;
}

.comic-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.04) 45%, rgba(0,0,0,0.72) 100%),
    radial-gradient(circle at 50% 42%, transparent 38%, rgba(0,0,0,0.38) 100%);
}

.comic-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.9);
}

.comic-panel-one img { object-position: 50% 42%; }
.comic-panel-two img { object-position: 50% 43%; }
.comic-panel-three img { object-position: 50% 48%; }

.comic-caption {
  position: absolute;
  z-index: 1;
  left: clamp(13px, 1.8vw, 32px);
  right: clamp(13px, 1.8vw, 32px);
  bottom: clamp(58px, 7.5vh, 94px);
  margin: 0;
  padding: clamp(10px, 1vw, 15px) clamp(12px, 1.2vw, 18px);
  border: 2px solid #17130c;
  background: #d8b849;
  color: #100e0a;
  font-family: var(--sans);
  font-size: clamp(13px, 1.08vw, 19px);
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 1.22;
  text-transform: uppercase;
  box-shadow: 5px 6px 0 rgba(0,0,0,0.72);
}

.comic-caption b {
  color: #711f14;
  font-family: var(--display);
  font-size: 1.08em;
  font-style: italic;
  letter-spacing: 0.04em;
}

.hero-next {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: clamp(10px, 2vw, 28px);
  transform: translateX(50%);
  padding: 11px 14px 9px;
  border: 1px solid var(--line);
  background: rgba(8,8,6,0.82);
  color: var(--bone);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-next span {
  margin-left: 10px;
  color: var(--rust);
}

.product {
  min-height: 100svh;
  padding: clamp(30px, 4vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr);
  align-items: center;
  gap: clamp(34px, 4vw, 76px);
  background:
    radial-gradient(circle at 15% 50%, rgba(158,59,41,0.12), transparent 36rem),
    var(--black);
}

.product-visual {
  padding: 9px;
  border: 1px solid #745f3d;
  background: #030302;
  box-shadow: 0 34px 90px rgba(0,0,0,0.64);
}

.product-visual img {
  width: 100%;
  height: auto;
}

.product-copy {
  width: 100%;
  max-width: 610px;
  justify-self: center;
  text-align: center;
}

/* The manufacturer's mark signs off at the foot: smaller and quieter than the
   product name above it, per the brand decision — KOJEISTO is the calm stamp, the
   product name is the loud one. */
.logo {
  width: clamp(150px, 13.5vw, 205px);
  margin: clamp(44px, 5.2vw, 68px) auto 0;
  opacity: 0.82;
}

.kicker,
.effects,
.status {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 20px;
  color: var(--brass);
  font-size: 11px;
  text-align: center;
}

h1 {
  width: 100%;
  margin: 0;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(68px, 7.2vw, 126px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 4px 5px 0 #2f110c;
}

.description {
  max-width: 500px;
  margin: 38px 0 30px;
  color: #c7b48f;
  font-family: var(--serif);
  font-size: clamp(19px, 1.5vw, 25px);
  line-height: 1.45;
}

.effects {
  width: 100%;
  margin: clamp(34px, 4.5vw, 54px) 0 0;
  padding-block: 20px;
  border-block: 1px solid var(--line);
  color: #8e7955;
  font-size: 10px;
  line-height: 2.1;
  text-align: left;
}

.effects b {
  display: inline-block;
  width: 78px;
  color: var(--rust);
}

.status {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 11px 13px 9px;
  border: 1px solid var(--rust);
  color: var(--bone);
  font-size: 9px;
}

@media (min-width: 981px) {
  /* align-content keeps the single auto row at its content height; without it the row
     absorbs the section's 100svh and both columns stretch to the viewport, leaving the
     frame half empty and the copy strung out. */
  .product {
    align-items: stretch;
    align-content: center;
  }

  .product-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .product-visual {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 980px) {
  .product {
    grid-template-columns: 1fr;
    padding-block: 70px 100px;
  }

  .product-copy {
    max-width: 720px;
    grid-row: 1;
  }

  .logo { margin-top: 46px; }
}

@media (max-width: 560px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 5px;
  }

  .comic-panel {
    height: 76svh;
  }

  .comic-panel-one img { object-position: 50% 37%; }
  .comic-panel-two img { object-position: 50% 38%; }
  .comic-panel-three img { object-position: 50% 47%; }

  .comic-caption {
    bottom: 18px;
    font-size: 14px;
  }

  .hero-next {
    right: 12px;
    bottom: 12px;
    transform: none;
  }
  .product { padding-inline: 12px; }
  .product-copy { padding-inline: 8px; }
  .product-visual { padding: 4px; }
  h1 { font-size: clamp(60px, 19vw, 92px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
