/* The start page (ADR 0038) in the colours of the game's Pompeii look (client/lib/theme.dart): the fresco's red, ochre
   gold, umber and parchment. No web fonts: nothing is asked of another site before the page shows. */
:root {
  --umber: #1c120d;
  --umber-raised: #2a1a10;
  --red: #7a1f1b;
  --red-deep: #4e1412;
  --gold: #d9a441;
  --gold-soft: #b9883a;
  --parchment: #f4e7cc;
  --muted: #bfae95;
  --error: #ffb3a3;
  --ok: #a9dc98;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--umber);
  color: var(--parchment);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
[hidden] { display: none !important; }
/* landing/lang.js sets it while the page is about to switch to English; landing.js takes it away. */
html.lang-pending [data-i18n], html.lang-pending [data-i18n-placeholder] { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 10px 20px;
  background: rgba(28, 18, 13, .92);
  border-bottom: 1px solid rgba(185, 136, 58, .35);
  backdrop-filter: blur(6px);
}
.brand {
  font: 600 20px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}
.bar-links { display: flex; align-items: center; gap: 18px; }
.bar-links a { color: var(--parchment); text-decoration: none; font-size: 15px; }
.bar-links a:hover { color: var(--gold); }
.lang {
  font: 600 13px/1 var(--sans); letter-spacing: .08em;
  color: var(--gold); background: transparent;
  border: 1px solid var(--gold-soft); border-radius: 999px; padding: 6px 10px; cursor: pointer;
}
.lang:hover { background: rgba(217, 164, 65, .12); }

.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 680px);
  display: flex; align-items: center;
  padding: 64px 20px 72px;
  background:
    radial-gradient(ellipse at 70% 110%, rgba(226, 187, 105, .28), transparent 55%),
    linear-gradient(180deg, var(--red-deep), var(--red) 70%, #8f2a22);
}
.hero-inner { position: relative; z-index: 1; min-width: 0; max-width: 720px; margin: 0 auto 0 max(20px, 8vw); }
.kicker { margin: 0 0 8px; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: 14px; }
h1 {
  margin: 0 0 20px;
  font: 600 clamp(34px, 10vw, 104px)/1 var(--serif); letter-spacing: .08em; text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}
.motto { margin: -8px 0 20px; color: var(--gold); font: italic clamp(17px, 2.2vw, 20px)/1.45 var(--serif); max-width: 600px; }
.lead { margin: 0 0 32px; font-size: clamp(17px, 2.2vw, 20px); max-width: 600px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-note { max-width: 320px; font-size: 14px; color: var(--parchment); opacity: .85; }

/* The amphitheatre's arcade, drawn in ochre on the red: two tiers of arches under a cornice. */
.arch {
  position: absolute; right: 0; bottom: 0; width: min(560px, 55vw); height: 300px;
  opacity: .2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='200' fill='none' stroke='%23d9a441' stroke-width='3'%3E%3Cpath d='M0 4H80M0 78H80M8 78V42A32 32 0 0 1 72 42V78M4 200V122A36 36 0 0 1 76 122V200'/%3E%3C/svg%3E") right bottom / 80px 200px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.button {
  display: inline-block; padding: 13px 26px;
  border: 1px solid var(--gold); border-radius: 4px;
  font: 600 16px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--gold); background: transparent; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.button:hover { background: rgba(217, 164, 65, .14); }
.button.primary { background: var(--gold); color: var(--umber); }
.button.primary:hover { background: #e8b75a; transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }

/* A Greek key, the border of Pompeian frescoes. */
.meander {
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23b9883a' stroke-width='2'%3E%3Cpath d='M0 19H20M18 19V1H4V15H14V5H8V11H11'/%3E%3C/svg%3E") center / 20px 20px repeat-x;
  opacity: .55;
  margin: 0 20px;
}

.section { max-width: 1080px; margin: 0 auto; padding: 64px 20px; }
h2 {
  margin: 0 0 28px; text-align: center;
  font: 600 clamp(28px, 4.5vw, 38px)/1.15 var(--serif); letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}
.center { text-align: center; }
.muted { color: var(--muted); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 880px; margin: 0 auto; }
.card {
  padding: 22px 22px 18px;
  background: var(--umber-raised);
  border: 1px solid rgba(185, 136, 58, .28); border-top: 3px solid var(--red);
  border-radius: 4px;
}
.card h3 { margin: 0 0 8px; font: 600 20px/1.25 var(--serif); color: var(--parchment); letter-spacing: .02em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.steps-section { padding-top: 16px; }
.steps { list-style: none; margin: 0 auto 32px; padding: 0; max-width: 760px; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 16px; font-size: 18px; }
.steps .num {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  border: 2px solid var(--gold); border-radius: 50%;
  font: 600 17px/1 var(--serif); color: var(--gold);
}

.community { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 20px 0 8px; }

.feedback { max-width: 640px; margin: 24px auto 0; }
.fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.fields:disabled { opacity: .6; }
.kinds { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kinds label {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 14px; border: 1px solid rgba(185, 136, 58, .5); border-radius: 999px; font-size: 15px;
}
.kinds label:has(input:checked) { background: rgba(217, 164, 65, .16); border-color: var(--gold); }
.kinds input { accent-color: var(--gold); margin: 0; }
.field { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.field textarea, .field input {
  width: 100%; padding: 12px 14px;
  font: 16px/1.5 var(--sans); color: var(--parchment);
  background: var(--umber-raised); border: 1px solid rgba(185, 136, 58, .45); border-radius: 4px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field textarea:focus, .field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.feedback .button { justify-self: start; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; min-height: 1.6em; font-size: 15px; }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }

.foot { padding: 28px 20px 36px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid rgba(185, 136, 58, .25); }
.foot p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { padding: 10px 16px; }
  .bar-links { gap: 12px; }
  .bar-links a:not(:last-of-type) { display: none; }
  .hero { padding: 48px 16px 56px; min-height: auto; }
  .hero-inner { margin: 0; width: 100%; }
  h1 { letter-spacing: .04em; }
  .arch { width: 90vw; height: 40%; opacity: .14; }
  .section { padding: 48px 16px; }
  .cards { grid-template-columns: 1fr; }
  .meander { margin: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
