/* nur-ein-test: workshop-paper look. Sage ground, forest ink, raspberry maker's mark. */

@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces-v38-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/static/fonts/karla-v33-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/static/fonts/karla-v33-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/static/fonts/karla-v33-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #dde4dc;
  --chalk: #f6f8f3;
  --ink: #1c2a22;
  --ink-soft: #47584d;
  --mark: #c0446b;
  --mark-text: #a12f55;
  --brass: #9c6b17;
  --rule: #c3cec2;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.14rem);
  line-height: 1.65;
  text-wrap: pretty;
  /* faint horizontal grain, like a workbench sheet */
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(28, 42, 34, 0.035) 0 1px,
    transparent 1px 9px
  );
}

.sheet {
  width: min(100% - 2.2rem, 46rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 8vw, 5rem);
}

/* The bare version: one greeting, centred on the sheet, nothing else. */
body.plain {
  display: grid;
  place-items: center;
}
body.plain .sheet {
  padding-block: 0;
  text-align: center;
}
body.plain .stroke {
  margin-inline: auto;
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mark-text);
  margin: 0 0 1.1rem;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 1.5rem + 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

/* Signature: the pencil stroke that gets drawn under the headline on arrival. */
.stroke {
  display: block;
  width: min(100%, 22rem);
  height: 1.6rem;
  margin: 0.35rem 0 var(--step);
  overflow: visible;
}
.stroke path {
  fill: none;
  stroke: var(--mark);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.4rem;
  max-width: 34ch;
  text-wrap: balance;
}

p { margin: 0 0 1.4rem; color: var(--ink-soft); max-width: 62ch; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--step) 0;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 1.3rem;
}

.says {
  list-style: none;
  margin: 0 0 var(--step);
  padding: 0;
  display: grid;
  gap: 1rem;
}

.says li {
  background: var(--chalk);
  border-left: 4px solid var(--mark);
  border-radius: 0.2rem 0.7rem 0.7rem 0.2rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 0 rgba(28, 42, 34, 0.06), 0 10px 22px -18px rgba(28, 42, 34, 0.6);
}

.says q {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.35;
  quotes: "\201E" "\201C";
}

.says span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Maker's mark, stamped a little crooked on the corner of the sheet. */
.mark {
  display: inline-block;
  transform: rotate(-3.5deg);
  border: 2px solid var(--brass);
  border-radius: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0.85;
}

:where(a, button):focus-visible {
  outline: 3px solid var(--mark-text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .stroke path {
    animation: none;
    stroke-dashoffset: 0;
  }
}
