/*
 * argami.app's pages around the game (card C11; C10 started them): home, how to play, the 24
 * poster guides, the journal, about, contact and privacy, in English and Turkish. Plain HTML and
 * this one stylesheet, no script (CSP: script-src 'self'; style-src 'self'; no inline style).
 * Afiş colors (apps/game/src/tokens.ts), Jost 400/600 with Turkish letters (SIL OFL 1.1,
 * /fonts/OFL.txt). The game itself stays text-free; words live only on these pages.
 *
 * One idea carries the look: the posters hang on the paper wall by a strip of paper tape, as the
 * solved posters do on a season's wall in the game. Everything around them stays quiet.
 */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/site/fonts/jost-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/site/fonts/jost-600.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --paper: #ece8e1;
  --paper-white: #f4f1ea;
  --ink: #1e1f23;
  --muted: #5e5c58;
  --kraft: #c8a97a;
  --tape: rgb(246 240 224 / 90%);
  --line: rgb(30 31 35 / 14%);
  --shadow: 0 1px 2px rgb(30 25 20 / 10%), 0 8px 20px rgb(30 25 20 / 10%);
  --shadow-small: 0 1px 2px rgb(30 25 20 / 10%), 0 4px 10px rgb(30 25 20 / 9%);
  --column: 42rem;
  --wide: 68rem;
  --gutter: 1.25rem;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family:
    'Jost',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 106.25%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem);
}

h2 {
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.85rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.45em;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--kraft);
}

blockquote p:last-child {
  margin-bottom: 0;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: -100vw;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 2;
  background: var(--paper-white);
  padding: 0.4rem 0.8rem;
}

/* The page frame: a wide container for the wall, a column for reading. */
.wrap {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.column {
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header: the logo, the site's four sections, the other language and Play. */
.site-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.1rem var(--gutter) 0;
}

.logo img {
  width: 7.25rem;
}

.sections {
  display: flex;
  gap: 1.35rem;
  font-size: 0.98rem;
}

.sections a {
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.sections a:hover {
  border-bottom-color: var(--line);
}

.sections a[aria-current] {
  border-bottom-color: var(--ink);
}

.actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
}

/* The game's button: ink paper, like ▶ and the moves disc in the game. */
.play {
  display: inline-block;
  background: var(--ink);
  color: var(--paper-white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  line-height: 1.3;
}

.play:hover {
  background: #000;
}

.actions .play {
  padding: 0.38rem 1.05rem;
}

@media (max-width: 47.99rem) {
  .site-head {
    grid-template-columns: 1fr auto;
  }

  .sections {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    gap: 1.2rem;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 0.2rem;
    scrollbar-width: none;
  }

  .sections::-webkit-scrollbar {
    display: none;
  }

  .sections a {
    white-space: nowrap;
  }
}

main {
  padding-bottom: 1rem;
}

section {
  padding-top: 3.5rem;
}

.lead {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.quiet {
  color: var(--muted);
}

.more {
  margin-top: 1.25rem;
}

/* A poster on the paper wall, hung by a strip of tape. */
.taped {
  position: relative;
}

.taped img {
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.taped::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -0.7rem;
  left: 50%;
  width: 36%;
  height: 1.55rem;
  translate: -50% 0;
  rotate: -1.5deg;
  background: var(--tape);
  box-shadow: 0 1px 2px rgb(30 25 20 / 14%);
}

/* Home: the opening, its poster in the middle of a paint wave. */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2.5rem;
}

.hero .taped {
  max-width: 20rem;
  margin: 0 auto;
}

.hero .free {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.9rem;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    padding-top: 3.5rem;
  }

  .hero .taped {
    max-width: 21rem;
  }
}

/* Frames of the game, side by side (scrolling on a phone). */
.frames {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12.5rem, 16rem);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  margin: 1.25rem -0.25rem 0;
  list-style: none;
}

.frames li {
  scroll-snap-align: start;
  margin: 0;
}

.frames img {
  border-radius: 6px;
  box-shadow: var(--shadow-small);
}

/* The 24 posters by season: a row of six per season, each a link to its guide. */
.season {
  margin-top: 2.5rem;
}

.season-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.season-head img {
  width: 2.6rem;
}

.season-head h2,
.season-head h3 {
  font-size: 1.3rem;
  margin: 0;
}

.season-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.posters li {
  margin: 0;
}

.posters a {
  display: block;
  text-decoration: none;
}

.posters img {
  aspect-ratio: 300 / 462;
  border-radius: 2px;
  box-shadow: var(--shadow-small);
}

.posters .name {
  display: block;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  line-height: 1.35;
}

.posters .moves {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.posters a:hover .name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

@media (min-width: 40rem) {
  .posters {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* The poster index: the wall itself, posters on tape. */
.wall .posters {
  gap: 2.1rem 1.1rem;
  padding-top: 0.7rem;
}

.wall .posters img {
  box-shadow: var(--shadow);
}

/* Lists of short items in two columns on a wide screen. */
.pairs {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding: 0;
  list-style: none;
}

.pairs li {
  margin: 0 0 0.8rem;
}

.pairs strong {
  display: block;
}

@media (min-width: 46rem) {
  .pairs {
    grid-template-columns: 1fr 1fr;
  }
}

/* Journal entries in a list. */
.entries {
  padding: 0;
  margin: 0;
  list-style: none;
}

.entries li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.entries li:last-child {
  border-bottom: 1px solid var(--line);
}

.entries img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  box-shadow: var(--shadow-small);
}

.entries h2,
.entries h3 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.entries h2 a,
.entries h3 a {
  text-decoration: none;
}

.entries h2 a:hover,
.entries h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.entries p {
  margin: 0;
}

.entries time {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 40rem) {
  .entries li {
    grid-template-columns: 9rem 1fr;
    gap: 1.6rem;
  }
}

/* Where a page sits: the section above it. */
.crumb {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 2.5rem 0 0.6rem;
}

.crumb a {
  color: inherit;
}

/* A poster's guide: the poster beside its text on a wide screen. */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin-top: 1.75rem;
}

.guide-text {
  min-width: 0;
}

.guide > .taped {
  max-width: 21rem;
  width: 100%;
  margin: 0.7rem auto 0;
}

.guide-text h2 {
  font-size: 1.35rem;
  margin: 2.1rem 0 0.6rem;
}

.guide-text h2:first-child {
  margin-top: 0;
}

@media (min-width: 56rem) {
  .guide {
    grid-template-columns: 21rem minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }

  .guide > .taped {
    position: sticky;
    top: 1.75rem;
    margin: 0.7rem 0 0;
  }
}

/* The poster's numbers: moves, colors, key. */
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin: 0 0 1.75rem;
  padding: 1rem 1.2rem;
  background: var(--paper-white);
  border-radius: 8px;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.swatches li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

/* A palette color: one class per color, written at the end of this file by the generator. */
.dot {
  display: inline-block;
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(30 31 35 / 18%);
}

/* Hints that open one at a time, no script. */
details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
}

details[open] summary::after {
  content: '\2212';
}

details > p:first-of-type,
details > div {
  margin-top: 0.7rem;
}

details p:last-child {
  margin-bottom: 0.2rem;
}

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11.5rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.75rem 0.25rem 0.5rem;
  margin: 0 -0.25rem;
  list-style: none;
}

.shots li {
  scroll-snap-align: start;
  margin: 0;
}

.shots img {
  border-radius: 5px;
  box-shadow: var(--shadow-small);
}

.cta {
  margin-top: 2.25rem;
}

/* Previous and next poster or entry. */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.pager a {
  max-width: 48%;
}

.pager .next {
  margin-left: auto;
  text-align: right;
}

.pager span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

/* A journal entry. */
.entry-head {
  padding-top: 0.25rem;
}

.entry-head time {
  color: var(--muted);
}

.entry-body {
  margin-top: 2rem;
}

.entry-body h2 {
  font-size: 1.4rem;
  margin: 2.4rem 0 0.7rem;
}

.entry-body figure {
  margin: 2rem 0;
}

.entry-body figure img {
  border-radius: 4px;
  box-shadow: var(--shadow-small);
}

/* A tall picture alone (a poster, a phone screen) stays a reasonable size in the column. */
.entry-body > figure img {
  max-height: 34rem;
  width: auto;
}

.entry-body .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.entry-body .narrow img {
  max-width: 22rem;
  margin: 0 auto;
}

.cover {
  margin-top: 2rem;
}

.cover img {
  border-radius: 4px;
  box-shadow: var(--shadow-small);
}

/* Plain documents: about, contact, privacy, how to play, and the two indexes. */
.doc {
  padding-top: 2.5rem;
}

.doc h2 {
  font-size: 1.4rem;
  margin: 2.4rem 0 0.75rem;
}

.doc .updated {
  color: var(--muted);
  margin-top: 0.5rem;
}

.note {
  background: var(--paper-white);
  border-radius: 8px;
  padding: 1.1rem 1.25rem 0.3rem;
  margin-top: 1.5rem;
}

.note h3 {
  margin-bottom: 0.5rem;
}

.steps {
  padding-left: 1.4rem;
  margin: 1.25rem 0 0;
}

.steps li {
  margin-bottom: 0.9rem;
  padding-left: 0.25rem;
}

.steps li::marker {
  font-weight: 600;
}

.mail {
  font-size: 1.25rem;
  font-weight: 600;
}

footer.site-foot {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 4.5rem auto 0;
  padding: 0 var(--gutter) 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  padding: 1.5rem 0 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.site-foot li {
  margin: 0;
}

.site-foot p {
  margin: 0.9rem 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .frames,
  .shots {
    scroll-behavior: smooth;
  }
}

/* The posters' palette colors (swatches on the guide pages), one class per color. */
.c-00447b {
  background: #00447b;
}

.c-004678 {
  background: #004678;
}

.c-004c6d {
  background: #004c6d;
}

.c-004d69 {
  background: #004d69;
}

.c-01494c {
  background: #01494c;
}

.c-044d74 {
  background: #044d74;
}

.c-09797c {
  background: #09797c;
}

.c-1c2e66 {
  background: #1c2e66;
}

.c-242f4f {
  background: #242f4f;
}

.c-2a4276 {
  background: #2a4276;
}

.c-2e4b35 {
  background: #2e4b35;
}

.c-2f4f37 {
  background: #2f4f37;
}

.c-2f7271 {
  background: #2f7271;
}

.c-38456e {
  background: #38456e;
}

.c-3ba4ab {
  background: #3ba4ab;
}

.c-3d5e6c {
  background: #3d5e6c;
}

.c-4598b5 {
  background: #4598b5;
}

.c-523e68 {
  background: #523e68;
}

.c-5c3c58 {
  background: #5c3c58;
}

.c-5f365a {
  background: #5f365a;
}

.c-613a36 {
  background: #613a36;
}

.c-67432a {
  background: #67432a;
}

.c-68707d {
  background: #68707d;
}

.c-6e9651 {
  background: #6e9651;
}

.c-733e48 {
  background: #733e48;
}

.c-73a0a4 {
  background: #73a0a4;
}

.c-776787 {
  background: #776787;
}

.c-7d3c45 {
  background: #7d3c45;
}

.c-7fa0af {
  background: #7fa0af;
}

.c-83979d {
  background: #83979d;
}

.c-926154 {
  background: #926154;
}

.c-95d1d2 {
  background: #95d1d2;
}

.c-98120f {
  background: #98120f;
}

.c-98643e {
  background: #98643e;
}

.c-989082 {
  background: #989082;
}

.c-9b2911 {
  background: #9b2911;
}

.c-a09b64 {
  background: #a09b64;
}

.c-a57300 {
  background: #a57300;
}

.c-a9bfcb {
  background: #a9bfcb;
}

.c-ab4e1f {
  background: #ab4e1f;
}

.c-ad4c4e {
  background: #ad4c4e;
}

.c-af463e {
  background: #af463e;
}

.c-b23f2a {
  background: #b23f2a;
}

.c-b3cad6 {
  background: #b3cad6;
}

.c-b45700 {
  background: #b45700;
}

.c-b7484c {
  background: #b7484c;
}

.c-b94c4b {
  background: #b94c4b;
}

.c-bc3f3d {
  background: #bc3f3d;
}

.c-c03b37 {
  background: #c03b37;
}

.c-c38899 {
  background: #c38899;
}

.c-c8432e {
  background: #c8432e;
}

.c-c8bfbb {
  background: #c8bfbb;
}

.c-cf5c00 {
  background: #cf5c00;
}

.c-d14d49 {
  background: #d14d49;
}

.c-d8462e {
  background: #d8462e;
}

.c-db423c {
  background: #db423c;
}

.c-dc4f33 {
  background: #dc4f33;
}

.c-dc8653 {
  background: #dc8653;
}

.c-de9b89 {
  background: #de9b89;
}

.c-e08b65 {
  background: #e08b65;
}

.c-e16e8e {
  background: #e16e8e;
}

.c-e27a3b {
  background: #e27a3b;
}

.c-e2b52e {
  background: #e2b52e;
}

.c-e3a54d {
  background: #e3a54d;
}

.c-e3c05b {
  background: #e3c05b;
}

.c-e46763 {
  background: #e46763;
}

.c-e4e6da {
  background: #e4e6da;
}

.c-e55b3c {
  background: #e55b3c;
}

.c-e7c274 {
  background: #e7c274;
}

.c-e8b537 {
  background: #e8b537;
}

.c-e9b630 {
  background: #e9b630;
}

.c-ed6d42 {
  background: #ed6d42;
}

.c-ede4d6 {
  background: #ede4d6;
}

.c-edf0e1 {
  background: #edf0e1;
}

.c-eec737 {
  background: #eec737;
}

.c-efb8a0 {
  background: #efb8a0;
}

.c-f0af9e {
  background: #f0af9e;
}

.c-f0c66d {
  background: #f0c66d;
}

.c-f0ebdc {
  background: #f0ebdc;
}

.c-f1b34e {
  background: #f1b34e;
}

.c-f1bf51 {
  background: #f1bf51;
}

.c-f1e7d7 {
  background: #f1e7d7;
}

.c-f1eee6 {
  background: #f1eee6;
}

.c-f28d1f {
  background: #f28d1f;
}

.c-f2cbb3 {
  background: #f2cbb3;
}

.c-f2e8c6 {
  background: #f2e8c6;
}

.c-f3eadc {
  background: #f3eadc;
}

.c-f4edde {
  background: #f4edde;
}

.c-f6eee1 {
  background: #f6eee1;
}

.c-f6f0e5 {
  background: #f6f0e5;
}

.c-f6f3ec {
  background: #f6f3ec;
}

.c-f6f3ee {
  background: #f6f3ee;
}

.c-f7f145 {
  background: #f7f145;
}

.c-f8e1c0 {
  background: #f8e1c0;
}

.c-f8f5ed {
  background: #f8f5ed;
}

.c-f9735b {
  background: #f9735b;
}

.c-faa16b {
  background: #faa16b;
}

.c-fcadc4 {
  background: #fcadc4;
}

.c-fdedd2 {
  background: #fdedd2;
}

.c-ffa43c {
  background: #ffa43c;
}

.c-ffab2c {
  background: #ffab2c;
}

.c-ffd400 {
  background: #ffd400;
}

.c-ffe4b7 {
  background: #ffe4b7;
}

.c-fff0c1 {
  background: #fff0c1;
}
