/* =========================================================================
   SORTALIS — the Dev Blog (`/blog`, `/blog/<slug>`), over site.css.
   =========================================================================
   The one page family on the site that sets the game's display face. Titles
   here are a few words at poster size, the job Jersey 25 does in the game;
   the prose stays in the system face site.css argues for. Covers are cut as
   rounded squares, the shape of a Card's art on the shelf. */

@font-face {
  font-family: 'Blog Display';
  src: url('/fonts/Jersey25.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Blog Fell';
  src: url('/fonts/IMFellEnglish.woff2') format('woff2');
  font-display: swap;
}

.blog {
  --font-display: 'Blog Display', var(--font-sans);
  --y3-rgb: 207 149 38;
  --v4-rgb: 68 83 111;
  --b1-rgb: 13 78 150;
  --radius: 22px;
  --ring: 0 0 0 var(--px) rgb(var(--v3-rgb) / .9);
  --lift: 0 18px 40px rgba(0, 0, 0, .45);
}
/* Floated Cards hang past the sheet; the page itself never scrolls sideways. */
.blog main { overflow-x: clip; }

.blog .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px;
  vertical-align: 3px;
  background: var(--y2);
}

/* ------------------------------------------------------------------ hero */
.bloghero {
  position: relative;
  padding: clamp(36px, 6vw, 80px) 0 clamp(30px, 4vw, 52px);
  text-align: center;
}
.bloghero__in { position: relative; z-index: 1; }
.bloghero__mark {
  display: block;
  width: min(260px, 56%);
  height: auto;
  margin: 0 auto clamp(4px, 1vw, 10px);
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .55));
}
.bloghero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(84px, 15vw, 184px);
  line-height: .8;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.bloghero__dev,
.bloghero__blog {
  display: inline-block;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
/* The wordmark's two halves: gold, then electric blue. `drop-shadow`, not
   `text-shadow`, which would paint over a clipped gradient. */
.bloghero__dev {
  background-image: linear-gradient(to bottom, var(--y5) 0%, var(--y4) 42%, var(--y3) 78%, var(--y2) 100%);
  filter: drop-shadow(0 6px 0 var(--v0)) drop-shadow(0 0 28px rgb(var(--y4-rgb) / .28));
}
.bloghero__blog {
  background-image: linear-gradient(to bottom, var(--b5) 0%, var(--b4) 46%, var(--b3) 80%, var(--b2) 100%);
  filter: drop-shadow(0 6px 0 var(--v0)) drop-shadow(0 0 28px rgb(var(--b3-rgb) / .3));
}
/* The rail's own parchment, sliced so its rolled ends never stretch. */
.bloghero__tag {
  display: inline-block;
  max-width: min(640px, 100%);
  margin: clamp(18px, 3vw, 30px) auto 0;
  padding: 14px clamp(34px, 6vw, 60px) 12px;
  border-style: solid;
  border-width: 14px 30px;
  border-image: url('/rail/banner.webp') 22 46 fill / 14px 30px stretch;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.05;
  color: var(--l1);
  text-wrap: balance;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5));
}

.bloghero__back {
  position: absolute;
  top: 50%;
  width: clamp(120px, 12vw, 176px);
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .6));
  animation: blog-float 7s ease-in-out infinite;
}
.bloghero__back--l { left: calc(50% - min(46vw, 620px)); --r: -13deg; }
.bloghero__back--r { right: calc(50% - min(46vw, 620px)); --r: 11deg; animation-delay: -3.5s; }
@keyframes blog-float {
  0%, 100% { transform: translateY(-50%) rotate(var(--r)); }
  50% { transform: translateY(calc(-50% - 12px)) rotate(calc(var(--r) * .8)); }
}
@media (max-width: 899px) { .bloghero__back { display: none; } }

/* ------------------------------------------------------------------ feed */
.blogfeed { padding-bottom: clamp(8px, 2vw, 20px); }
.feed__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(18px, 2.4vw, 28px);
}
.feed__empty { text-align: center; color: var(--ink-dim); margin-inline: auto; }

/* ------------------------------------------------------------------ tile */
/* The title's link covers the whole tile; the painted button is its picture. */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
  background: rgb(var(--v1-rgb) / .82);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--ring), var(--lift);
  backdrop-filter: blur(6px);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s linear;
}
.tile:hover,
.tile:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 0 0 var(--px) rgb(var(--y4-rgb) / .7), 0 24px 52px rgba(0, 0, 0, .55), 0 0 44px rgb(var(--y4-rgb) / .16);
}
.tile__cover {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--v0);
  box-shadow: 0 0 0 2px var(--v0), 0 0 0 3px rgb(var(--y3-rgb) / .5), 0 10px 22px rgba(0, 0, 0, .45);
}
.tile__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.tile:hover .tile__cover img,
.tile:focus-within .tile__cover img { transform: scale(1.05); }
.tile__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 12px 1px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--v0);
  background: linear-gradient(to bottom, var(--y5), var(--y4) 50%, var(--y3));
  box-shadow: 0 2px 0 var(--y1), 0 4px 10px rgba(0, 0, 0, .5);
}
.tile__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 6px 6px;
}
.tile__meta {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tile__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: .98;
  letter-spacing: .005em;
  text-wrap: balance;
}
.tile__link { color: var(--n7); text-decoration: none; }
.tile__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.tile:hover .tile__link { color: var(--y5); }
.tile__link:focus-visible { outline: none; }
.tile:has(.tile__link:focus-visible) { outline: 2px solid var(--y4); outline-offset: 3px; }
.tile__dek { margin: 0; color: var(--n6); line-height: 1.45; }
.tile__excerpt { margin: 0; color: var(--ink-dim); font-size: .94em; }
.tile__go { margin-top: auto; min-height: 46px; padding: 10px 30px; }

.tile--feature { padding: clamp(14px, 1.8vw, 22px); }
.tile--feature .tile__title { font-size: clamp(40px, 5vw, 68px); line-height: .92; }
.tile--feature .tile__dek { font-size: clamp(17px, .6vw + 14px, 21px); }
.tile--feature .tile__go { margin-top: 8px; padding-inline: 40px; }
@media (min-width: 820px) {
  .tile--feature {
    display: grid;
    grid-template-columns: minmax(0, 46%) 1fr;
    align-items: center;
    gap: clamp(24px, 3.4vw, 48px);
  }
  .tile--feature .tile__body { gap: 14px; padding-right: clamp(6px, 2vw, 24px); }
}

/* ------------------------------------------------------------------ soon */
.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(18px, 2.4vw, 28px);
  padding: 18px clamp(18px, 2.6vw, 30px);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(100deg, rgb(var(--b1-rgb) / .5), rgb(var(--v1-rgb) / .82) 60%);
  box-shadow: 0 0 0 var(--px) rgb(var(--b2-rgb) / .7), var(--lift);
  backdrop-filter: blur(6px);
}
.soon__card {
  flex: 0 0 auto;
  width: 58px;
  height: auto;
  transform: rotate(-8deg);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
.soon__copy { flex: 1 1 300px; }
.soon__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1;
  color: var(--b5);
}
.soon__p { margin: 6px 0 0; color: var(--ink-dim); font-size: .94em; }
.soon__go { flex: 0 0 auto; }
@media (max-width: 599px) {
  .soon__go { flex: 1 1 100%; }
}

/* --------------------------------------------------------- call to play */
.playcta {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: clamp(440px, 46vw, 560px);
  margin: clamp(28px, 5vw, 56px) 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 0 0 var(--px) rgb(var(--y3-rgb) / .55), 0 24px 60px rgba(0, 0, 0, .55);
  text-align: center;
}
.playcta__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.playcta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 78%, rgb(var(--v0-rgb) / .55), transparent 80%),
    linear-gradient(to top, rgb(var(--v0-rgb) / .96) 0%, rgb(var(--v0-rgb) / .8) 42%, rgb(var(--v0-rgb) / .15) 78%);
}
.playcta__in {
  display: grid;
  justify-items: center;
  padding: clamp(28px, 5vw, 52px) clamp(16px, 4vw, 40px);
}
.playcta .eyebrow { margin-bottom: 8px; color: var(--y4); text-shadow: 0 2px 6px rgba(0, 0, 0, .9); }
.playcta__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 76px);
  line-height: .9;
  color: var(--n7);
  filter: drop-shadow(0 5px 0 var(--v0));
  text-wrap: balance;
}
.playcta__p { margin: 10px auto 22px; color: var(--n6); text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.playcta .badges { margin-top: clamp(16px, 2vw, 22px); }
@media (max-width: 599px) {
  /* The figure fills a phone's frame, so the copy gets a darker veil. */
  .playcta::before {
    background: linear-gradient(to top, rgb(var(--v0-rgb) / .96) 0%, rgb(var(--v0-rgb) / .86) 62%, rgb(var(--v0-rgb) / .45) 100%);
  }
  .playcta .badges { gap: 8px; }
  .playcta .badge img { height: 40px; }
}

/* --------------------------------------------------------------- article */
.post { padding-top: clamp(18px, 3vw, 32px); }
.post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}
.post__back::before { content: '\2190'; font-size: 1.3em; letter-spacing: 0; color: var(--y3); }
.post__back:hover { color: var(--n7); }

.post__head {
  max-width: 920px;
  margin: clamp(8px, 2vw, 20px) auto 0;
  text-align: center;
}
.post__head .eyebrow { margin-bottom: 10px; }
.post__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 7.4vw, 104px);
  line-height: .88;
  letter-spacing: .005em;
  text-wrap: balance;
  color: transparent;
  background: linear-gradient(to bottom, var(--y5) 0%, var(--y4) 45%, var(--y3) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 5px 0 var(--v0)) drop-shadow(0 0 30px rgb(var(--y4-rgb) / .2));
  padding-bottom: .06em;
}
.post__dek {
  max-width: 44ch;
  margin: clamp(14px, 2vw, 22px) auto 0;
  font-size: clamp(18px, .7vw + 15px, 23px);
  line-height: 1.45;
  color: var(--n6);
  text-wrap: balance;
}
.post__by {
  max-width: none;
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.post__by strong { color: var(--n7); }

.post__cover {
  max-width: 1040px;
  margin: clamp(24px, 4vw, 44px) auto 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--v0);
  box-shadow: 0 0 0 2px var(--v0), 0 0 0 3px rgb(var(--y3-rgb) / .55), 0 24px 60px rgba(0, 0, 0, .55);
}
.post__cover img { display: block; width: 100%; height: auto; aspect-ratio: 1389 / 642; object-fit: cover; }

/* The sheet the article is printed on, so prose never reads over the moving ground. */
.post__sheet {
  --pad: clamp(20px, 5.4vw, 64px);
  position: relative;
  max-width: 800px;
  margin: clamp(-36px, -3vw, -16px) auto 0;
  padding: calc(var(--pad) + 6px) var(--pad) var(--pad);
  background: rgb(var(--v0-rgb) / .9);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 0 0 var(--px) rgb(var(--v3-rgb) / .8), 0 30px 70px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
}
.post__sheet:has(> .prose:empty),
.post--missing .post__sheet,
.post--missing .post__cover { display: none; }
.post--missing .post__title { margin-top: 24px; }

/* ----------------------------------------------------------------- prose */
.prose {
  font-size: clamp(17px, .35vw + 15.6px, 19px);
  line-height: 1.72;
  color: var(--n6);
}
.prose::after { content: ''; display: block; clear: both; }
.prose p { max-width: none; margin: 0 0 1.15em; }
.prose strong { color: var(--n7); }
.prose em { color: var(--n7); }
.prose a { color: var(--b4); }

/* The first paragraph opens on a drop cap in the game's engraved face. */
.prose > p:first-child { font-size: 1.1em; color: var(--n7); }
.prose > p:first-child::first-letter {
  float: left;
  margin: .02em .14em 0 0;
  font-family: 'Blog Fell', Georgia, serif;
  font-size: 4.3em;
  line-height: .82;
  color: var(--y4);
  text-shadow: 0 3px 0 var(--v0), 0 0 22px rgb(var(--y4-rgb) / .35);
}

.prose h2,
.prose h3 {
  /* Beside a float the heading moves over whole, never one line indented. */
  display: flow-root;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--b5);
  text-shadow: 0 3px 0 var(--v0);
}
.prose h2 { margin: 1.5em 0 .45em; font-size: clamp(34px, 3.4vw, 46px); line-height: .95; }
.prose h3 { margin: 1.3em 0 .4em; font-size: clamp(26px, 2.4vw, 32px); line-height: 1; color: var(--n7); }
.prose h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 14px;
  vertical-align: .2em;
  background: var(--y4);
  box-shadow: 0 3px 0 var(--v0);
}

.prose blockquote {
  clear: both;
  position: relative;
  margin: 1.8em 0;
  padding: 1.1em clamp(8px, 3vw, 36px) 1em;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.02;
  color: var(--y4);
  text-wrap: balance;
  text-shadow: 0 4px 0 var(--v0);
  background: radial-gradient(70% 90% at 50% 50%, rgb(var(--y4-rgb) / .08), transparent 70%);
  border-block: 2px solid rgb(var(--y3-rgb) / .45);
}
.prose blockquote::before {
  content: '\201C';
  display: block;
  height: .42em;
  font-size: 2.6em;
  line-height: .9;
  color: var(--b4);
}

.prose hr {
  clear: both;
  height: 8px;
  margin: 2.4em auto;
  border: 0;
  background:
    linear-gradient(var(--y3), var(--y3)) center / 8px 8px no-repeat,
    linear-gradient(to right, transparent, rgb(var(--v4-rgb) / .9), transparent) center / 100% 2px no-repeat;
}

.prose ul,
.prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin: .25em 0; padding-left: .2em; }
.prose ul > li::marker { content: '\25C6  '; color: var(--y3); font-size: .8em; }
.prose ol > li::marker { color: var(--y4); font-weight: 700; }

/* A table scrolls inside its own box, so a phone never scrolls the page sideways. */
.prose .table-scroll {
  clear: both;
  margin: 0 0 1.4em;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 var(--px) rgb(var(--v3-rgb) / .9);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.45; }
.prose th,
.prose td { padding: 9px 14px; text-align: left; vertical-align: top; }
.prose th {
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--y4);
  background: rgb(var(--v3-rgb) / .55);
  white-space: nowrap;
}
.prose tbody tr:nth-child(even) { background: rgb(var(--v3-rgb) / .22); }
.prose td { border-top: 1px solid rgb(var(--v4-rgb) / .5); }

/* A link into the Wiki; one naming a page that is not there is struck, not hidden. */
.prose a.wikilink { color: var(--b4); text-decoration-style: dotted; text-underline-offset: 3px; }
.prose a.wikilink:hover { color: var(--b5); text-decoration-style: solid; }
.prose a.wikilink--missing { color: var(--r4, #e2675b); text-decoration-line: line-through; }

/* A Card in the column: the game's own playing card (`site/blog/cards.js`). */
.post-card {
  --post-card-w: 272px;
  --tilt: 0deg;
  width: var(--post-card-w);
  min-height: calc(var(--post-card-w) * 1.4);
  margin: .4em auto 1.6em;
  clear: both;
  transform: rotate(var(--tilt));
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55));
}
.post-card--left { float: left; clear: left; --tilt: -2.5deg; margin: .35em 2.2em 1.2em 0; }
.post-card--right { float: right; clear: right; --tilt: 2.5deg; margin: .35em 0 1.2em 2.2em; }
.post-card--center { --tilt: 0deg; }

/* Wide screens: the Cards hang past the sheet's edge, like clippings pinned over a page. */
@media (min-width: 1120px) {
  .post-card--left { margin-left: calc(var(--pad) * -1 - 56px); }
  .post-card--right { margin-right: calc(var(--pad) * -1 - 56px); }
}
@media (max-width: 899px) {
  .post-card { --post-card-w: 236px; }
}
/* Phones: a float would leave a word or two a line, so the Cards stand in the column. */
@media (max-width: 679px) {
  .post-card,
  .post-card--left,
  .post-card--right {
    --post-card-w: min(250px, 70vw);
    float: none;
    margin: 1.2em auto 1.6em;
  }
}

.post-img { clear: both; margin: 2em 0; }
.post-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 0 2px var(--v0), 0 0 0 3px rgb(var(--v3-rgb) / .9), var(--lift);
}
.post-img figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: .82em;
  color: var(--ink-faint);
}
@media (min-width: 680px) {
  .post-img--left { float: left; width: 46%; margin: .35em 2em 1em 0; clear: none; }
  .post-img--right { float: right; width: 46%; margin: .35em 0 1em 2em; clear: none; }
}

/* -------------------------------------------------------------- more */
.more { padding-bottom: clamp(40px, 6vw, 72px); }
.more__h {
  margin-bottom: clamp(16px, 2vw, 24px);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: .95;
  color: var(--n7);
  text-shadow: 0 4px 0 var(--v0);
}
.more__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.more__pair:empty, .more__strip:empty { display: none; }
.pairlink {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: rgb(var(--v1-rgb) / .82);
  box-shadow: var(--ring), var(--lift);
  color: var(--n7);
  text-decoration: none;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s linear;
}
.pairlink:hover, .pairlink:focus-visible {
  color: var(--y5);
  transform: translateY(-3px);
  box-shadow: 0 0 0 var(--px) rgb(var(--y4-rgb) / .7), var(--lift);
}
.pairlink--newer { flex-direction: row-reverse; text-align: right; grid-column: 2; }
.pairlink__thumb {
  flex: 0 0 auto;
  width: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 0 2px var(--v0), 0 0 0 3px rgb(var(--y3-rgb) / .5);
}
.pairlink__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pairlink__copy { display: grid; gap: 4px; min-width: 0; }
.pairlink__k {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pairlink--older .pairlink__k::before { content: '\2190  '; color: var(--y3); }
.pairlink--newer .pairlink__k::after { content: '  \2192'; color: var(--y3); }
.pairlink__t { font-family: var(--font-display); font-size: 24px; line-height: 1; text-wrap: balance; }
@media (max-width: 599px) {
  .more__pair { grid-template-columns: 1fr; }
  .pairlink--newer { grid-column: auto; }
}
.more__strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: 20px;
}
.more__strip > .soon { grid-column: 1 / -1; margin-top: 0; }
.more__all { max-width: none; margin: clamp(22px, 3vw, 32px) 0 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .bloghero__back { animation: none; transform: translateY(-50%) rotate(var(--r)); }
  .tile:hover, .tile:focus-within, .pairlink:hover { transform: none; }
}
