:root {
  --paper: #f2ede1;
  --paper-shade: #e6dfcd;
  --ink: #2a2622;
  --ink-soft: rgba(42, 38, 34, 0.72);
  --rule: rgba(42, 38, 34, 0.45);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;

  background-color: var(--paper);
  /* Soft vignette so the sheet reads as paper rather than flat colour */
  background-image:
    radial-gradient(ellipse at 50% 40%,
      rgba(255,255,255,0.55) 0%,
      rgba(255,255,255,0) 55%),
    radial-gradient(ellipse at 50% 50%,
      rgba(0,0,0,0) 55%,
      rgba(120,100,70,0.10) 100%);
  background-attachment: fixed;

  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino,
               "Times New Roman", Times, "Liberation Serif", serif;
  -webkit-font-smoothing: antialiased;
}

/* Paper fibre — generated, no external asset */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'>\
<filter id='f'>\
<feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/>\
<feColorMatrix type='saturate' values='0'/>\
</filter>\
<rect width='180' height='180' filter='url(%23f)' opacity='0.55'/>\
</svg>");
}

main {
  position: relative;
  text-align: center;
  width: min(34rem, 100%);
}

h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.75rem, 6vw, 3.25rem);
  letter-spacing: 0.14em;
  text-indent: 0.14em; /* balance the trailing letter-space */
  text-transform: uppercase;
  line-height: 1.25;
}

.rule {
  width: min(220px, 60vw);
  height: 1px;
  margin: 1.75rem auto;
  background: linear-gradient(to right,
    rgba(42,38,34,0) 0%,
    var(--rule) 50%,
    rgba(42,38,34,0) 100%);
}

p {
  margin: 0 auto;
  max-width: 32rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

p + p { margin-top: 1rem; }

a {
  color: var(--ink);
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-color: var(--ink); }

/* ---- Contact form ---- */

form {
  margin-top: 2rem;
  text-align: left;
}

.field { margin-bottom: 1.25rem; }

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

input, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

button {
  display: block;
  margin: 0 auto;
  padding: 0.7rem 2.25rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover { background: var(--paper-shade); }

button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.status {
  margin-top: 1.25rem;
  min-height: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.status[data-state="error"] { color: #8a2f20; }

/* Honeypot — hidden from people, visible to bots */
.gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
