/* SpellFern studio site. System fonts only. No external requests. */
:root {
  --ink: #1d2a22;
  --ink-soft: #4b5a50;
  --forest: #1f3d2c;
  --fern: #3c7a4b;
  --fern-pale: #dbe6cf;
  --parch: #f5ecd7;
  --parch-deep: #ebdfc2;
  --paper: #fbf6ea;
  --rust: #b9532b;
  --rule: #cdbf9d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--parch);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(255, 252, 240, 0.9), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(205, 191, 157, 0.35), transparent 60%);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
a:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* Masthead */
.mast { border-bottom: 1px solid var(--rule); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--forest); }
.brand img { width: 40px; height: 40px; }
.brand span { font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.brand span i { font-style: italic; font-weight: 400; color: var(--fern); }
.mast nav { display: flex; gap: 1.1rem; font-family: var(--sans); font-size: .9rem; }
.mast nav a { text-decoration: none; color: var(--ink-soft); }
.mast nav a:hover { color: var(--rust); }

/* Hero */
.hero { padding: 2.5rem 0 2rem; }
.hero .wrap { display: grid; gap: 1.5rem; }
.kicker {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rust); margin: 0 0 .75rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 7.4vw, 4.4rem); line-height: 1.04; margin: 0 0 1.1rem;
  color: var(--forest); letter-spacing: -0.01em; font-weight: 700;
}
.hero h1 em { font-weight: 400; color: var(--fern); }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 34rem; margin: 0 0 1.5rem; }

.tiles { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.tiles li {
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--rule); border-bottom-width: 3px; border-radius: 6px;
  font-weight: 700; font-size: 1.1rem; color: var(--forest);
}
.tiles li:nth-child(2n) { transform: rotate(-3deg); }
.tiles li:nth-child(3n) { transform: rotate(2.5deg) translateY(2px); }
.tiles li.fern { background: var(--fern); color: var(--parch); border-color: var(--forest); }

.plate {
  position: relative; margin: 0; background: var(--paper);
  border: 1px solid var(--rule); padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 0 var(--rule), 6px 8px 0 -2px var(--parch-deep);
  max-width: 300px; justify-self: center; width: 100%;
}
.plate img { width: 78%; margin: 0 auto; }
.plate figcaption {
  font-size: .95rem; color: var(--ink-soft); border-top: 1px solid var(--rule);
  margin-top: .75rem; padding-top: .6rem; font-style: italic;
}
.plate figcaption b { font-style: normal; color: var(--rust); font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; margin-right: .4rem; }
.plate::before, .plate::after {
  content: ""; position: absolute; width: 54px; height: 16px; background: rgba(219, 230, 207, .85);
  border: 1px solid rgba(60, 122, 75, .25);
}
.plate::before { top: -8px; left: 22px; transform: rotate(-4deg); }
.plate::after { bottom: -8px; right: 24px; transform: rotate(3deg); }

/* Sections */
.section { padding: 2.5rem 0; }
.section-head { display: flex; align-items: baseline; gap: .9rem; border-bottom: 2px solid var(--forest); padding-bottom: .4rem; margin-bottom: 1.5rem; }
.section-head .num { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; color: var(--rust); text-transform: uppercase; white-space: nowrap; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 4.5vw, 2.4rem); color: var(--forest); line-height: 1.15; }
.section-intro { max-width: 40rem; color: var(--ink-soft); margin: 0 0 1.75rem; }

/* Game specimens */
.games { display: grid; gap: 1.5rem; }
.game {
  background: var(--paper); border: 1px solid var(--rule); padding: 1.25rem;
  display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto 1fr auto auto; gap: .25rem 1rem;
  position: relative;
}
.game .icon { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 2px 0 var(--rule); grid-row: span 2; }
.game h3 { margin: 0; font-size: 1.6rem; line-height: 1.15; color: var(--forest); align-self: end; }
.game .tag { margin: 0; font-style: italic; color: var(--fern); align-self: start; line-height: 1.35; }
.game .body { grid-column: 1 / -1; margin: .9rem 0 0; }
.game .body p { margin: 0 0 .75rem; }
.label {
  grid-column: 1 / -1; margin: .5rem 0 0; border: 1px solid var(--ink); font-family: var(--sans); font-size: .85rem;
  display: grid; grid-template-columns: max-content 1fr;
}
.label dt, .label dd { margin: 0; padding: .45rem .6rem; border-top: 1px solid var(--rule); }
.label dt:first-of-type, .label dt:first-of-type + dd { border-top: 0; }
.label dt { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--ink-soft); border-right: 1px solid var(--rule); padding-top: .6rem; }
.label dd a { font-weight: 600; }
.soon { display: inline-block; background: var(--fern-pale); color: var(--forest); border-radius: 999px; padding: 0 .55rem; font-size: .78rem; font-weight: 600; }
.game .play {
  grid-column: 1 / -1; justify-self: start; margin-top: 1rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--forest); color: var(--parch); padding: .7rem 1.1rem; border-radius: 6px;
  border-bottom: 3px solid #10241a;
}
.game .play:hover { background: var(--fern); color: #fff; }
.game .no { position: absolute; top: .9rem; right: 1rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; color: var(--rust); }

/* About */
.about { display: grid; gap: 2rem; }
.about .prose p { margin: 0 0 1rem; max-width: 38rem; }
.about .prose p:first-child::first-letter {
  float: left; font-size: 3.6rem; line-height: .9; padding: .3rem .12rem 0 0; color: var(--fern); font-weight: 700;
}
.aside {
  border-left: 3px solid var(--fern); padding: .25rem 0 .25rem 1rem; font-style: italic; color: var(--ink-soft); margin: 0;
}
.aside p { margin: 0 0 .6rem; }
.contact {
  background: var(--forest); color: var(--parch); padding: 1.5rem 1.25rem; margin-top: 2rem;
}
.contact h2 { margin: 0 0 .4rem; font-size: 1.5rem; }
.contact p { margin: 0; }
.contact a { color: #fff; text-decoration-color: #e8835a; }

/* Footer */
.foot { padding: 1.75rem 0 2.5rem; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.foot a { color: var(--ink-soft); }

/* Privacy page */
.doc { max-width: 44rem; padding-top: 2rem; padding-bottom: 2rem; }
.doc h1 { color: var(--forest); font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .25rem; line-height: 1.1; }
.doc h2 { color: var(--forest); font-size: 1.35rem; margin: 2rem 0 .5rem; }
.doc .meta { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin: 0 0 1.5rem; }
.doc ul { padding-left: 1.2rem; }

@media (min-width: 760px) {
  .wrap { padding: 0 2rem; }
  .hero { padding: 4rem 0 3rem; }
  .hero .wrap { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 3rem; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .plate { max-width: 420px; }
  .game { padding: 1.5rem; }
  .about { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .contact { padding: 2rem; }
  .tiles li { width: 2.5rem; height: 2.5rem; font-size: 1.3rem; }
}
@media (max-width: 420px) {
  .mast nav { gap: .8rem; font-size: .85rem; }
  .brand span { font-size: 1.25rem; }
  .brand img { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  .game .play { transition: background-color .15s; }
}
