/* allegedteamwork.com: one stylesheet, no build step, no external requests.
   ---------------------------------------------------------------------------
   The look is the game's own interface (client/ui.gd), so the pages read as the game
   rather than as a generic landing page:

     the ground   light sand laid in courses, like the blocks of a pyramid. Light on purpose:
                  the Alleged Teamwork logo is a black horse that vanishes on a dark ground.
     the card     the game's paper card: cream to wheat, an ink frame, round corners
                  (ui.gd STYLES.paper).
     the HUD      the game's ink cards with paper and gold lettering, for facts and readouts.
     keys         the game's gold button (STYLES.gold: #ffd866 to #ffab1f) with an ink rim and
                  an ink skirt under it; cream keys for the second choice.
     the title    the whole name in the game's title face (Cinzel Decorative Black, renamed
                  "Pyramid Title" in the subset, see make_assets.mjs), gold with an ink rim, its
                  second part on the red strip every capsule carries.
     type         Fredoka, the game's interface face, for everything else.
     the plate    a deeper clay band in the same courses, where the title stands on its own:
                  the game page's hero and the top of the home page's game card. No game
                  picture is on the site until the art backlog's S4 set (the new characters)
                  lands (README.md, "The pictures"); the plate is not a stand-in for one, it
                  is the design until then.
   Colours are ui.gd's: INK #2a1c1c, PAPER #fff4d6, GOLD #ffc53d, LAPIS #23498f,
   TEAL #18b8ab, RED #e8483a.
   --------------------------------------------------------------------------- */

@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Pyramid Title"; src: url("/assets/fonts/pyramid-title.woff2") format("woff2");
  font-weight: 400 900; font-display: swap; }

:root {
  --ink:        #2a1c1c;
  --ink-soft:   #6a4a2c;   /* ui.gd INK_SOFT (#7a5a3a), a step darker so small text keeps 4.5:1 on sand */
  --paper:      #fff4d6;
  --paper-top:  #fff6dc;
  --paper-bot:  #f3dca6;
  --cream-top:  #fffdf4;
  --cream-bot:  #f1dcab;
  --trough:     #d9c49a;
  --gold:       #ffc53d;
  --gold-top:   #ffd866;
  --gold-bot:   #ffab1f;
  --gold-dk:    #f09a1a;
  --lapis:      #23498f;
  --teal:       #18b8ab;
  --teal-dk:    #0d8f86;
  --red:        #e8483a;
  --red-dk:     #b8302a;
  --leaf:       #3fae5a;

  --sand:       #ecd5aa;   /* the ground (make_assets.mjs SAND paints the icons' plate the same) */
  --clay:       #e3bd86;   /* the plate: the same ground a course deeper */
  --joint:      rgba(140, 96, 48, .17);
  --hud:        rgba(42, 28, 28, .95);
  /* The block courses, 60 px high, each joint offset half a block from the course below. */
  --courses: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120'%3E%3Cpath d='M0 1h160M0 61h160M1 0v60M81 60v60' fill='none' stroke='%238c6030' stroke-opacity='.13' stroke-width='2'/%3E%3C/svg%3E");

  --wrap: 1120px;
  --ui: "Fredoka", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --title: "Pyramid Title", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The ground: block courses 60 px high, each joint offset half a block from the course below. */
body {
  margin: 0;
  color: var(--ink);
  font: 400 18px/1.6 var(--ui);
  background-color: var(--sand);
  background-image: var(--courses);
  background-size: 160px 120px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--red); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--lapis); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--ui); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; }
.skip:focus { left: 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 14px; }

/* ---------------- the toolbar (site nav) ---------------- */
.bar-holder { position: sticky; top: 0; z-index: 10; padding: 12px 16px; display: flex; justify-content: center;
  pointer-events: none; }
.bar { pointer-events: auto; display: flex; align-items: stretch; max-width: 100%;
  background: linear-gradient(var(--cream-top), var(--cream-bot)); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink); font: 600 16px/1 var(--ui); overflow: hidden; }
.bar > a, .bar > span { display: flex; align-items: center; gap: 9px; padding: 10px 16px; color: var(--ink);
  text-decoration: none; white-space: nowrap; }
.bar > * + * { border-left: 2px solid rgba(42, 28, 28, .18); }
.bar > a:hover { background: var(--paper); }
.bar > a[aria-current="page"] { background: var(--gold); }
.bar > a.on { background: linear-gradient(var(--gold-top), var(--gold-bot)); }
.bar > .soon { color: var(--ink-soft); font-weight: 500; }
.bar .horse { width: 30px; height: auto; }

/* ---------------- keys (buttons) ---------------- */
.keys { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.key { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px 11px;
  font: 700 18px/1.1 var(--ui); color: var(--ink); text-decoration: none; letter-spacing: .01em;
  background: linear-gradient(var(--cream-top), var(--cream-bot)); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 0 5px 0 var(--ink); cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease; }
.key:hover { background: linear-gradient(#fffef9, #f6e5bd); }
.key:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.key.go { background: linear-gradient(var(--gold-top), var(--gold-bot)); }
.key.go:hover { background: linear-gradient(#ffe07f, #ffb93d); }
.key.small { min-height: 40px; padding: 7px 15px 6px; font-size: 15px; border-radius: 11px; box-shadow: 0 3px 0 var(--ink); }
.key.small:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
/* "Coming soon to Steam": a key with nothing behind it yet, so it is drawn flat and dashed,
   the way the game draws a slot that is not open. */
.key.soon { background: rgba(255, 244, 214, .7); border-style: dashed; box-shadow: none; cursor: default;
  color: var(--ink-soft); font-weight: 600; }
.key.soon:hover { background: rgba(255, 244, 214, .7); }
.key.soon:active { transform: none; }

/* ---------------- cards ---------------- */
.card { background: linear-gradient(var(--paper-top), var(--paper-bot)); border: 3px solid var(--ink);
  border-radius: 18px; box-shadow: 0 7px 0 rgba(42, 28, 28, .85); }
.hud { background: var(--hud); color: var(--paper); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 0 6px 0 rgba(42, 28, 28, .45); }
.label { display: block; font: 600 12px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.value { display: block; margin-top: 6px; font: 600 clamp(17px, 2vw, 21px)/1.2 var(--ui); color: var(--paper); }

/* ---------------- the title ---------------- */
/* The whole name as text, always (owner, 2026-11-21): the first part large in gold, the second
   on its own line on the red strip, as on the capsules. The ink rim is a stroke painted under
   the gold (paint-order: every current browser), and the drop under the letters a shadow. */
.title { margin: 0; font-family: var(--title); font-weight: 900; text-align: center; line-height: 1.02; letter-spacing: .02em; }
.title .t1 { display: block; color: var(--gold); font-size: clamp(32px, 5.4vw, 68px);
  -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: 0 .09em 0 var(--ink); }
.title .t2 { display: inline-block; margin-top: .55em; padding: .32em .85em .38em; color: var(--paper); background: var(--red);
  border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink);
  font-size: clamp(14px, 2.1vw, 25px); line-height: 1.15; letter-spacing: .02em; }
/* "Lousy T-Shirt" never splits at its hyphen, in the title or wherever the name is written. */
.nb { white-space: nowrap; }
.title.small .t1 { font-size: clamp(26px, 3.4vw, 40px); }
.title.small .t2 { font-size: clamp(12px, 1.3vw, 16px); border-width: 2px; box-shadow: 0 3px 0 var(--ink); }

/* ---------------- the plate: the title on its own ground ---------------- */
/* The courses again, on a deeper clay, lit from behind the title, with an ink rule under it.
   Used by the game page's hero and the top of the home page's game card. */
.plate { background-color: var(--clay);
  background-image: radial-gradient(ellipse 60% 70% at 50% 46%, rgba(255, 246, 220, .62), rgba(255, 246, 220, 0) 72%), var(--courses);
  background-size: auto, 160px 120px; background-position: center, center top;
  border-bottom: 3px solid var(--ink); text-align: center; }

/* ---------------- the game page ---------------- */
/* The hero is the title block on the plate. The toolbar floats over its top (the negative
   margin is a little more than the toolbar's height, so no sand shows above it). */
.hero { position: relative; margin-top: -92px; padding: 150px 0 92px; }
.hero .lede { margin: 30px auto 0; font-size: 21px; }
.hero .keys { justify-content: center; margin-top: 30px; }

/* No last word alone on a line, where the browser can help it. */
.lede, .beat p, .slot { text-wrap: pretty; }
.lede { font-size: 20px; max-width: 40em; }
/* The readout overlaps the plate's lower edge, as the HUD sits over the game's ground. */
.readout { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px;
  max-width: 980px; margin: -42px auto 0; }
.readout > div { background: rgba(255, 244, 214, .06); border: 1px solid rgba(255, 244, 214, .14); border-radius: 9px; padding: 10px 14px 12px; }

.section { padding: 76px 0 0; }
.h-sec { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; letter-spacing: .02em; }
/* Three blocks of the game's colours over each heading. */
.h-sec::before { content: ""; display: block; width: 66px; height: 18px; margin-bottom: 14px;
  background:
    linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 24px, var(--teal) 24px 42px, transparent 42px 48px, var(--red) 48px 66px);
  filter: drop-shadow(0 3px 0 var(--ink)); }
.intro { text-align: center; }
.intro .lede { margin-inline: auto; }
.intro .lede b { font-size: 1.12em; }

/* What happens on the worksite: one paper card per beat, two to a row. */
.beats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 64px; }
.beat { padding: 28px 30px 12px; }
.beat .h-sec { font-size: clamp(22px, 2.4vw, 28px); }
.beat p { max-width: 34em; }

.frame { margin: 0; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--ink);
  box-shadow: 0 7px 0 rgba(42, 28, 28, .85); }
.frame img { width: 100%; }
.note { font-size: 15px; color: var(--ink-soft); margin: 12px 2px 0; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 12px 0 12px 34px; border-top: 2px solid var(--joint); position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 16px; height: 16px;
  background: var(--c, var(--gold)); border: 2px solid var(--ink); border-radius: 4px; }
.feature-list li:nth-child(4n+1) { --c: var(--gold); } .feature-list li:nth-child(4n+2) { --c: var(--teal); }
.feature-list li:nth-child(4n+3) { --c: var(--red); } .feature-list li:nth-child(4n+4) { --c: #6f93d6; }

/* The game page's feature list runs in two columns: it is twelve lines long. */
.feature-list.cols { columns: 2; column-gap: 48px; }
.feature-list.cols li { break-inside: avoid; }
.sys { padding: 22px 26px 18px; max-width: 720px; }
.sys h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.sys dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 16px; }
.sys dt { font-weight: 600; }
.sys dd { margin: 0; }

.closing { text-align: center; padding-bottom: 80px; }
.closing .h-sec::before { margin-inline: auto; }
.closing .keys { justify-content: center; }
.small-print { max-width: 40em; margin: 30px auto 0; color: var(--ink-soft); font-size: 16px; }

/* ---------------- footer ---------------- */
.foot { background: var(--ink); color: #eadcc0; border-top: 3px solid var(--ink); font: 500 15px/1.6 var(--ui); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding-top: 24px; padding-bottom: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--paper); text-decoration-color: var(--gold); }
.foot p { margin: 0; }

/* ---------------- the studio page ---------------- */
.studio { min-height: 100vh; display: flex; flex-direction: column; }
.studio main { flex: 1; display: grid; place-items: center; padding: 48px 16px 72px; }
.studio .inner { width: min(780px, 100%); text-align: center; }
.studio-h { margin: 0; }
.studio-logo { width: min(400px, 72vw); margin: 0 auto 10px; }
.studio-line { font: 500 clamp(18px, 2.2vw, 21px)/1.5 var(--ui); max-width: 34em; margin: 0 auto 44px; }
.studio-line .name { font-weight: 600; }
/* The game card: the title on the plate, then the short description and the keys on paper. */
.game-card { display: grid; text-align: left; overflow: hidden; }
.game-card .plate { padding: 52px 24px 50px; }
.game-card .title .t1 { font-size: clamp(30px, 5.6vw, 52px); }
.game-card .title .t2 { font-size: clamp(13px, 1.9vw, 19px); }
.game-card .body { padding: 26px 30px 30px; }
.game-card .body p { font-size: 19px; margin: 0; }
.game-card .keys { margin-top: 24px; }
.contact { margin-top: 30px; padding: 20px 26px 8px; text-align: left; }
.contact h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.contact dl { margin: 0 0 12px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; overflow-wrap: anywhere; }

/* ---------------- press kit ---------------- */
.press-top { padding: 22px 0 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px 34px; align-items: center; }
.press-top .card { padding: 26px 22px 24px; }
.press-top h1 { font-size: clamp(34px, 4.6vw, 54px); text-transform: uppercase; margin-bottom: 8px; }
.press-top .lead { margin: 0; max-width: 30em; font: 600 clamp(18px, 1.9vw, 22px)/1.35 var(--ui); }
.press-top .meta { font: 500 15px/1.4 var(--ui); color: var(--ink-soft); margin: 14px 0 0; }
.press-top .top-downloads { grid-column: 1 / -1; }

.key.big { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 76px; padding: 14px 26px 13px; font-size: 22px; text-align: left; }
.key.big small { font: 500 15px/1.25 var(--ui); color: #4a3424; }

.press-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 52px; }
/* Not sticky: the panel is taller than a laptop's screen, and a sticky one would hide its own end. */
.facts { padding: 16px 14px 14px; }
.facts h2 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 2px 6px 12px; }
.facts dl { margin: 0; display: grid; gap: 6px; }
.facts dl > div { background: rgba(255, 244, 214, .06); border: 1px solid rgba(255, 244, 214, .14); border-radius: 8px; padding: 8px 12px 9px; }
.facts dt { font: 600 11px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 4px 0 0; font: 600 16px/1.35 var(--ui); color: var(--paper); overflow-wrap: anywhere; }
.facts dd span { display: block; font-weight: 400; font-size: 14px; color: #d8c6a4; }
.facts a { color: var(--paper); text-decoration-color: var(--gold); }

.press-body > section { padding-bottom: 60px; }
.press-body h2 { font-size: clamp(22px, 2.6vw, 28px); text-transform: uppercase; letter-spacing: .02em; }
.copyblock { padding: 18px 20px 6px; margin: 0 0 18px; border-radius: 14px; box-shadow: 0 5px 0 rgba(42, 28, 28, .85); }
.copyhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.copyhead h3 { margin: 0; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

.faq dt { font-weight: 600; margin-top: 16px; }
.faq dd { margin: 4px 0 0; }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 22px; }
.dl-grid figure { margin: 0; }
.dl-grid .frame { display: block; }
.dl-grid figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 15px; }
.dl-grid figcaption span { color: var(--ink-soft); }
.dl-grid figcaption a { font-weight: 600; white-space: nowrap; }
.tile-art { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 16px; background: var(--sand); }
.tile-art img { max-height: 100%; width: auto; }
.usage { color: var(--ink-soft); font-size: 16px; }
/* A download that is not ready yet: flat and dashed, as the "Coming soon" key and as the game
   draws a slot that is not open. */
.slot { margin: 0; padding: 18px 22px; background: rgba(255, 244, 214, .7); border: 3px dashed var(--ink); border-radius: 14px;
  font: 500 18px/1.5 var(--ui); }
.slot a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------------- privacy and the code of conduct: a reading column on a card ---------------- */
.terms { max-width: 48rem; margin: 26px auto 76px; padding: 34px clamp(20px, 4vw, 46px) 30px; }
.terms h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 6px; }
.terms .for { margin: 0 0 4px; font-weight: 600; }
.terms .version { margin: 0 0 22px; color: var(--ink-soft); font: 500 15px/1.3 var(--ui); }
.terms h2 { font-size: 22px; margin: 34px 0 10px; }
.terms h2 .n { color: var(--teal-dk); }
.terms h3 { font-size: 18px; margin: 24px 0 8px; }
.terms p, .terms li { font-size: 17px; line-height: 1.6; }
.terms ul, .terms ol { margin: 0 0 1em; padding-left: 1.3em; }
.terms li { margin: 0 0 .45em; }
.terms a { overflow-wrap: anywhere; }
.terms .contact-line { margin-top: 36px; padding: 14px 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; }
.rules { counter-reset: rule; list-style: none; padding: 0 !important; }
.rules li { counter-increment: rule; position: relative; padding: 2px 0 6px 52px; margin-bottom: 16px !important; }
.rules li::before { content: counter(rule); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center;
  font: 700 19px/1 var(--ui); background: linear-gradient(var(--gold-top), var(--gold-bot)); border: 3px solid var(--ink); border-radius: 10px; }
.clipboard { font-style: italic; color: var(--ink-soft); }

/* ---------------- 404 ---------------- */
.lost h1 { font-size: 32px; text-transform: uppercase; margin: 8px 0 26px; }
.lost .keys { justify-content: center; }

/* An owner's blank, if one is ever looked at before it is filled: loud on purpose.
   check_site.mjs --final refuses a deploy while any is left. */
mark.blank { background: var(--gold); color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------------- narrow screens ---------------- */
@media (max-width: 900px) {
  .beats { grid-template-columns: 1fr; gap: 24px; }
  .feature-list.cols { columns: 1; }
  .press-layout, .press-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .readout { grid-template-columns: 1fr 1fr; }
  .hero { padding: 128px 0 76px; }
  .lede, .hero .lede { font-size: 18px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .bar { font-size: 15px; }
  .bar > a, .bar > span { padding: 9px 11px; }
  .bar > .soon { display: none; }
  /* The studio's name leaves the toolbar on a phone, but stays the horse link's name for a screen reader. */
  .bar .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero { margin-top: -88px; padding: 116px 0 70px; }
  .keys .key { flex: 1 1 100%; }
  .section { padding-top: 60px; }
  .beats { padding-top: 52px; }
  .beat { padding: 22px 20px 8px; }
  .game-card .plate { padding: 38px 14px 36px; }
  .game-card .body { padding: 20px 18px 24px; }
  .game-card .body p { font-size: 17px; }
  .slot { padding: 14px 16px; font-size: 17px; }
  .contact dl, .sys dl { grid-template-columns: 1fr; gap: 0 0; }
  .contact dd, .sys dd { margin-bottom: 8px; }
  .terms { margin-top: 12px; padding-top: 26px; }
}
