/* jonassteitz.de – minimal private page.
   Palette and proportions from the 2004 site: a thin gold bar, a green wordmark band
   with a linen texture, a 640px centred box with 1px dark borders, yellow #ffcc33. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #ffcc33;
  --gold-dark: #cfa220;
  --green: #367030;
  --green-deep: #224422;
  --green-pale: #d7f5b6;
  --link: #008c15;
  --paper: #fffaf0;
  --ink: #1f2a1f;
  --muted: #5c6b5c;
  --line: #224422;
  --box: 640px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;              /* iOS Safari: the visible area, not the one under the toolbars */
  touch-action: manipulation;      /* no double-tap zoom delay on links and buttons */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: var(--gold);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
  color: var(--ink);
  font-family: "Bricolage Grotesque", Verdana, Geneva, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  font-optical-sizing: auto;
}

.spiel { position: fixed; inset: 0; z-index: 0; touch-action: none; }
.hud {
  position: fixed; left: 16px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; color: var(--green-deep);
  opacity: 0.72;
  pointer-events: none;
  white-space: nowrap;
}
.hud-body { display: inline-flex; align-items: center; gap: 10px; }
.hud-title { font-weight: 700; }
.hud-next {
  pointer-events: auto;
  margin: 0; padding: 0 4px;
  font: inherit; font-size: 1rem; line-height: 1;
  color: inherit; background: none; border: 0; border-radius: 2px;
  cursor: pointer;
}
.hud-next:hover, .hud-next:active, .hud-next:focus { background: none; }   /* never the green button background */
@media (hover: hover) { .hud-next:hover { color: var(--green); } }
.hud-next:focus-visible { outline: 2px solid var(--gold-dark); }
.hud-item { display: inline-flex; align-items: center; gap: 5px; }
.hud-item .digits { display: block; height: 14px; width: auto; }
@media (max-width: 640px) {
  .hud { left: max(10px, env(safe-area-inset-left)); bottom: max(8px, env(safe-area-inset-bottom)); gap: 8px; }
  .hud-hint { display: none; }
}
@media (pointer: coarse) {
  .hud { opacity: 0.85; }
  .hud-next { padding: 8px 12px; margin-left: -8px; font-size: 1.3rem; -webkit-tap-highlight-color: transparent; }
}

.box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--box);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 rgba(34,68,34,.25);
}

.mode-tree .box { background: rgba(255,250,240,.8); }
.mode-through .box { background: rgba(255,250,240,.72); }   /* phones: snake and ball pass beneath */

.bar {
  height: 10px;
  background: linear-gradient(180deg, #ffe07a 0%, var(--gold) 45%, var(--gold-dark) 100%);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  margin: 0;
  padding: 18px 26px 16px;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 2px),
    linear-gradient(180deg, #86c94a 0%, #5aa634 55%, var(--green) 100%);
  color: var(--green-pale);
  font-size: clamp(1.6rem, 6vw, 2.25rem);
  font-weight: 800;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  border-bottom: 1px solid var(--line);
}
.wordmark a { color: inherit; text-decoration: none; }

.content { padding: 22px 26px 6px; }
.content p { margin: 0 0 0.9rem; max-width: 34rem; }
.content.start { padding: 34px 26px 26px; }
.content.start p { margin: 0; }

h1 {
  margin: 0 0 0.6rem;
  color: var(--green-deep);
  font-size: 1.4rem;
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.content.start h1 { margin-bottom: 1.1rem; }

a { color: var(--link); text-underline-offset: 0.14em; }
a:hover { color: var(--green); }
a:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }

/* Buttons */
button, .button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  color: #fff;
  background: linear-gradient(180deg, #4a9a3c, var(--green));
  border: 1px solid var(--green-deep);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) { button:hover, .button:hover { background: var(--green); color: #fff; } }   /* touch would keep the hover state stuck */
button:focus-visible, .button:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }

/* Form */
.form { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { display: block; margin: 0 0 0.7rem; }
.field span { display: block; margin-bottom: 0.2rem; font-weight: 600; font-size: 0.9375rem; color: var(--green-deep); }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 1px;
}
.captcha { display: flex; align-items: flex-end; gap: 14px; }
.captcha img { display: block; width: 180px; height: 60px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 0.7rem; }
.captcha .field { flex: 1; }
.captcha input { text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; align-items: center; gap: 1rem; margin: 0.2rem 0 0.9rem; }

.fineprint {
  margin: 0 0 0.6rem !important;
  max-width: none !important;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.notice {
  padding: 0.55rem 0.8rem;
  margin: 0 0 0.8rem;
  max-width: 34rem;
  border: 1px solid var(--line);
  background: #fff3c4;
}
.notice.error { background: #ffe1dc; }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 12px 26px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer .counter { display: inline-flex; align-items: center; gap: 0.5rem; }
.privacy { margin-left: auto; }
.privacy[open] { flex-basis: 100%; margin-left: 0; }
.privacy summary {
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  list-style: none;
  text-align: right;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary:hover { color: var(--green); }
.privacy summary:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.privacy p { margin: 0.6rem 0 0; font-size: 0.8125rem; line-height: 1.4; }
.privacy b { color: var(--green-deep); font-weight: 700; }
.footer .counter img { height: 18px; width: auto; border: 1px solid var(--line); }
.footer .spacer { flex: 1; }

@media (max-width: 520px) {
  body { padding: 12px; }
  .content, .footer { padding-left: 18px; padding-right: 18px; }
  .content.start { padding-top: 26px; padding-bottom: 20px; }
  .wordmark { padding: 16px 18px 14px; }
  .grid2 { grid-template-columns: 1fr; }
  .captcha { flex-wrap: wrap; align-items: stretch; }
  .captcha img { margin-bottom: 0.4rem; }
  .footer { padding-top: 10px; padding-bottom: 12px; }
}
