:root {
  --parchment: #F6EFDC;
  --card: #FFFDF8;
  --ink: #111111;
  --teal: #B8E7EA;
  --violet: #DCB8EA;
  --peri: #B8C2EA;
  --magenta: #EAB8E6;
  --canary: #EAE7B8;
  --teal-a: #32C7D1;
  --peri-a: #7080C0;
  --violet-a: #CF74F2;
  --magenta-a: #FC74EF;
  --canary-a: #FCF25D;
  --teal-dark: #17636A;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

a { color: var(--teal-dark); }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px 3rem;
}

/* Header with the large low-opacity mark seated behind the name */
.masthead {
  position: relative;
  text-align: center;
  padding: 4.5rem 0 4rem;
  overflow-x: clip;
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(17rem, 72vw);
  aspect-ratio: 240 / 265;
  transform: translate(-50%, -50%);
  background: url("images/sunflower-v16.png") center / contain no-repeat;
  image-rendering: pixelated;
  opacity: 0.16;
  pointer-events: none;
}
.masthead > * { position: relative; }

.pixel {
  font-family: "Silkscreen", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peri-a);
  margin: 0 0 0.75rem;
}

h1, h2 {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-weight: 700;
  color: var(--teal-dark);
  text-shadow: 2px 2px 0 var(--peri), 4px 4px 0 rgba(112, 128, 192, 0.35);
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); margin-bottom: 0.5rem; }

.name {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 1.15rem;
  margin: 0.9rem 0 0.4rem;
}
.tagline { margin: 0; font-size: 1.25rem; }

/* Cards framed top & bottom with stair-stepped pixel scallops */
.card {
  --edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' shape-rendering='crispEdges'%3E%3Cg fill='%237080C0'%3E%3Crect x='3' y='0' width='6' height='1'/%3E%3Crect x='1' y='1' width='10' height='1'/%3E%3Crect x='0' y='2' width='12' height='4'/%3E%3C/g%3E%3Cg fill='%23FFFDF8'%3E%3Crect x='3' y='1' width='6' height='1'/%3E%3Crect x='1' y='2' width='10' height='1'/%3E%3Crect x='0' y='3' width='12' height='3'/%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  background: var(--card);
  box-shadow: inset 3px 0 0 var(--peri-a), inset -3px 0 0 var(--peri-a);
  margin: 3rem 0;
  padding: 1.25rem 1.5rem;
}
.card::before,
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: var(--edge) center top / 36px 18px repeat-x;
  image-rendering: pixelated;
}
.card::before { top: -18px; }
.card::after { bottom: -18px; transform: scaleY(-1); }

.card.teal    { --wash: var(--teal); }
.card.violet  { --wash: var(--violet); }
.card.magenta { --wash: var(--magenta); }
.card .wash {
  height: 6px;
  background: var(--wash, var(--peri));
  margin: -0.25rem 0 1rem;
}
.card p { margin: 0 0 1rem; }
.card p:last-child { margin-bottom: 0; }

.button {
  display: inline-block;
  font-family: "Silkscreen", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--canary);
  border: 2px solid var(--peri-a);
  box-shadow: 3px 3px 0 var(--peri-a);
  padding: 0.7rem 1.1rem;
}
.button:hover { background: var(--canary-a); }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--peri-a); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--violet-a); outline-offset: 3px; }

/* Longer reading pages */
.prose p { margin: 0 0 1.1rem; }
.back {
  font-family: "Silkscreen", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Footer with the small crisp mark beside the signature */
footer {
  border-top: 2px dashed var(--peri);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
footer img { width: 64px; height: auto; }
footer .sig { font-family: "Cinzel Decorative", Georgia, serif; font-weight: 700; color: var(--teal-dark); }
footer .contact { font-size: 1.05rem; }
footer .contact a { text-decoration: none; }

.card .pixel { text-align: left; margin-bottom: 0.4rem; }
.card .note { font-size: 1.02rem; font-style: italic; }
