/* talegrapher.com — Bauhaus storytelling with terracotta warmth */

:root {
  --terracotta: #c4613a;
  --clay-light: #d4825a;
  --bauhaus-blue: #2a5a8a;
  --bauhaus-yellow: #d4b040;
  --cream-paper: #f4ede0;
  --ink-dark: #2a1e18;
  --aurora-violet: #6a3a8a;
  --aurora-green: #2a8a6a;
}

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

html, body {
  background: var(--cream-paper);
  color: var(--ink-dark);
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.75;
  overflow-x: hidden;
}

@keyframes shapeIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes auroraShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bokehFade {
  from { opacity: 0; }
  to { opacity: 0.10; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--clay-light) 100%);
  padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px);
  overflow: hidden;
  color: var(--cream-paper);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--aurora-violet) 0%, transparent 40%, transparent 60%, var(--aurora-green) 100%);
  background-size: 200% 200%;
  opacity: 0.08;
  animation: auroraShift 14s ease-in-out infinite;
  pointer-events: none;
}

.bokeh-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0;
  animation: bokehFade 1.4s ease-out forwards;
}

.bokeh.b1 { width: 150px; height: 150px; top: 12%; left: 8%; background: var(--bauhaus-yellow); animation-delay: 0.2s; }
.bokeh.b2 { width: 120px; height: 120px; top: 22%; right: 14%; background: var(--cream-paper); animation-delay: 0.5s; }
.bokeh.b3 { width: 100px; height: 100px; bottom: 28%; left: 20%; background: var(--bauhaus-yellow); animation-delay: 0.8s; }
.bokeh.b4 { width: 130px; height: 130px; bottom: 14%; right: 22%; background: var(--clay-light); animation-delay: 0.4s; }
.bokeh.b5 { width: 80px; height: 80px; top: 50%; left: 45%; background: var(--cream-paper); animation-delay: 0.7s; }
.bokeh.b6 { width: 110px; height: 110px; top: 18%; left: 50%; background: var(--bauhaus-yellow); animation-delay: 0.3s; }

.bauhaus-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  display: block;
  transform-origin: center;
  animation: shapeIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.bauhaus-shapes .circle {
  width: clamp(140px, 18vw, 280px);
  height: clamp(140px, 18vw, 280px);
  border-radius: 50%;
  background: var(--bauhaus-blue);
  top: 8%;
  right: 6%;
  animation-delay: 0.2s;
}

.bauhaus-shapes .triangle {
  width: 0;
  height: 0;
  border-left: clamp(70px, 10vw, 160px) solid transparent;
  border-right: clamp(70px, 10vw, 160px) solid transparent;
  border-bottom: clamp(120px, 17vw, 250px) solid var(--bauhaus-yellow);
  bottom: 10%;
  right: 22%;
  animation-delay: 0.4s;
}

.bauhaus-shapes .square {
  width: clamp(80px, 11vw, 160px);
  height: clamp(80px, 11vw, 160px);
  background: var(--ink-dark);
  bottom: 14%;
  left: 8%;
  animation-delay: 0.6s;
}

.bauhaus-shapes .line {
  width: clamp(180px, 24vw, 340px);
  height: 6px;
  background: var(--cream-paper);
  top: 38%;
  left: 6%;
  animation-delay: 0.8s;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 820px;
}

.hero-meta {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--bauhaus-yellow);
  margin-bottom: 18px;
}

.hero-title {
  font-family: "Bebas Neue", "Work Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 12vw, 168px);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--cream-paper);
  margin-bottom: 26px;
}

.hero-tagline {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.08em;
  color: var(--cream-paper);
  margin-bottom: 16px;
}

.hero-tagline .accent { color: var(--bauhaus-yellow); }

.hero-sub {
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--cream-paper);
  opacity: 0.92;
}

.hero-corner-mark {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cream-paper);
  opacity: 0.7;
  z-index: 5;
}

/* CONTENT STRIPS */
.content {
  background: var(--cream-paper);
  position: relative;
}

.strip {
  padding: clamp(64px, 10vw, 140px) clamp(24px, 6vw, 96px);
  border-bottom: 1px solid rgba(42, 30, 24, 0.12);
  position: relative;
  overflow: hidden;
}

.strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--aurora-violet) 0%, transparent 50%, var(--aurora-green) 100%);
  background-size: 200% 200%;
  opacity: 0.05;
  animation: auroraShift 18s ease-in-out infinite;
  pointer-events: none;
}

.strip-anchor {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.strip-shape {
  display: inline-block;
  margin-bottom: 18px;
}

.circle-marker {
  width: 36px;
  height: 36px;
  background: var(--bauhaus-blue);
  border-radius: 50%;
}

.triangle-marker {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 32px solid var(--terracotta);
}

.square-marker {
  width: 32px;
  height: 32px;
  background: var(--bauhaus-yellow);
}

.strip-label {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--bauhaus-blue);
  margin-bottom: 14px;
}

.strip-headline {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--ink-dark);
}

/* CARDS */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  position: relative;
  z-index: 2;
}

.story-card {
  background: var(--cream-paper);
  border: 2px solid var(--ink-dark);
  padding: clamp(20px, 2.4vw, 32px);
  position: relative;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.story-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-marker {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 28px;
  height: 28px;
  background: var(--bauhaus-blue);
}

.story-card[data-shape="circle"] .card-marker { border-radius: 50%; background: var(--bauhaus-blue); }
.story-card[data-shape="triangle"] .card-marker {
  width: 0; height: 0; background: transparent;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-bottom: 24px solid var(--terracotta);
}
.story-card[data-shape="square"] .card-marker { background: var(--bauhaus-yellow); }

.card-meta {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--bauhaus-blue);
  margin-bottom: 14px;
  margin-top: 8px;
}

.card-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.02em;
  color: var(--ink-dark);
  margin-bottom: 12px;
  line-height: 1.05;
}

.card-body {
  font-size: 15px;
  margin-bottom: 22px;
  color: var(--ink-dark);
}

.card-cta {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  font-weight: 700;
}

/* METHOD */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
  position: relative;
  z-index: 2;
}

.method-block {
  border-left: 3px solid var(--terracotta);
  padding: 24px clamp(18px, 2vw, 28px);
  background: rgba(212, 130, 90, 0.06);
  cursor: default;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.method-block:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.method-block[data-shape="triangle"] { border-left-color: var(--bauhaus-yellow); }
.method-block[data-shape="square"] { border-left-color: var(--bauhaus-blue); }
.method-block[data-shape="line"] { border-left-color: var(--aurora-violet); }

.method-number {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  margin-bottom: 12px;
  font-weight: 700;
}

.method-heading {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.02em;
  color: var(--ink-dark);
  margin-bottom: 10px;
}

.method-block p {
  font-size: 15px;
  color: var(--ink-dark);
}

/* ARCHIVE */
.archive-list {
  list-style: none;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(42, 30, 24, 0.18);
}

.archive-row {
  display: grid;
  grid-template-columns: 32px 90px 1fr 100px;
  gap: 18px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid rgba(42, 30, 24, 0.18);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.archive-row:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: var(--cream-paper);
}

.row-shape {
  display: block;
  width: 18px;
  height: 18px;
}

.archive-row[data-shape="circle"] .row-shape { border-radius: 50%; background: var(--bauhaus-blue); }
.archive-row[data-shape="triangle"] .row-shape {
  width: 0; height: 0; background: transparent;
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 16px solid var(--terracotta);
}
.archive-row[data-shape="square"] .row-shape { background: var(--bauhaus-yellow); }

.row-id {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--bauhaus-blue);
}

.row-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.04em;
  color: var(--ink-dark);
}

.row-tag {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--terracotta);
  text-align: right;
}

/* FOOTER */
.site-footer {
  background: var(--ink-dark);
  color: var(--cream-paper);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 96px);
  text-align: center;
}

.footer-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.footer-mark .shape { position: static; opacity: 1; animation: none; }

.footer-mark .small.circle { width: 24px; height: 24px; background: var(--bauhaus-blue); border-radius: 50%; }
.footer-mark .small.triangle {
  width: 0; height: 0;
  border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-bottom: 22px solid var(--bauhaus-yellow);
  background: transparent;
}
.footer-mark .small.square { width: 22px; height: 22px; background: var(--terracotta); }

.footer-line {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.footer-meta {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .archive-row {
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
  }
  .row-id { grid-column: 2; }
  .row-title { grid-column: 2; }
  .row-tag { grid-column: 2; text-align: left; }
}
