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

:root {
  --ink: #252820;
  --paper: #eae5d8;
  --muted: #68695f;
  --font: 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --display: 'Archivo Black', 'Anuphan', sans-serif;
}

* { 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: #183c2c; color: #fff;
}
.demo-bar strong, .eyebrow, .code { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.demo-bar__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.demo-bar a { border: 1px solid rgba(255,255,255,.38); padding: .35rem .75rem; font-size: .78rem; font-weight: 600; }
.demo-bar a.is-primary { background: #d4652f; border-color: #d4652f; }

.wrap { width: min(100% - 2.5rem, 1160px); margin: 0 auto; padding: 4.5rem 0 5rem; }
.head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 3rem; margin-bottom: 3.2rem; }
.eyebrow { color: #d4652f; margin-bottom: .8rem; }
.head h1 { font-family: var(--font); font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.06em; }
.head > p:last-child { color: var(--muted); max-width: 40ch; }
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.style { border: 1px solid var(--ink); background: #f6f2e8; transition: transform .25s ease, box-shadow .25s ease; }
.style:hover { transform: translateY(-5px); box-shadow: 6px 6px 0 var(--ink); }
.style__visual { position: relative; min-height: 315px; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.tag { align-self: flex-start; padding: .25rem .55rem; background: #fff; color: var(--ink); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; position: relative; z-index: 2; }
.style__visual p { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.06em; position: relative; z-index: 2; }
.style__visual strong { font-family: var(--display); font-size: 7rem; line-height: .8; letter-spacing: -.1em; position: relative; z-index: 1; }
.style__visual i { font-family: var(--mono); font-size: .62rem; font-style: normal; letter-spacing: .08em; position: relative; z-index: 2; }
.style__copy { min-height: 250px; display: flex; flex-direction: column; padding: 1.4rem; border-top: 1px solid currentColor; }
.code { color: var(--muted); margin-bottom: .65rem; }
.style__copy h2 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.035em; margin-bottom: .55rem; }
.style__copy > p:not(.code) { color: var(--muted); font-size: .92rem; flex: 1; }
.style__copy span { font-weight: 700; margin-top: 1.3rem; }

.style--a .style__visual { background: #eee9dc; color: #183c2c; border-bottom: 18px solid #d4652f; }
.style--a .style__visual::after { content: ''; position: absolute; inset: 66px 15px 35px 45%; opacity: .55; background: repeating-radial-gradient(ellipse at center,transparent 0,transparent 16px,#183c2c 17px,transparent 18px); }
.style--a .style__visual p { font-family: 'Fraunces', serif; letter-spacing: -.03em; }
.style--a .style__visual strong { color: #d4652f; }
.style--a .tag { border: 1px solid #183c2c; }

.style--b .style__visual { background: #1949ff; color: #fff; }
.style--b .style__visual::before { content: ''; position: absolute; width: 220px; height: 80px; background: #f7df34; right: -35px; top: 85px; transform: rotate(-13deg); }
.style--b .style__visual::after { content: ''; position: absolute; width: 135px; height: 135px; border-radius: 50%; background: #ff6235; left: 30px; bottom: 38px; }
.style--b .tag { background: #f7df34; }
.style--b .style__visual strong { color: #fff; mix-blend-mode: difference; }

.style--c { background: #0e1a16; color: #eee8db; border-color: #0e1a16; }
.style--c:hover { box-shadow: 6px 6px 0 #b87948; }
.style--c .style__visual { background: #0e1a16; color: #eee8db; border: 14px solid #24352e; }
.style--c .style__visual::after { content: '15.2194° N / 101.1800° E'; position: absolute; right: 1rem; top: 1rem; color: #b87948; font-family: var(--mono); font-size: .58rem; }
.style--c .style__visual p, .style--c .style__visual strong { font-family: 'Cormorant Garamond', serif; color: #b87948; letter-spacing: -.02em; }
.style--c .style__visual p { font-size: 2.1rem; }
.style--c .style__copy { border-color: rgba(238,232,219,.18); }
.style--c .code, .style--c .style__copy > p:not(.code) { color: rgba(238,232,219,.62); }
.style--c .style__copy span { color: #b87948; }

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