/* Morse Quest site. Colours match MorseQuest/UI/Theme.swift. No external requests. */
:root {
  --paper: #f3e9d2;
  --cream: #fffdf6;
  --ink: #1b1b1b;
  --red: #e4472b;
  --mustard: #f2b632;
  --teal: #1f8a7d;
  --dim: rgba(27, 27, 27, 0.62);
  --stroke: 2.5px;
  --depth: 5px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(27, 27, 27, 0.1) 1px, transparent 1.5px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.55;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1 {
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 8px;
}

h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 26px 0 6px;
}

p, li { color: rgba(27, 27, 27, 0.8); }
p { margin: 0 0 12px; }
ul { padding-left: 20px; margin: 0 0 12px; }

.dim { color: var(--dim); font-size: 14px; }

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: var(--stroke) solid var(--ink);
}

.card {
  background: var(--cream);
  border: var(--stroke) solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--depth) var(--depth) 0 var(--ink);
  padding: 20px;
  margin: 22px var(--depth) 0 0;
}

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.stamp {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  transform: rotate(-3deg);
  margin-bottom: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.hero img.shot {
  width: 100%;
  max-width: 280px;
  height: auto;
  justify-self: center;
  border: var(--stroke) solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--depth) var(--depth) 0 var(--ink);
}

@media (min-width: 640px) {
  .hero { grid-template-columns: 1.2fr 1fr; }
}

.morse {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 16px 0;
}

.morse i { display: block; height: 12px; border-radius: 6px; background: var(--ink); }
.morse .dot { width: 12px; }
.morse .dash { width: 32px; }
.morse .gap { width: 10px; background: none; }
.morse .hot { background: var(--red); }

.features { list-style: none; padding: 0; margin: 0; }
.features li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.features li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--mustard);
  border: 2px solid var(--ink);
}
.features b { color: var(--ink); }

.button {
  display: inline-block;
  background: var(--red);
  color: var(--cream);
  border: var(--stroke) solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover { color: var(--cream); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button.quiet { background: var(--cream); color: var(--ink); }
.button.quiet:hover { color: var(--ink); }

footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 2px dashed rgba(27, 27, 27, 0.35);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
footer span { color: var(--dim); margin-left: auto; }
