@font-face {
  font-family: "Oinky Serif";
  src: url("./assets/oinky/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Oinky Sans";
  src: url("./assets/oinky/fonts/Inter-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Oinky Sans";
  src: url("./assets/oinky/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fff8ef;
  --paper: #fffdf9;
  --ink: #2f1748;
  --navy: #263255;
  --blue: #eaf7fb;
  --blue-strong: #cfeaf3;
  --coral: #bd5276;
  --coral-dark: #9e3f61;
  --coral-soft: #f7dbe4;
  --gold: #d49a00;
  --mint: #dff4eb;
  --muted: #64708a;
  --line: rgb(47 23 72 / 12%);
  --shadow: 0 18px 60px rgb(47 23 72 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Oinky Sans", system-ui, sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(22px, 4vw, 66px);
  border-bottom: 1px solid rgb(47 23 72 / 8%);
  background: rgb(255 248 239 / 92%);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgb(47 23 72 / 14%);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--coral);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: clamp(48px, 7vw, 110px);
  min-height: 790px;
  padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 118px) 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, var(--coral-soft) 0 15%, transparent 15.2%),
    radial-gradient(circle at 3% 92%, var(--blue-strong) 0 18%, transparent 18.2%),
    var(--cream);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1,
h2 {
  margin: 0;
  font-family: "Oinky Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h1 {
  max-width: 720px;
  font-size: clamp(68px, 7vw, 116px);
}

h2 {
  font-size: clamp(48px, 5vw, 78px);
}

.hero-lede {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.button,
.viewer-actions a,
.viewer-actions button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 15px 35px rgb(189 82 118 / 24%);
}

.button.primary:hover {
  background: var(--coral-dark);
}

.button.secondary {
  border-color: var(--line);
  background: rgb(255 255 255 / 60%);
}

.hero-preview {
  position: relative;
  align-self: center;
  min-height: 620px;
}

.hero-preview img {
  position: absolute;
  width: 330px;
  aspect-ratio: 9 / 16;
  border: 9px solid white;
  border-radius: 34px;
  object-fit: cover;
  box-shadow: 0 32px 80px rgb(47 23 72 / 24%);
}

.hero-preview img:first-child {
  top: 0;
  left: 7%;
  transform: rotate(-5deg);
}

.hero-preview img:nth-child(2) {
  right: 4%;
  bottom: 0;
  transform: rotate(5deg);
}

.preview-note {
  position: absolute;
  z-index: 4;
  right: 7%;
  top: 43%;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(24px, 7vw, 118px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(-55px);
}

.stat-strip div {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
  border-right: 1px solid var(--line);
}

.stat-strip div:last-child {
  border-right: 0;
}

.stat-strip strong {
  font-family: "Oinky Serif", Georgia, serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 0.9;
}

.stat-strip span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.method,
.library,
.usage-note {
  padding-right: clamp(24px, 7vw, 118px);
  padding-left: clamp(24px, 7vw, 118px);
}

.method {
  padding-top: 75px;
  padding-bottom: 130px;
}

.section-heading {
  max-width: 930px;
}

.section-heading > p:last-child {
  max-width: 860px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 54px;
}

.method-grid article {
  min-height: 220px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.method-grid article:nth-child(2n) {
  background: var(--blue);
}

.method-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.method-grid h3 {
  margin: 50px 0 12px;
  font-family: "Oinky Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.evidence-note {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--navy);
  color: white;
}

.evidence-note strong {
  font-size: 14px;
}

.evidence-note p {
  margin: 7px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
  line-height: 1.45;
}

.evidence-note a {
  color: #ffd1dc;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.library {
  padding-top: 120px;
  padding-bottom: 140px;
  background: var(--blue);
}

.library-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.library-heading > div:first-child {
  max-width: 820px;
}

.download-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  position: sticky;
  z-index: 30;
  top: 92px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin: 50px 0 34px;
  padding: 18px;
  border: 1px solid rgb(47 23 72 / 9%);
  border-radius: 24px;
  background: rgb(255 253 249 / 94%);
  box-shadow: 0 16px 45px rgb(38 50 85 / 10%);
  backdrop-filter: blur(18px);
}

.search-field {
  display: flex;
  min-width: min(100%, 280px);
  flex: 1 1 280px;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 14px;
}

.search-field input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgb(189 82 118 / 13%);
}

.filters {
  display: flex;
  flex: 2 1 640px;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.result-count {
  margin: 0 4px 12px auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.creative-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.creative-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(47 23 72 / 10%);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 14px 45px rgb(38 50 85 / 8%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.creative-card:hover {
  box-shadow: 0 23px 65px rgb(38 50 85 / 14%);
  transform: translateY(-4px);
}

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 11;
  background: var(--navy);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 300ms ease;
}

.creative-card:hover .card-cover img {
  transform: scale(1.025);
}

.card-number,
.card-frames {
  position: absolute;
  top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 90%);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgb(47 23 72 / 12%);
}

.card-number {
  left: 14px;
}

.card-frames {
  right: 14px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.card-family {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.creative-card h3 {
  margin: 0;
  font-family: "Oinky Serif", Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.card-hook {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: auto;
  padding-top: 24px;
}

.card-actions button,
.card-actions a {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.card-actions button {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 80px 20px;
  color: var(--muted);
  text-align: center;
}

.usage-note {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 68px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 110px;
}

.usage-note img {
  width: 100%;
  filter: drop-shadow(0 24px 30px rgb(47 23 72 / 14%));
}

.usage-note p:last-child {
  max-width: 820px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px clamp(24px, 7vw, 118px);
  background: var(--navy);
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  gap: 20px;
}

.viewer {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 35px 110px rgb(20 14 28 / 35%);
}

.viewer::backdrop {
  background: rgb(22 18 28 / 72%);
  backdrop-filter: blur(8px);
}

.viewer-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(360px, 1.22fr);
  max-height: calc(100vh - 28px);
}

.viewer-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.viewer-stage {
  position: relative;
  display: grid;
  min-height: min(86vh, 880px);
  place-items: center;
  padding: 30px 64px;
  background: var(--navy);
}

.viewer-stage > img {
  width: auto;
  max-width: 100%;
  height: min(80vh, 820px);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgb(0 0 0 / 28%);
  object-fit: contain;
}

.viewer-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 44px;
  height: 58px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 15px;
  background: rgb(255 255 255 / 12%);
  color: white;
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
}

.viewer-arrow.previous {
  left: 12px;
}

.viewer-arrow.next {
  right: 12px;
}

.viewer-details {
  min-width: 0;
  padding: 58px 42px 38px;
  overflow-y: auto;
}

.viewer-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.viewer-kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.viewer-title-row h2 {
  font-size: 56px;
}

.viewer-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.viewer-actions a,
.viewer-actions button {
  min-height: 42px;
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.viewer-caption {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.viewer-thumbnails {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 34px;
}

.thumbnail-button {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  aspect-ratio: 9 / 16;
  background: var(--blue);
  cursor: pointer;
}

.thumbnail-button.active {
  border-color: var(--coral);
}

.thumbnail-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1180px) {
  .creative-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero {
    grid-template-columns: 1fr 440px;
  }

  .hero-preview img {
    width: 280px;
  }

  .viewer-title-row {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .site-header nav a:nth-child(-n + 2) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    min-height: 580px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-strip div:nth-child(2) {
    border-right: 0;
  }

  .stat-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-note {
    grid-template-columns: 1fr;
  }

  .creative-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-heading {
    align-items: start;
    flex-direction: column;
  }

  .download-panel {
    align-items: flex-start;
  }

  .viewer-shell {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .viewer-stage {
    min-height: 64vh;
  }

  .viewer-stage > img {
    height: 58vh;
  }
}

@media (max-width: 620px) {
  .site-header nav a {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-preview {
    min-height: 470px;
  }

  .hero-preview img {
    width: 220px;
  }

  .stat-strip {
    margin-right: 18px;
    margin-left: 18px;
  }

  .method-grid,
  .creative-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    position: static;
  }

  .usage-note {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .usage-note img {
    width: 180px;
    margin: 0 auto;
  }

  footer {
    flex-direction: column;
  }

  .viewer-details {
    padding: 44px 20px 28px;
  }

  .viewer-title-row h2 {
    font-size: 44px;
  }

  .viewer-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .viewer-actions a,
  .viewer-actions button {
    flex: 1;
  }
}
