:root {
  --ink: #120e0b;
  --ink-2: #1c1612;
  --parch: #efe3c8;
  --parch-dim: #cbbd9e;
  --copper: #c27a3a;
  --copper-hi: #e9a865;
  --blood: #8b2c22;
  --display: "IM Fell English SC", "Georgia", serif;
  --serif: "IM Fell English", "Georgia", serif;
  --sans: "Alegreya Sans", "Trebuchet MS", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--parch);
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
/* paper grain + warm vignette */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(194,122,58,.16), transparent 55%),
    radial-gradient(ellipse at 110% 60%, rgba(139,44,34,.14), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: normal; color: var(--copper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }

/* header */
.top {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem;
}
.mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.5rem; letter-spacing: .02em; }
.mark-img { height: 40px; width: auto; }
nav { display: flex; gap: 1.6rem; align-items: center; }
nav a { text-decoration: none; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--parch-dim); transition: color .2s; }
nav a:hover { color: var(--parch); }
.nav-cta { color: var(--ink) !important; background: var(--copper); padding: .45rem 1rem; border-radius: 2px; }
.nav-cta:hover { background: var(--copper-hi); }

/* type */
.kicker { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--copper); margin-bottom: 1rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(3rem, 7.5vw, 6.2rem); }
h1 i { font-family: var(--serif); font-style: italic; color: var(--copper-hi); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 18ch; }
h3 { font-size: 1.6rem; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 700 .95rem var(--sans); letter-spacing: .1em; text-transform: uppercase;
  background: var(--copper); color: var(--ink);
  border: 1px solid var(--copper); padding: .95rem 1.6rem; border-radius: 2px;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--copper-hi); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(194,122,58,.7); }
.btn.ghost { background: transparent; color: var(--parch); border-color: rgba(239,227,200,.35); }
.btn.ghost:hover { border-color: var(--parch); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: wait; }

/* hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  min-height: 82vh;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem;
  padding: 3rem 1.5rem 5rem;
}
.lede { font-size: 1.25rem; color: var(--parch-dim); max-width: 34ch; margin-top: 1.6rem; }
.hero-die { position: relative; justify-self: center; width: min(420px, 80vw); aspect-ratio: 1; }
.hero-die img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 2; box-shadow: 0 40px 80px -30px #000; }
.d20 { width: 100%; height: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(194,122,58,.25)); animation: tumble 14s ease-in-out infinite; }
@keyframes tumble { 0%,100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-14px); } }

.rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d) * .14s + .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* lines */
.lines, .workshop { max-width: var(--max); margin: 0 auto; padding: 5rem 1.5rem; }
.section-head { margin-bottom: 3rem; border-top: 1px solid rgba(239,227,200,.14); padding-top: 2.5rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  text-decoration: none; background: var(--ink-2);
  border: 1px solid rgba(239,227,200,.08);
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.card:hover { transform: translateY(-6px) rotate(-.4deg); border-color: rgba(194,122,58,.5); }
.swatch {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, var(--c) 0%, transparent 38%),
    radial-gradient(circle at 75% 70%, var(--b) 0%, transparent 55%),
    linear-gradient(135deg, var(--a), var(--b) 60%, var(--a));
}
.swatch::after { /* resin swirl texture */
  content: ""; position: absolute; inset: -20%;
  background: repeating-radial-gradient(circle at 60% 40%, rgba(255,255,255,.06) 0 2px, transparent 2px 14px);
  mix-blend-mode: overlay; transition: transform 1.2s;
}
.card:hover .swatch::after { transform: rotate(12deg) scale(1.05); }
.swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.card-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body p { color: var(--parch-dim); font-size: 1rem; }
.price { margin-top: auto; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-hi); }
.card.wide { grid-column: span 3; flex-direction: row; }
.card.wide .swatch { flex: 1.2; aspect-ratio: auto; min-height: 260px; }
.card.wide .card-body { flex: 1; justify-content: center; padding: 2rem 2.4rem; }
.card.wide h3 { font-size: 2.2rem; }

/* canvas */
.canvas {
  max-width: var(--max); margin: 0 auto; padding: 5rem 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.canvas-img {
  aspect-ratio: 2/3; max-height: 560px; justify-self: end; width: 100%; max-width: 380px;
  background: linear-gradient(180deg, #e9a865 0%, #b9502c 38%, #4a2234 70%, #1c1420 100%);
  border: 12px solid #2a211a; box-shadow: 0 30px 60px -20px #000, inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative; transform: rotate(-2deg); overflow: hidden;
}
.canvas-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.canvas-copy p { color: var(--parch-dim); margin-top: 1.2rem; max-width: 40ch; }
.text-link { display: inline-block; margin-top: 1.6rem; color: var(--copper-hi); text-decoration: none; border-bottom: 1px solid currentColor; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }

/* workshop */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: s; }
.steps span { font-family: var(--display); color: var(--copper); font-size: 1.1rem; display: block; margin-bottom: .6rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--parch-dim); font-size: 1rem; }
.signoff { margin-top: 3.5rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; max-width: 52ch; color: var(--parch); }

/* list */
.list { padding: 5rem 1.5rem 6rem; }
.list-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--parch); color: var(--ink);
  padding: 3.5rem 2.5rem; position: relative;
  box-shadow: 0 30px 60px -25px #000;
}
.list-inner::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(18,14,11,.25); pointer-events: none; }
.list-inner h2 { margin: 0 auto; }
.list-inner p { margin: 1rem auto 0; max-width: 46ch; color: #4a3d30; }
#signup { display: flex; gap: .7rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; position: relative; }
#signup input[type=email] {
  flex: 1 1 260px; max-width: 360px; padding: .95rem 1rem;
  font: 1rem var(--sans); background: #fffaf0; color: var(--ink);
  border: 1px solid #a8977a; border-radius: 2px;
}
#signup input:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.form-msg { min-height: 1.6em; font-weight: 700; }

/* footer */
footer { text-align: center; padding: 3rem 1.5rem 3.5rem; border-top: 1px solid rgba(239,227,200,.1); color: var(--parch-dim); }
.foot-mark { font-family: var(--display); font-size: 1.8rem; color: var(--parch); margin-bottom: .4rem; }
.foot-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }
.foot-links a { text-decoration: none; border-bottom: 1px solid rgba(194,122,58,.5); }
.fine { font-size: .85rem; opacity: .7; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 1rem; text-align: left; }
  .hero-die { width: min(300px, 70vw); order: -1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; flex-direction: column; }
  .card.wide .swatch { min-height: 220px; }
  .canvas { grid-template-columns: 1fr; gap: 2.5rem; }
  .canvas-img { justify-self: center; max-width: 300px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav a:not(.nav-cta) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .list-inner { padding: 2.8rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .d20 { animation: none; opacity: 1; transform: none; }
  .card, .btn { transition: none; }
}
