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

:root {
  --ink: #14201a;
  --paper: #eef2ee;
  --muted: #6a7870;
  --line: rgba(20, 32, 26, .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: var(--ink); 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,.35); padding: .35rem .75rem; font-size: .78rem; font-weight: 600; }
.demo-bar a.is-primary { background: #c45c26; border-color: #c45c26; color: #fff; }

.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: #c45c26; 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(2, 1fr); gap: 1rem; }
.style { border: 1px solid var(--ink); background: #f7faf7; 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: #14201a; color: #f7faf7; border-bottom: 18px solid #c45c26; }
.style--a .style__visual::after { content: ''; position: absolute; inset: 70px 18px 40px 42%; border: 1px solid #c45c26; opacity: .6; }
.style--a .style__visual p { font-family: 'Fraunces', serif; letter-spacing: -.03em; }
.style--a .style__visual strong { color: #c45c26; }
.style--a .tag { border: 1px solid #f7faf7; }

.style--b .style__visual { background: #0f1f2e; color: #f7faf7; }
.style--b .style__visual::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 24px solid #2d8fa8; right: -40px; top: 70px; }
.style--b .style__visual::after { content: ''; position: absolute; width: 120%; height: 8px; background: #c9a87c; left: -10%; bottom: 46px; transform: rotate(-3deg); }
.style--b .style__visual strong { color: #2d8fa8; }
.style--b .style__visual p { color: #c9a87c; }
.style--b .tag { background: #2d8fa8; color: #fff; }
.style--b .style__copy span { color: #0f1f2e; }

.style--c { background: #fffdf5; color: #2d2216; border-color: #2d2216; }
.style--c:hover { box-shadow: 6px 6px 0 #c9a548; }
.style--c .style__visual { background: #fffdf5; color: #2d2216; border: 14px solid #f3e5ab; }
.style--c .style__visual::after { content: '☀️ SUNNY LIGHT'; position: absolute; right: 1rem; top: 1rem; color: #c9a548; font-family: var(--mono); font-size: .58rem; }
.style--c .style__visual p { color: #c9a548; }
.style--c .style__visual strong { color: #2d2216; }
.style--c .style__copy { border-color: rgba(45,34,22,.18); }
.style--c .style__copy span { color: #6b4e0a; }

.style--d { background: #f7f4ec; color: #2a2622; border-color: #2a2622; }
.style--d:hover { box-shadow: 6px 6px 0 #6f8f6a; }
.style--d .style__visual {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(111, 143, 106, 0.28), transparent 55%),
    #f7f4ec;
  color: #2a2622;
  border-bottom: 18px solid #c9971a;
}
.style--d .style__visual::after {
  content: 'DAYLIGHT · BOOK';
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #6f8f6a;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
}
.style--d .style__visual p { color: #c9971a; }
.style--d .style__visual strong { color: #6f8f6a; }
.style--d .style__copy { border-color: rgba(42, 38, 34, .16); }
.style--d .style__copy span { color: #6f8f6a; }

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