@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,700;0,9..144,800;1,9..144,500;1,9..144,700&display=swap");
@import "./design-tokens.css";

/* ── Sun & Rose Instagram kit ───────────────────────────────────────────
   Direction: bold centered hierarchy, grain, soft geometry, optional
   duotone photo — inspired by modern story ads, brand colors only.
   Sizes: Story 1080×1920 · Post/Highlight 1080×1080
   ─────────────────────────────────────────────────────────────────────── */

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #2a2a2a;
  font-family: var(--gc-font-body);
}

/* ── Canvas ── */

.ig-canvas {
  position: relative;
  overflow: hidden;
  background: var(--gc-yellow);
  color: var(--gc-ink);
  border: 2px solid var(--gc-ink);
}

.ig-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.ig-post,
.ig-highlight {
  width: 1080px;
  height: 1080px;
}

.ig-story {
  width: 1080px;
  height: 1920px;
}

/* ── Surfaces ── */

.ig-canvas--paper {
  background: var(--gc-paper);
}

.ig-canvas--rose {
  background: var(--gc-rose);
  color: #fff;
}

.ig-canvas--ink {
  background: var(--gc-ink);
  color: var(--gc-paper);
}

.ig-canvas--photo {
  background: var(--gc-ink);
  color: var(--gc-paper);
}

.ig-canvas--photo .ig-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.ig-duotone {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: color;
  background: linear-gradient(
    160deg,
    rgb(var(--gc-yellow-rgb) / 0.85) 0%,
    rgb(var(--gc-rose-rgb) / 0.75) 55%,
    rgb(var(--gc-violet-rgb) / 0.65) 100%
  );
}

.ig-duotone--ink {
  background: linear-gradient(
    180deg,
    rgb(var(--gc-ink-rgb) / 0.35) 0%,
    rgb(var(--gc-ink-rgb) / 0.75) 100%
  );
  mix-blend-mode: multiply;
}

.ig-canvas--rose .ig-caption,
.ig-canvas--rose .ig-meta,
.ig-canvas--rose .ig-event-meta {
  color: #fff;
}

.ig-canvas--rose .ig-title em {
  color: var(--gc-yellow);
}

.ig-canvas--ink .ig-title em,
.ig-canvas--photo .ig-title em {
  color: var(--gc-yellow);
}

.ig-canvas--ink .ig-meta,
.ig-canvas--photo .ig-meta {
  color: rgb(var(--gc-paper-rgb) / 0.75);
}

/* ── Geometry accents (ref: soft circles + sharp triangles) ── */

.ig-geo {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.ig-geo-circle {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgb(245 200 0 / 0.55),
    rgb(232 25 90 / 0.35) 45%,
    rgb(123 45 142 / 0.25) 100%
  );
  filter: blur(2px);
}

.ig-geo-circle--soft {
  background: radial-gradient(
    circle at 40% 40%,
    rgb(250 245 238 / 0.9),
    rgb(245 200 0 / 0.35) 55%,
    transparent 75%
  );
}

.ig-geo-triangle {
  width: 0;
  height: 0;
  border-left: 56px solid transparent;
  border-right: 56px solid transparent;
  border-bottom: 96px solid var(--gc-rose);
  filter: drop-shadow(0 8px 0 rgb(26 26 26 / 0.15));
}

.ig-geo-triangle--yellow {
  border-bottom-color: var(--gc-yellow);
}

.ig-geo-triangle--violet {
  border-bottom-color: var(--gc-violet);
}

.ig-geo--top {
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
}

.ig-geo--bottom {
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
}

.ig-geo--tl {
  top: 80px;
  left: 64px;
}

.ig-geo--br {
  bottom: 120px;
  right: 80px;
}

.ig-geo-mirror {
  top: auto;
  bottom: 140px;
  transform: translateX(-50%) rotate(180deg);
}

/* ── Layout grid ── */

.ig-grid {
  position: absolute;
  inset: 48px;
  z-index: 3;
  border: 2px solid currentColor;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 48px;
  gap: 32px;
}

.ig-grid--open {
  border-color: transparent;
  padding: 64px 72px;
}

.ig-grid--center {
  align-items: center;
  text-align: center;
  justify-items: center;
}

.ig-story-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  flex: 1;
  min-height: 0;
  z-index: 3;
}

.ig-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 100%;
}

/* ── Type ── */

.ig-brand {
  font-family: var(--gc-font-body);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  opacity: 0.85;
}

.ig-caption {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ig-meta {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  max-width: 22ch;
}

.ig-title {
  font-family: var(--gc-font-display);
  font-size: 120px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  align-self: center;
}

.ig-story .ig-title {
  font-size: 132px;
}

.ig-title--xl {
  font-size: 148px;
}

.ig-title--sm {
  font-size: 72px;
}

.ig-title--quote {
  font-size: 88px;
  font-weight: 700;
  line-height: 1.02;
  max-width: 12ch;
}

.ig-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gc-rose);
}

.ig-event-date {
  font-family: var(--gc-font-display);
  font-size: 96px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.ig-event-meta {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gc-violet);
}

/* ── Chrome ── */

.ig-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  width: 100%;
}

.ig-footer--center {
  justify-content: center;
}

.ig-badge {
  display: inline-block;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--gc-ink);
  background: var(--gc-rose);
  color: #fff;
}

.ig-sticker {
  display: inline-block;
  padding: 16px 28px;
  font-family: var(--gc-font-display);
  font-size: 32px;
  font-weight: 700;
  border: 2px solid var(--gc-ink);
  background: var(--gc-paper);
  color: var(--gc-ink);
  transform: rotate(-4deg);
  box-shadow: 6px 6px 0 var(--gc-ink);
}

.ig-cta-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 20px 36px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gc-ink);
  color: var(--gc-paper);
  border: 2px solid var(--gc-ink);
}

.ig-wordmark {
  font-family: var(--gc-font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: inherit;
}

.ig-wordmark em {
  font-style: italic;
  font-weight: 500;
  color: var(--gc-rose);
}

.ig-wordmark--light em {
  color: var(--gc-yellow);
}

.ig-violet-dot {
  position: absolute;
  top: 56px;
  right: 56px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gc-violet);
  border: 2px solid var(--gc-ink);
}

.ig-rose-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 14px;
  background: var(--gc-rose);
}

.ig-announcement-tag {
  align-self: flex-start;
  padding: 14px 22px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gc-violet);
  color: #fff;
  border: 2px solid var(--gc-ink);
}

.ig-welcome-mark {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* ── Poll ── */

.ig-poll-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.ig-poll-option {
  padding: 26px 32px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--gc-ink);
  background: var(--gc-paper);
  color: var(--gc-ink);
  box-shadow: 6px 6px 0 var(--gc-ink);
}

.ig-poll-option--alt {
  background: var(--gc-yellow);
}

/* ── Highlights (circle-safe ~80%) ── */

.ig-highlight .ig-safe {
  position: absolute;
  z-index: 3;
  inset: 10%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px;
}

.ig-highlight .ig-safe-ring {
  position: absolute;
  z-index: 2;
  inset: 8%;
  border-radius: 50%;
  border: 3px solid currentColor;
  opacity: 0.35;
  pointer-events: none;
}

.ig-hl-letter {
  font-family: var(--gc-font-display);
  font-size: 220px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.ig-hl-label {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  opacity: 0.7;
  z-index: 10;
}

/* Capture mode: hide chrome when ?capture=1 */
body.capture {
  background: transparent;
  min-height: 0;
  padding: 0;
}

body.capture .hint {
  display: none;
}

.ig-index {
  min-height: 100vh;
  padding: 48px;
  background: var(--gc-paper);
  color: var(--gc-ink);
  font-family: var(--gc-font-body);
}

.ig-index h1 {
  font-family: var(--gc-font-display);
  font-size: 48px;
  margin-bottom: 24px;
}

.ig-index ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ig-index a {
  color: var(--gc-rose);
  font-weight: 700;
  text-decoration: underline;
}
