/* Kiri Case — thekiriouscase.com */
:root {
  --orange: #F08A2C;
  --orange-deep: #D9701A;
  --ink: #1C1A19;
  --cream: #FFF6E9;
  --paper: #FFFDF8;
  --manila: #F3D9A4;
  --pink: #FF5E9C;
  --sky: #5FCDEB;
  --muted: #5B534D;

  --display: "Bungee", "Arial Black", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow: 6px 6px 0 var(--ink);
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange-deep);
  margin: 0 0 .25em;
  transform: rotate(-2deg);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  text-decoration: none;
  padding: .8em 1.4em;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--pink); }
.btn--ink:hover { box-shadow: 6px 6px 0 var(--pink); }
.btn--ink:active { box-shadow: 1px 1px 0 var(--pink); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--orange { background: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--cream); border-color: var(--cream); }
.btn--orange:hover { box-shadow: 6px 6px 0 var(--cream); }
.btn--big { font-size: 1.125rem; padding: 1em 1.7em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--hand); font-weight: 700; font-size: 2.1rem; text-decoration: none; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-weight: 600; text-decoration: none; }
.nav__links a:not(.nav__ig):hover { text-decoration: underline wavy var(--orange); text-underline-offset: 5px; }
.nav__ig { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; transition: background .15s, color .15s; }
.nav__ig:hover { background: var(--ink); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--orange) 22%, transparent) 0 180px, transparent 181px),
    radial-gradient(circle, color-mix(in srgb, var(--ink) 12%, transparent) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.4rem); letter-spacing: -.01em; }
.hl { color: var(--orange); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 34ch; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.polaroid {
  position: relative;
  margin: 0 auto;
  max-width: 400px;
  background: var(--paper);
  padding: 16px 16px 12px;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(3deg);
  transition: transform .3s ease;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid img { border: 2px solid var(--ink); aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { font-family: var(--hand); font-size: 1.5rem; font-weight: 600; text-align: center; padding-top: 10px; line-height: 1.2; }
.tape {
  position: absolute; top: -18px; left: 50%;
  width: 120px; height: 34px;
  background: color-mix(in srgb, var(--sky) 70%, transparent);
  transform: translateX(-50%) rotate(-4deg);
  border-left: 2px dashed rgba(0,0,0,.15); border-right: 2px dashed rgba(0,0,0,.15);
}

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--orange); border-block: 3px solid var(--ink); overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.ticker span { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; padding: 0 22px; }
.ticker span::after { content: "\2605"; color: var(--cream); margin-left: 44px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Book ---------- */
.book {
  background: var(--orange);
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
}
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.book__cover { perspective: 1200px; }
.book__cover img {
  width: min(380px, 100%); margin-inline: auto;
  border: 3px solid var(--ink);
  border-radius: 4px 10px 10px 4px;
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotateY(-10deg) rotate(-2deg);
  transition: transform .4s ease;
}
.book__cover img:hover { transform: rotateY(0) rotate(0) scale(1.02); }
.book h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.book__hook { font-family: var(--hand); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
.book__text > p:not(.book__hook):not(.book__pub) { max-width: 56ch; }
.book__text .btn { margin-top: 12px; }
.book__pub { margin-top: 18px; font-size: .95rem; font-weight: 600; }

.slate { width: 200px; margin-bottom: 22px; transform: rotate(-3deg); }
.slate__bar {
  height: 26px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(120deg, var(--ink) 0 18px, var(--cream) 18px 36px);
  transform-origin: left bottom; transform: rotate(-8deg);
}
.slate__body {
  display: flex; justify-content: space-between;
  background: var(--ink); color: var(--cream);
  font-family: var(--display); font-size: .8rem;
  padding: 10px 12px; border-radius: 0 0 6px 6px;
}

.reviews { margin-top: clamp(56px, 8vw, 88px); }
.reviews__title { font-family: var(--hand); font-weight: 700; font-size: 2.2rem; text-align: center; margin-bottom: 28px; }
.reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.review {
  margin: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  box-shadow: var(--shadow);
  position: relative;
  transform: rotate(-1deg);
}
.review--tilt { transform: rotate(1.2deg); }
.review::after {
  content: ""; position: absolute; bottom: -18px; left: 44px;
  width: 28px; height: 28px; background: var(--paper);
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: skewX(30deg) rotate(45deg);
}
.review p { font-size: 1.08rem; }
.stars { color: var(--orange); font-size: 1.4rem !important; letter-spacing: 3px; margin-bottom: .4em; -webkit-text-stroke: 1px var(--ink); }
.review footer { font-weight: 700; font-size: .9rem; color: var(--muted); }
.review footer::before { content: "\2014\00a0"; }

/* ---------- About ---------- */
.about { padding: clamp(64px, 9vw, 112px) 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.about__text p { max-width: 52ch; }

.casefile { position: relative; transform: rotate(1.5deg); }
.casefile__tab {
  display: inline-block;
  background: var(--manila); border: 3px solid var(--ink); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  font-family: var(--display); font-size: .85rem;
  padding: 8px 18px 6px; margin-left: 24px;
}
.casefile__paper {
  position: relative;
  background: var(--manila);
  border: 3px solid var(--ink); border-radius: 4px var(--radius) var(--radius) var(--radius);
  padding: 28px clamp(20px, 4vw, 34px);
  box-shadow: 10px 10px 0 var(--ink);
}
.casefile dl { margin: 0; display: grid; gap: 12px; }
.casefile dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); padding-bottom: 10px; }
.casefile dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.casefile dt { font-family: var(--display); font-size: .78rem; padding-top: 3px; }
.casefile dd { margin: 0; font-weight: 600; line-height: 1.4; }
.aside { font-weight: 400; color: var(--muted); font-size: .9em; }
.stamp {
  position: absolute; right: -10px; bottom: -26px;
  font-family: var(--display); font-size: 1rem; color: var(--pink);
  border: 4px solid var(--pink); border-radius: 8px;
  padding: 6px 14px; background: color-mix(in srgb, var(--paper) 80%, transparent);
  transform: rotate(-10deg);
  letter-spacing: .04em;
}

/* ---------- Follow ---------- */
.follow { background: var(--ink); color: var(--cream); padding: clamp(64px, 9vw, 104px) 0; text-align: center; }
.follow h2 { font-size: clamp(2.6rem, 7vw, 4.8rem); color: var(--orange); }
.follow p { font-size: 1.2rem; max-width: 40ch; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: color-mix(in srgb, var(--cream) 65%, transparent); border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; font-size: .9rem; text-align: center; }
.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__grid, .book__grid, .about__grid { grid-template-columns: 1fr; }
  .hero__text { text-align: center; }
  .lede { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .polaroid { max-width: 320px; }
  .book__text { text-align: center; }
  .book__text > p { margin-inline: auto; }
  .slate { margin-inline: auto; }
  .book__cover img { width: min(300px, 80%); }
  .reviews__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__text { text-align: center; }
  .about__text p { margin-inline: auto; }
  .casefile { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .nav__links li:nth-child(2) { display: none; }
  .logo { font-size: 1.85rem; }
  .casefile dl > div { grid-template-columns: 1fr; gap: 2px; }
  .stamp { right: 6px; }
  .btn--big { font-size: 1rem; padding: .9em 1.3em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
