/* Word & Sword: the home, privacy and support pages, in the book's look: vellum, iron-gall ink, the rubric's red and
   gold rules, the same as the game's leaves and plates. Almendra is the game's own font, under its OFL (fonts/); body text is a
   system serif. Nothing is requested from any other host. Almendra Bold has no g-breve, s-cedilla or dotted capital I, so
   the Turkish page's headings use its Regular. */
@font-face {
  font-family: "Almendra";
  src: url("fonts/Almendra-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Almendra";
  src: url("fonts/Almendra-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --desk: #2a1c13;
  --desk-deep: #1b120c;
  --vellum: #f3e8d0;
  --vellum-light: #faf3e2;
  --ink: #2a1a10;
  --ink-soft: #5c4634;
  --rubric: #a11f17;
  --rubric-deep: #7d150f;
  --lapis: #22389a;
  --gold: #c9a13b;
  --gold-light: #efd98a;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--desk-deep); }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(92deg, #2a1c13 0 37px, #2e1f15 37px 61px, #281a11 61px 103px);
  color: var(--ink);
  font: 17px/1.6 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  padding: 10px 8px 28px;
}

/* The leaf: vellum, an aged edge, and the game's double gold rule. */
main {
  max-width: 720px;
  margin: 0 auto;
  background: var(--vellum) url("art/vellum.jpg");
  padding: 22px 20px 26px;
  border-radius: 3px;
  border: 1px solid #8a6a3a;
  box-shadow:
    inset 0 0 0 3px var(--vellum),
    inset 0 0 0 4px var(--gold),
    inset 0 0 0 6px var(--vellum),
    inset 0 0 0 7px var(--gold),
    inset 0 0 46px rgba(120, 84, 38, 0.2),
    0 8px 28px rgba(0, 0, 0, 0.5);
}

a { color: var(--rubric); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--rubric-deep); text-decoration-thickness: 2px; }

h1, h2, .wordmark {
  font-family: "Almendra", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
}
h1 { font-size: 36px; margin: 0 0 4px; color: var(--ink); }
h2 {
  font-size: 25px;
  margin: 34px 0 12px;
  padding-bottom: 7px;
  color: var(--rubric);
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 30%, rgba(201, 161, 59, 0)) left bottom / 100% 2px no-repeat;
}
html[lang="tr"] h1, html[lang="tr"] h2 { font-weight: 400; font-synthesis: none; }

p, li { margin: 0 0 11px; }
ul { padding-left: 21px; margin: 0 0 14px; }
li::marker { color: var(--gold); font-size: 1.15em; }
strong { color: var(--ink); }

/* The rank plate of the game's home, as the page's head. */
nav.top {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: baseline;
  margin: 0 0 24px;
  padding: 8px 14px;
  background: #24170f;
  border: 1px solid var(--gold);
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px #24170f, inset 0 0 0 3px rgba(201, 161, 59, 0.45);
  font-family: "Almendra", Georgia, serif;
  font-size: 17px;
}
nav.top a { color: #e9dcc0; text-decoration: none; padding: 5px 0; }
nav.top a:hover { color: var(--gold-light); }
nav.top a[aria-current="page"] { color: var(--gold-light); }
nav.top .home { color: var(--gold-light); font-weight: 700; font-size: 20px; margin-right: auto; }

.updated { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }
.lang { font-size: 15px; margin: 0 0 6px; text-align: right; }

/* A leaf laid on the leaf, for what most people read. */
.card {
  background: var(--vellum-light);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 2px var(--vellum-light), inset 0 0 0 3px rgba(201, 161, 59, 0.5);
  border-radius: 3px;
  padding: 2px 16px 6px;
  margin: 20px 0;
}
.card h2 { font-size: 22px; margin: 12px 0 10px; }
.card ul:last-child { margin-bottom: 8px; }

dl { margin: 0; }
dt { font-weight: 700; margin-top: 18px; }
dd { margin: 4px 0 0; }

/* The home. */
.hero { text-align: center; padding: 8px 0 6px; }
.hero .icon {
  width: 148px;
  height: 148px;
  border-radius: 33px;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 20px rgba(60, 36, 12, 0.4);
}
.hero .wordmark { font-size: 52px; margin: 18px 0 0; color: var(--ink); }
.hero .subtitle { font-family: "Almendra", Georgia, serif; font-size: 21px; color: var(--rubric); margin: 2px 0 16px; }
.hero .opening { font-family: "Almendra", Georgia, serif; font-size: 24px; line-height: 1.3; max-width: 22em; margin: 0 auto 20px; }

/* The game's red button; "plate soon" is the same plate before the store's page exists. */
.plate {
  display: inline-block;
  font-family: "Almendra", Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  color: #fff4dc;
  background: linear-gradient(#b92a1f, #8f1a12);
  border: 1px solid var(--gold-light);
  border-radius: 9px;
  box-shadow: inset 0 0 0 2px #8f1a12, inset 0 0 0 3px rgba(239, 217, 138, 0.65), 0 3px 8px rgba(60, 20, 8, 0.4);
  padding: 11px 24px 12px;
  text-decoration: none;
}
a.plate:hover { color: #fff; }
.plate.soon { background: linear-gradient(#6d5a48, #57463a); }

.intro { margin-top: 26px; }
.intro .drop { float: left; width: 88px; height: auto; margin: 4px 12px 2px 0; }
.intro::after { content: ""; display: block; clear: both; }

/* The margin's war at the foot of the home, as the game's own figures. */
.margin {
  position: relative;
  height: 118px;
  margin: 18px 0 0;
  border-bottom: 2px solid var(--gold);
}
.margin img { position: absolute; bottom: 2px; }
.margin .scribe { left: 0; width: 148px; height: auto; }
.margin .snail { right: 92px; width: 70px; height: auto; transform: scaleX(-1); }
.margin .hare { right: 14px; width: 48px; height: auto; transform: scaleX(-1); }

footer {
  margin-top: 36px;
  padding-top: 12px;
  border-top: 2px solid var(--gold);
  font-size: 15px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
footer a { color: var(--ink-soft); padding: 4px 0; }
footer .tiny { width: 42px; height: auto; margin-left: auto; }
.margin + footer { border-top: 0; margin-top: 10px; padding-top: 4px; }

.credit { font-size: 15px; color: var(--ink-soft); margin-top: 28px; }

@media (min-width: 620px) {
  body { padding: 28px 16px 44px; }
  main { padding: 34px 44px 34px; }
  h1 { font-size: 42px; }
  .hero .wordmark { font-size: 64px; }
  nav.top { padding: 8px 18px; }
}
