/* totteq.com (Games at /, About at /about/): shared by both pages, served from /tonari/assets/company.css */
:root {
  --desk: #e7ecf3;      /* the wall the cabinet stands against */
  --body: #d5dce8;      /* the cabinet */
  --front: #ffffff;     /* a drawer front */
  --ink: #1b2236;
  --soft: #586178;
  --blue: #3b5bdb;
  --sun: #f2b84b;       /* the pulls, as in the mark */
  --edge: rgba(27, 34, 54, .14);
}
@media (prefers-color-scheme: dark) {
  :root { --desk: #12161f; --body: #0c0f16; --front: #1b2130; --ink: #e8ecf4; --soft: #9aa3b8; --blue: #8aa2ff; --edge: rgba(0, 0, 0, .5); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 17px/1.65 "Instrument Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* header: the mark on the left, the tabs on the right */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 28px 36px; }
.top .home img { display: block; width: 48px; height: 48px; }
.top nav { display: flex; gap: 6px; }
.top nav a { padding: 8px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--ink); background: var(--body); }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--front); box-shadow: inset 0 -3px 0 var(--edge); }

/* games: each one is a drawer front, the website link is its pull */
.cabinet { background: var(--body); border-radius: 30px; padding: 12px; display: grid; gap: 12px; margin-bottom: 64px; }
.drawer { background: var(--front); border-radius: 20px; padding: clamp(20px, 3.4vw, 40px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 3.4vw, 44px); align-items: center;
  box-shadow: inset 0 -6px 0 var(--edge); }
.drawer.flip { grid-template-columns: 7fr 5fr; }
.drawer.flip .text { order: 2; }
.name { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.name img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.name h2 { margin: 0; font: 800 clamp(30px, 3.6vw, 42px)/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -.025em; }
.text p { margin: 0 0 10px; max-width: 42ch; }
.text .when { color: var(--soft); font-size: 15px; margin-bottom: 26px; }
.pull { display: inline-block; padding: 12px 30px 13px; border-radius: 999px; background: var(--sun); color: #1b2236; font-weight: 600; text-decoration: none;
  box-shadow: 0 7px 0 -2px rgba(27, 34, 54, .22); transition: transform .15s, box-shadow .15s; }
.pull:hover { color: #1b2236; transform: translateY(-2px); box-shadow: 0 9px 0 -2px rgba(27, 34, 54, .22); }
@media (prefers-reduced-motion: reduce) { .pull { transition: none; } }
.media { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0d1220; }
.media iframe, .media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }

/* about: one drawer of text */
.about { background: var(--front); border-radius: 20px; padding: clamp(24px, 4vw, 48px); box-shadow: inset 0 -6px 0 var(--edge); }
.about h1 { margin: 0 0 18px; font: 800 clamp(34px, 4.4vw, 52px)/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; }
.about .lede { margin: 0 0 40px; max-width: 40ch; font: 500 clamp(20px, 2.2vw, 26px)/1.4 "Bricolage Grotesque", sans-serif; }
.about .cols { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about h2 { margin: 0 0 10px; font: 800 20px/1.2 "Bricolage Grotesque", sans-serif; }
.about p { margin: 0; max-width: 46ch; color: var(--soft); }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; }
dt { color: var(--soft); }
dd { margin: 0; }

/* footer: who we are, small */
footer { display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; padding-block: 8px 40px; color: var(--soft); font-size: 14px; }
footer p { margin: 0; max-width: 52ch; }

@media (max-width: 820px) {
  .top { padding-block: 20px 24px; }
  .top .home img { width: 40px; height: 40px; }
  .cabinet { border-radius: 24px; padding: 8px; gap: 8px; }
  .drawer, .drawer.flip, .about .cols { grid-template-columns: 1fr; }
  .drawer.flip .text { order: 0; }
  .text .when { margin-bottom: 20px; }
  dl { grid-template-columns: 1fr; gap: 0; }
  dd { margin-bottom: 10px; }
}
