/* The website in the game's colours and type (src/ui/theme/palette.gd,
   assets/fonts, docs/orga/website.md 4): paper, ink, a red accent, a manila
   tab. Phone first; no dark mode, the game has none. */

@font-face {
  font-family: "Old Standard";
  src: url("/fonts/OldStandard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Old Standard";
  src: url("/fonts/OldStandard-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Old Standard";
  src: url("/fonts/OldStandard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3ede2;
  --card: #fffdf8;
  --ink: #2a2733;
  --muted: #6e6878;
  --line: #d9d0c1;
  --red: #b3364a;
  --manila: #d6b678;
  --serif: "Old Standard", Georgia, "Times New Roman", serif;
  --type: "Courier Prime", "Courier New", monospace;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-synthesis: none;
}

a { color: var(--red); text-underline-offset: 0.15em; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2 { font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.2rem; margin: 1.8em 0 0.4em; }
p, ul { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 700; }

/* the bar on top: the name, the other language */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  font-family: var(--type);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.top a { color: var(--muted); text-decoration: none; padding: 0.4rem 0; }
.top a:hover { color: var(--ink); }
.top .lang { text-transform: none; letter-spacing: 0.02em; }
.home .top .mark { visibility: hidden; }

main { width: 100%; margin: 0 auto; }

/* home: the picture like a photo on the desk, the name, a few lines */
.front { max-width: 560px; padding: 1rem 1rem 2.5rem; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); margin: 1.2rem 0 0.2rem; letter-spacing: 0.01em; }
.photo {
  width: min(240px, 62vw);
  height: auto;
  margin-top: 1rem;
  border: 8px solid var(--card);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(42, 39, 51, 0.18), 0 10px 24px rgba(42, 39, 51, 0.16);
  transform: rotate(-2deg);
}
.lede { font-style: italic; font-size: 1.3rem; color: var(--muted); margin-bottom: 1.4rem; }
.front > p { text-align: left; }
.front > .lede, .front > .stamp { text-align: center; }
.points {
  list-style: none;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0 2rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--manila);
  border-radius: 3px;
}
.points li { padding-left: 1.4em; position: relative; }
.points li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.62em;
  width: 0.5em;
  height: 0.5em;
  border: 2px solid var(--red);
  border-radius: 50%;
}
/* the stores, until the app is there: a stamp, not a badge */
.stamp {
  display: inline-block;
  margin: 0.5rem auto 0;
  padding: 0.5rem 1rem;
  border: 2.5px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  font-family: var(--type);
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 17em;
  text-wrap: balance;
  transform: rotate(-3deg);
  opacity: 0.88;
}

/* the other pages: a sheet of paper in a manila folder, its tab on top */
.sheet {
  position: relative;
  width: calc(100% - 1.5rem);
  max-width: 680px;
  margin: 3.4rem auto 1.5rem;
  padding: 1.6rem 1.2rem 1.8rem;
  background: var(--card);
  border-top: 6px solid var(--manila);
  box-shadow: 0 1px 2px rgba(42, 39, 51, 0.12), 0 8px 22px rgba(42, 39, 51, 0.1);
}
.tab {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin: 0;
  padding: 0.3rem 1.1rem 0.25rem;
  background: var(--manila);
  border-radius: 6px 6px 0 0;
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.sheet-head { margin-bottom: 1.4rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.sheet-head h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); margin: 0 0 0.3rem; }
.kicker, .note { font-family: var(--type); font-size: 0.85rem; color: var(--muted); }
.kicker { margin: 0; }
.sheet .lede { font-size: 1.1rem; margin-bottom: 0.5rem; }
.sheet > h2:first-of-type { margin-top: 1rem; }
.address { line-height: 1.5; }
.sheet { hyphens: auto; -webkit-hyphens: auto; }

footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.2rem 1rem 2rem;
  text-align: center;
  font-family: var(--type);
  font-size: 0.85rem;
  color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.4rem; }
footer a { color: var(--muted); text-decoration: none; padding: 0.35rem 0; }
footer a:hover, footer a[aria-current] { color: var(--ink); }

@media (min-width: 720px) {
  body { font-size: 1.15rem; }
  .sheet { padding: 2.2rem 3rem 2.6rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s; }
}
