@font-face {
  font-family: "Poltawski Nowy";
  src: url("poltawski-nowy-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Poltawski Nowy";
  src: url("poltawski-nowy-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20C0;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("sofia-sans-condensed-latin-wght-normal.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("sofia-sans-condensed-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20C0;
}

:root {
  --desk: #b7c1d9;
  --slip: #ffe27c;
  --ink: #171d3d;
  --pen: #1f3fae;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--desk);
  color: var(--ink);
  font: 400 1.3rem/1.35 "Sofia Sans Condensed", "Arial Narrow", Arial, sans-serif;
}

header,
main,
footer {
  width: min(100% - 2.5rem, 34rem);
  margin-inline: auto;
}

header {
  padding: 1.4rem 0;
}

img {
  display: block;
}

.slip {
  rotate: -0.8deg;
  background: var(--slip);
  padding: 1.8rem 2rem 1.6rem;
  mask: radial-gradient(circle at 7px 0, transparent 3px, #000 3.5px) 0 0 / 14px 100% repeat-x;
}

h1 {
  font: 700 2.6rem/1.1 "Poltawski Nowy", Palatino, Georgia, serif;
  margin: 0 0 0.8rem;
}

p {
  margin: 0 0 1.2rem;
}

a {
  color: inherit;
  text-decoration-color: var(--pen);
  text-underline-offset: 0.18em;
}

#email {
  display: block;
  width: 100%;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 2px dotted var(--ink);
  border-radius: 0;
  background: none;
  color: var(--pen);
  font: inherit;
  font-size: 1.6rem;
}

#email + label {
  display: block;
  text-align: center;
  font-size: 1.05rem;
}

.error {
  margin: 0.4rem 0 0;
  font-weight: 700;
  color: #9b1230;
}

/* Honeypot: kept off screen, because bots often skip display:none fields. */
.extra {
  position: absolute;
  left: -9999px;
}

button {
  margin: 1.2rem 0;
  padding: 0.6rem 1.5rem;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--pen);
}

:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 2px;
}

.small {
  margin: 0;
  font-size: 1.05rem;
}

footer {
  margin-top: auto;
  padding-top: 2rem;
}

footer img {
  width: 12rem;
  height: auto;
  margin-left: auto;
}
