@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&family=Archivo+Black&family=Cormorant+Garamond:wght@600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #111;
  --paper: #e9e7e0;
  --muted: #64625d;
  --line: rgba(17,17,17,.18);
  --font: 'Anuphan', sans-serif;
  --display: 'Archivo Black', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.55; }
a { color: inherit; text-decoration: none; }

.demo-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .55rem 1.25rem; background: #2f49ff; color: #fff;
}
.demo-bar strong { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.demo-bar__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.demo-bar a { border: 1px solid rgba(255,255,255,.45); padding: .35rem .75rem; font-size: .78rem; font-weight: 600; }
.demo-bar a.is-primary { background: #dfff00; border-color: #dfff00; color: #111; }

.wrap { width: min(100% - 2.5rem, 1120px); margin: 0 auto; padding: 4rem 0 5rem; }
.head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.eyebrow, .code { font-family: var(--mono); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { color: #2f49ff; margin-bottom: .75rem; }
.head h1 { font-family: var(--font); font-weight: 700; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.055em; }
.head > p:last-child { color: var(--muted); max-width: 38ch; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 6px 6px 0 var(--ink); }
.card__visual { position: relative; min-height: 300px; padding: 1.3rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.tag { align-self: flex-start; background: #fff; color: #111; padding: .28rem .55rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.card__visual strong { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.5rem); line-height: .86; letter-spacing: -.07em; }
.card__visual i { font-family: var(--mono); font-size: .64rem; font-style: normal; letter-spacing: .08em; }
.card__body { min-height: 250px; padding: 1.4rem; display: flex; flex-direction: column; border-top: 1px solid currentColor; }
.code { color: var(--muted); margin-bottom: .65rem; }
.card h2 { font-size: 1.4rem; letter-spacing: -.035em; margin-bottom: .55rem; }
.card__body > p:not(.code) { color: var(--muted); font-size: .92rem; flex: 1; }
.cta { margin-top: 1.4rem; font-weight: 700; }

.card--a .card__visual { background: #0c0c0c; color: #f8f6f0; }
.card--a .card__visual::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -35px; top: 70px; border: 18px solid #2f49ff; }
.card--a .card__visual strong { color: #dfff00; position: relative; z-index: 1; }
.card--b .card__visual { background: #f5f4ef; color: #161616; border-bottom: 14px solid #e83a2f; }
.card--b .tag { background: #e83a2f; color: #fff; }
.card--b .card__visual strong { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.card--c { background: #10251d; color: #f1eee6; border-color: #10251d; }
.card--c:hover { box-shadow-color: #b5965a; }
.card--c .card__visual { background: #10251d; color: #f1eee6; }
.card--c .tag { background: #b5965a; }
.card--c .card__visual strong { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -.03em; line-height: .92; color: #b5965a; }
.card--c .card__body { border-color: rgba(241,238,230,.22); }
.card--c .code, .card--c .card__body > p:not(.code) { color: rgba(241,238,230,.65); }
.card--c .cta { color: #b5965a; }

@media (max-width: 900px) {
  .head, .grid { grid-template-columns: 1fr; }
  .head { gap: 1rem; }
  .card__visual { min-height: 260px; }
}
