/* Teppan Toss: the home, policy and support pages, in the game's look: a 1970s television cartoon, inked and flat-painted.
   Cream cards with a hard ink edge and a hard drop, the brick ribbon of the game's titles, its teal buttons and mustard
   coins, on the dark brick of the app icon. Shrikhand is the game's title font, under its OFL (fonts/), and has every
   Turkish letter; body text is the phone's own sans-serif. Nothing is requested from any other host. */
@font-face {
  font-family: "Shrikhand";
  src: url("fonts/Shrikhand-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --night: #2a1412;
  --oxblood: #4e1617;
  --brick: #b04830;
  --brick-deep: #883828;
  --ink: #201818;
  --ink-soft: #5b463a;
  --cream: #f0e0b8;
  --cream-light: #faf0d8;
  --teal: #387870;
  --teal-deep: #2b5d56;
  --mustard: #f0c048;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(176, 72, 48, 0.55), rgba(176, 72, 48, 0) 62%),
    linear-gradient(var(--oxblood), var(--night) 900px);
  background-color: var(--night);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 12px 10px 30px;
}

/* The card: cream paper, an ink edge and the hard drop of the game's panels. */
main {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream) url("art/paper.jpg");
  padding: 18px 18px 22px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 9px 0 rgba(0, 0, 0, 0.42);
}

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

h1, h2, .wordmark, .subtitle, nav.top, .plate {
  font-family: "Shrikhand", Georgia, serif;
  font-weight: 400;
  font-synthesis: none;
}
h1 { font-size: 32px; line-height: 1.15; margin: 6px 0 4px; color: var(--brick); text-shadow: 2px 2px 0 rgba(32, 24, 24, 0.16); }
h2 {
  font-size: 23px;
  line-height: 1.2;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  color: var(--brick-deep);
  background: linear-gradient(90deg, var(--mustard), rgba(240, 192, 72, 0)) left bottom / 100% 4px no-repeat;
}

p, li { margin: 0 0 11px; }
ul { padding-left: 22px; margin: 0 0 14px; }
li::marker { color: var(--brick); }
strong { color: var(--ink); }

/* The bar: the brick ribbon of the game's titles, its words cream with an ink drop. */
nav.top {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  align-items: baseline;
  margin: 0 0 18px;
  padding: 6px 14px 8px;
  background: linear-gradient(#bc5434, #a8442c);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: inset 0 -5px 0 var(--brick-deep), 3px 4px 0 rgba(32, 24, 24, 0.3);
  font-size: 16px;
}
nav.top a { color: var(--cream-light); text-decoration: none; padding: 5px 0; text-shadow: 2px 2px 0 var(--ink); }
nav.top a:hover { color: #fff; }
nav.top a[aria-current="page"] { color: var(--mustard); }
nav.top .home { font-size: 19px; margin-right: auto; }

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

/* What most people read, on a lighter card. */
.card {
  background: var(--cream-light);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 5px 0 rgba(32, 24, 24, 0.22);
  padding: 2px 16px 6px;
  margin: 20px 0;
}
.card h2 { font-size: 21px; margin: 12px 0 10px; color: var(--teal-deep); background-image: none; padding-bottom: 0; }
.card ul:last-child, .card p:last-child { margin-bottom: 10px; }

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

/* The home. */
.hero { text-align: center; padding: 6px 0 4px; }
.hero .icon {
  width: 148px;
  height: 148px;
  border-radius: 34px;
  border: 3px solid var(--ink);
  box-shadow: 5px 6px 0 rgba(32, 24, 24, 0.35);
}
.hero .wordmark { font-size: 50px; line-height: 1.1; margin: 16px 0 0; color: var(--brick); text-shadow: 3px 3px 0 var(--ink); }
.hero .subtitle { font-size: 21px; color: var(--teal-deep); margin: 6px 0 14px; }
.hero .opening { font-size: 20px; font-weight: 700; line-height: 1.35; max-width: 22em; margin: 0 auto 20px; }

/* The game's buttons: teal, an ink edge, a hard drop; "plate soon" is the same before the store's page exists. */
.plate {
  display: inline-block;
  font-size: 18px;
  color: var(--cream-light);
  background: linear-gradient(#428a80, var(--teal));
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset 0 -4px 0 var(--teal-deep), 4px 6px 0 rgba(32, 24, 24, 0.45);
  padding: 8px 20px 11px;
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--ink);
}
a.plate:hover { color: #fff; }
.plate.soon { background: linear-gradient(#8b7b67, #76675a); box-shadow: inset 0 -4px 0 #5d5146, 4px 6px 0 rgba(32, 24, 24, 0.35); }

.intro { margin-top: 26px; }

/* The counter at the foot of the home: the game's diners, and a shrimp on its way into an open mouth. */
.counter {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  margin: 26px -18px 0;
  padding: 0 8px;
  border-bottom: 14px solid var(--brick-deep);
  box-shadow: 0 3px 0 var(--ink);
}
.counter img { display: block; height: 92px; width: auto; }
.counter .catch { position: relative; display: block; }
.counter .flying { position: absolute; height: 44px; top: -30px; right: -30px; transform: rotate(-28deg); }

footer {
  margin-top: 34px;
  padding-top: 12px;
  border-top: 3px solid var(--ink);
  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: 28px; height: auto; margin-left: auto; transform: rotate(-18deg); }
.counter + footer { border-top: 0; margin-top: 18px; padding-top: 4px; }

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

/* The page that is not there. */
.burnt { display: block; width: 120px; height: auto; margin: 10px auto 4px; }
.missing { text-align: center; }

@media (min-width: 620px) {
  body { padding: 28px 16px 44px; }
  main { padding: 28px 44px 32px; }
  h1 { font-size: 38px; }
  .hero .wordmark { font-size: 64px; }
  nav.top { padding: 6px 18px 8px; font-size: 18px; }
  nav.top .home { font-size: 21px; }
  .plate { font-size: 21px; padding: 9px 26px 12px; }
  .counter { margin: 30px -44px 0; gap: 10px; }
  .counter img { height: 120px; }
  .counter .flying { height: 56px; top: -40px; right: -40px; }
}
