/*
  Nom de Plume Analytique Inc. : the studio's look ("vellum and ink", look C, approved by TeeKay on 18 Oct 2026;
  the design chat's note is research/design/handoff/web/README.md).

  Old-world literary luxury: paper, ink, a fine serif for headings only, the "digital" face (a monospace) for
  everything else, thin gold hairlines that are decoration only. The games keep their own cartoony look (site.css);
  the game's page loads this file only for its thin studio bar.

  Rules kept here: nothing under 16 px; body 18 px at line height 1.6 (19 px at 1.7 on the long pages); headings in
  the serif at 28 px and up (its hairlines vanish below that); edges that must be seen use #8f877a or ink (gold is
  never text and never the only edge); links are underlined; buttons and links are at least 44 px tall; no
  animation; no scripts; nothing loaded from another site.
*/

@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/notoserifdisplay/NotoSerifDisplay-latin-greek.woff") format("woff");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/notoserifdisplay/NotoSerifDisplay-Italic-latin-greek.woff") format("woff");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrainsmono/JetBrainsMono-latin-greek.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --vellum: #faf7f0;
  --paper: #ffffff;
  --paper-2: #f2ede0;
  --shadow: #eee8d8;
  --ink: #14110e;
  --indigo: #26346b;
  --muted: #6a645a;
  --edge: #8f877a;
  --gold: #b8985a;
  --rule: #e6decc;
  --serif: "Noto Serif Display", "Gentium Plus", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.studio {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.125rem; /* 18 px */
  line-height: 1.6;
  font-variant-ligatures: none; /* a story about code should not turn >= into a symbol in a sentence */
  color: var(--ink);
  background: var(--vellum);
}

.studio img {
  display: block;
  max-width: 100%;
  height: auto;
}

.studio a {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}
.studio a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--vellum);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 600;
}
.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Labels, the nav, buttons: JetBrains Mono semibold, capitals, a little tracking, 16 px */
.eyebrow,
.snav a,
.snav summary,
.btn,
.studio-bar a,
.langs,
.studio summary {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* The header: the roundel, the wordmark, the pages, the other language */
.studio-header {
  background: var(--vellum);
  border-bottom: 1px solid var(--gold);
}
.studio-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}
.mark img {
  width: 48px;
  height: 48px;
  flex: none;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.wm-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.75rem; /* 28 px: the serif's floor */
  letter-spacing: 0;
}
.wm-sub {
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 1rem; /* 16 px minimum as live text */
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.snav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.snav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.15rem;
  color: var(--ink);
  border-bottom: 2.4px solid transparent;
}
.snav a:hover {
  color: var(--indigo);
}
.snav a[aria-current="page"] {
  border-bottom-color: var(--indigo); /* an underline as well as a colour: never colour alone */
}

/* The other language: EΛ | EN, the current one is plain text */
.langs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  color: var(--indigo);
  text-decoration: underline;
}
.langs [aria-current="true"] {
  display: inline-flex;
  align-items: center;
  min-width: 32px;
  min-height: 48px;
  color: var(--ink);
}

/* The Games menu, with no script: it opens on hover and when a link inside has the keyboard focus */
.has-menu {
  position: relative;
}
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.45rem;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}
.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.5rem;
  z-index: 40;
  min-width: 21rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--paper);
  border: 1.5px solid var(--edge);
  box-shadow: 6px 6px 0 var(--shadow);
}
.has-menu:hover .menu,
.has-menu:focus-within .menu {
  display: block;
}
.menu li {
  display: block;
}
.menu a,
.menu .soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 64px;
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border-bottom: 0;
}
.menu a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.menu small {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.menu .soon {
  font-weight: 600;
  color: var(--muted);
}

/* The phone menu: a <details> with a square button of three lines */
.nav-phone {
  display: none;
}
.nav-phone summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center 14px / 22px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center 23px / 22px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center 32px / 22px 2px no-repeat;
}
.nav-phone summary::-webkit-details-marker {
  display: none;
}
.nav-phone ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  list-style: none;
  background: var(--vellum);
  border-bottom: 1px solid var(--gold);
}
.nav-phone li a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.nav-phone li a[aria-current="page"] {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-thickness: 2.4px;
  text-underline-offset: 0.3em;
}
.nav-phone .langs {
  margin-top: 0.5rem;
}
.studio-header {
  position: relative;
}

@media (max-width: 63.99rem) {
  .nav-wide {
    display: none;
  }
  .nav-phone {
    display: block;
  }
  .wm-name {
    font-size: 1.75rem;
  }
}

/* Headings: the fine serif, 28 px and up */
.studio h1,
.studio h2,
.studio .card-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
}
.studio h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3.25rem, 8.5vw, 4.75rem);
  line-height: 1.04;
}
:lang(el) .studio h1,
.studio:lang(el) h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
}
.studio h1 em {
  display: block;
  font-style: italic;
  color: var(--indigo);
}
.studio h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 3.2vw, 2rem);
  line-height: 1.2;
}
.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

/* The first screen of a page */
.hero {
  padding-block: clamp(2rem, 6vw, 4.5rem);
}
.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}
.hero p {
  max-width: 34rem;
  margin: 0 0 1.25rem;
}
.hero-art {
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}

.page-head {
  padding-block: clamp(2rem, 5vw, 3.5rem) 0.5rem;
}
.page-head h1 {
  margin-bottom: 1rem;
}
.page-head .lead {
  max-width: 40rem;
  margin: 0;
}

/* Buttons: indigo with vellum letters, and a plain one with an ink outline. Square corners. */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.75rem;
  border: 2px solid var(--indigo);
  border-radius: 0;
  background: var(--indigo);
  color: var(--vellum);
  text-align: center;
}
.studio a.btn {
  color: var(--vellum);
}
.btn:hover,
.studio a.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--vellum);
}
.btn--plain,
.studio a.btn--plain {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--plain:hover,
.studio a.btn--plain:hover {
  background: var(--paper-2);
  color: var(--ink);
}
@media (max-width: 40rem) {
  .btn {
    width: 100%;
    min-height: 54px;
  }
}

/* Sections, text and cards */
.section {
  padding-block: 2rem;
}
.section h2 {
  margin-top: 0;
}
.prose {
  max-width: 62ch;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose li {
  margin-bottom: 0.45rem;
}
.prose > h2 {
  margin-top: 2.5rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose--long {
  font-size: 1.1875rem; /* 19 px on the long pages */
  line-height: 1.7;
  max-width: 60ch;
}
.lead {
  font-size: 1.125rem;
}
.studio em {
  font-style: normal;
  font-weight: 600;
  color: var(--indigo);
}

.grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  position: relative;
  padding: 1.5rem;
  background: var(--paper);
  border: 1.5px solid var(--edge);
  box-shadow: 6px 6px 0 var(--shadow);
}
.card > :first-child {
  margin-top: 0;
}
.card > :last-child {
  margin-bottom: 0;
}
.card p {
  margin: 0;
}
/* A whole card is one big link: the heading's link is stretched over the card */
.card--link a {
  color: var(--ink);
  text-decoration: none;
}
.card--link .card-title a {
  display: inline-block;
  min-height: 44px;
}
.card--link .card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card--link:hover {
  background: var(--paper-2);
}
.card--link:has(a:focus-visible) {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}
.card--link a:focus-visible {
  outline: none;
  box-shadow: none;
}

.game-card {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  max-width: 40rem;
}
@media (min-width: 40rem) {
  .game-card {
    grid-template-columns: 11rem 1fr;
  }
}
.game-card img {
  width: 100%;
  border: 1.5px solid var(--edge);
}

.mail {
  font-size: 1.125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Questions and answers, with no script */
.studio details {
  margin-bottom: 1rem;
  background: var(--paper);
  border: 1.5px solid var(--edge);
}
.studio details > summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.02em;
}
.studio details[open] > summary {
  border-bottom: 1px solid var(--rule);
}
.studio details > :not(summary) {
  margin: 0;
  padding: 0.75rem 1.25rem 1rem;
}

/* The footer: a gold hairline above, plain text, nothing under 16 px */
.studio-footer {
  margin-top: 3rem;
  padding-block: 1.5rem 3rem;
  color: var(--muted);
}
.studio-footer .wrap {
  border-top: 1px solid var(--gold);
  padding-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .studio-footer .wrap {
    grid-template-columns: 1.2fr 1fr;
  }
}
.studio-footer p {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.studio-footer a {
  color: var(--indigo);
}
.studio-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
.studio-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Specific fixes: where one rule above would otherwise win by being more specific */
.studio a.mark,
.studio .snav a,
.studio a.btn,
.studio .card--link a,
.studio-footer li a {
  text-decoration: none;
}
.studio .langs a {
  text-decoration: underline;
}
.snav .menu {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.snav .has-menu:hover .menu,
.snav .has-menu:focus-within .menu {
  display: block;
}
.snav .menu li {
  display: block;
}
.snav .nav-phone ul,
.nav-phone ul {
  display: block;
}
.studio .snav .menu a {
  border-bottom: 0;
}

/* Keep the wordmark and the menu words on one line each; tighter gaps on mid-size screens */
.wordmark,
.snav a {
  white-space: nowrap;
}
@media (min-width: 64rem) and (max-width: 75rem) {
  .snav ul {
    gap: 0.25rem 0.9rem;
  }
  .studio-header .wrap {
    gap: 0.75rem;
  }
}

/* The first line above the headline breaks at the dot on a phone, as the design chat drew it */
.eyebrow .part {
  white-space: nowrap;
}
@media (max-width: 47.99rem) {
  .eyebrow .part {
    display: block;
  }
  .eyebrow .sep {
    display: none;
  }
}
