/* Time Champions — wombatforge.com
   Studio front page + creator/press kit. No framework, no build step, no JS.

   The palette is sampled from the hand-painted art pack, not invented:
   sky #BDEDFF and grass #8BB413 out of the field backgrounds, warm parchment
   and sage out of the champions illustration, and the violet from the logo's
   own glow. The game is bright and storybook — an earlier draft of this site
   was dark slate, which came from nothing in the game.

   Type is Joti One and Karla, the two faces the game ships with
   (Assets/Fonts/). The chamfered panel is the shape the in-game level-up
   cards use. */

:root {
  --paper:    #F6F2E7;
  --paper-2:  #ECE5D3;
  --card:     #FDFBF4;
  --ink:      #2C2721;
  --ink-2:    #5F564A;
  --rule:     #D8CFB8;

  --grass:      #8BB413;
  --grass-deep: #394A37;
  --sky:        #BDEDFF;
  --brick:      #9B5D57;
  --violet:     #6B2FA0;   /* the logo's purple, darkened to read on paper */
  --violet-lit: #8B3FD0;
  --button:     #553F70;   /* sampled from the in-game UPGRADE / RECRUIT button */
  --button-lit: #6B5089;

  --max: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --display: "Joti One", "Trebuchet MS", system-ui, sans-serif;
  --body:    "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --chamfer: 12px;
  --notch: polygon(
    var(--chamfer) 0, calc(100% - var(--chamfer)) 0,
    100% var(--chamfer), 100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%,
    0 calc(100% - var(--chamfer)), 0 var(--chamfer)
  );
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* The front page is short. Without this the footer floats mid-screen with
     dead space under it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-lit); }
p { margin: 0 0 1em; }

h1, h2 {
  font-family: var(--display); font-weight: 400; line-height: 1.05;
  margin: 0 0 .5em; color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 {
  font-family: var(--body); font-weight: 800; font-size: 1.05rem;
  color: var(--ink-2); margin: 2rem 0 .7rem;
}
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--violet); color: #fff; padding: .6rem 1rem; font-weight: 700;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- buttons: the game's flat purple UPGRADE button ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 800; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .8rem 1.6rem; border: 0; cursor: pointer; text-decoration: none;
  background: var(--button); color: #fff;
  border-radius: 6px;
  transition: background .15s ease;
}
.btn:hover { background: var(--button-lit); color: #fff; }
.btn--outline {
  background: none; color: var(--button);
  box-shadow: inset 0 0 0 2px var(--button);
}
.btn--outline:hover { background: rgba(85,63,112,.08); color: var(--button); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- header / footer ---------------------------------------------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px; flex-wrap: wrap;
}
.brand {
  font-family: var(--body); font-weight: 800; font-size: .95rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: .55rem;
}
/* The studio mark sits beside the wordmark rather than replacing it - the name still has to be readable at a glance. */
.brand__mark { width: 30px; height: 30px; display: block; }
.site-head nav { display: flex; gap: 1.4rem; }
.site-head nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 700;
  font-size: .85rem; letter-spacing: .09em; text-transform: uppercase;
}
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--violet); }

.site-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--rule); background: var(--paper-2);
  padding-block: 2rem; color: var(--ink-2); font-size: .9rem;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: var(--violet); }

/* ---------- studio front page --------------------------------------------- */
/* Two columns: the key art beside the text, not stacked above it. A 1.75:1
   capsule at full content width swallows the whole viewport. */
.front { padding-block: clamp(2rem, 5vw, 3.5rem); }
.front > .wrap {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.front__art { width: 100%; clip-path: var(--notch); }
.front .btn-row { margin-top: 1.5rem; }
/* The blurb is the game; the studio line is the company. They read as two
   different things, so they are set as two different things. */
.front__blurb { max-width: 46ch; font-size: 1.02rem; line-height: 1.5; }
.front__studio {
  font-size: .9rem; color: var(--ink-2);
  border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.75rem;
}
/* The front page's call to action is the Steam button in .btn-row; the old status line
   said the store page was still coming, which stopped being true when it went live. */

/* ---------- press kit ------------------------------------------------------ */
.kit { padding-block: clamp(2rem, 5vw, 3rem); }
.kit__intro { max-width: 62ch; }
.kit section { margin-bottom: 3rem; }

/* One intro paragraph. The access message lives in the permit block below,
   where it was already better written — having both said the same thing twice. */
.kit__blurb { max-width: 58ch; font-size: 1.02rem; line-height: 1.5; }
.kit__note { margin-top: .7rem; font-size: .9rem; color: var(--ink-2); }
.kit__store { margin-top: .8rem; font-size: .95rem; font-weight: 700; }

.permit {
  border: 1px solid var(--rule); border-left: 4px solid var(--grass);
  background: #FFFDF6; padding: 1.25rem 1.5rem; margin-block: 1.75rem;
}
.permit h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.permit p { margin: 0; }
.permit p + p { margin-top: .6rem; }
.permit b { color: var(--grass-deep); }

/* Character cut-outs. Transparent PNGs, so they stand on the paper with a
   soft ground shadow — no frame, no crop, no plate. */
.cutouts {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
}
.cutout { margin: 0; text-align: center; }
.cutout a { display: block; text-decoration: none; }
.cutout img {
  margin: 0 auto; height: 190px; width: auto;
  filter: drop-shadow(0 10px 10px rgba(44,39,33,.22));
  transition: transform .15s ease;
}
.cutout a:hover img { transform: translateY(-4px); }
.cutout figcaption {
  margin-top: .8rem; font-size: .85rem; color: var(--ink-2);
  border-top: 1px solid var(--rule); padding-top: .5rem;
}
.cutout b { display: block; color: var(--ink); font-weight: 800; font-size: .9rem; }

.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.tiles a { display: block; position: relative; }
.tiles img { width: 100%; border-radius: 6px; background: var(--card); }
.tiles a::after {
  content: attr(data-meta); position: absolute; right: .6rem; bottom: .6rem;
  background: rgba(44,39,33,.85); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .07em;
  padding: .28rem .55rem;
}
.tiles a:hover img { outline: 2px solid var(--violet); outline-offset: -2px; }

/* Steam assets. Five landscape (1.74-3.10:1) and one portrait (0.67:1). Sizing
   these by width made the portrait 613px tall and left 422px of dead space in
   the cell beside it. Bounding the HEIGHT instead keeps every true aspect ratio
   — the library capsule still reads as portrait, the banner still reads as a
   banner — while the rows come out even. */
.tiles--fit a {
  display: grid; place-items: center;
  height: 254px; padding: .75rem;
  background: var(--card); border-radius: 6px;
}
.tiles--fit img {
  width: auto; max-width: 100%; max-height: 230px;
  border-radius: 0; background: none;
}
@media (max-width: 820px) {
  .tiles--fit a { height: 210px; }
  .tiles--fit img { max-height: 186px; }
}

/* One breakpoint for the whole site, so both pages change shape at the same width. */
@media (max-width: 820px) {
  .front > .wrap { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
