:root {
  --paper: #f6f1e7;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --rule: #d9d2c2;
  --accent: #7a2e2e;
  --noise: rgba(0, 0, 0, 0.025);
  --noise-2: rgba(0, 0, 0, 0.02);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1814;
    --ink: #ede5d4;
    --ink-soft: #b8b0a0;
    --rule: #3d362c;
    --accent: #e08a7a;
    --noise: rgba(255, 255, 255, 0.03);
    --noise-2: rgba(255, 255, 255, 0.025);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

body {
  background-image:
    radial-gradient(var(--noise) 1px, transparent 1px),
    radial-gradient(var(--noise-2) 1px, transparent 1px);
  background-size:
    3px 3px,
    7px 7px;
  background-position:
    0 0,
    1px 1px;
  min-height: 100vh;
}

hr {
  border: 0;
  height: 14px;
  width: 100%;
  margin: 2rem auto;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 14' preserveAspectRatio='none'%3E%3Cpath d='M4 6.2 C 70 3.5 140 9 210 5.5 S 350 9.5 420 6.5 S 540 9 596 7.2' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 14' preserveAspectRatio='none'%3E%3Cpath d='M4 6.2 C 70 3.5 140 9 210 5.5 S 350 9.5 420 6.5 S 540 9 596 7.2' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

header {
  padding: 1.75rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

u {
  text-decoration: none;
  position: relative;
}

u::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6 Q 120 3.8 238 5.2' stroke='%237a2e2e' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  u::after {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6 Q 120 3.8 238 5.2' stroke='%23e08a7a' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  }
}

.lets-talk {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition:
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.lets-talk:hover {
  color: var(--ink);
  background: transparent;
  transform: translateY(-1px);
}

.content {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem;
}

.brand {
  margin: 0;
  padding: 0.7rem 0;
  border: 1px solid transparent;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 1rem;
  text-transform: lowercase;
  color: var(--ink);
}

.brand em {
  font-style: inherit;
  font-size: larger;
  color: var(--accent);
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.letter {
  font-family: "Playpen Sans", cursive;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
}

.jerod-photo-link {
  float: right;
  margin-left: 1.25rem;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

.jerod-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  shape-outside: circle(50%);
  object-fit: cover;
  border: 2px solid var(--paper);
  box-shadow:
    0 0 0 1px var(--rule),
    0 2px 6px rgba(0, 0, 0, 0.1);
  background: #ddd;
}

.jerod-photo-link:hover .jerod-photo {
  border-color: var(--accent);
}

.letter p {
  margin: 0 0 1.1rem;
}

.letter .aside {
  font-size: smaller;
  font-style: italic;
}

.letter a {
  color: inherit;
  text-decoration: underline dashed;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
}

.letter a:hover {
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}

.signoff {
  margin-top: 3rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.signoff .closing {
  font-family: "Playpen Sans", cursive;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.signature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.signature-mark {
  display: block;
  width: 156px;
  max-width: 100%;
  aspect-ratio: 256 / 64;
  margin: 0.25rem 0;
  background-color: var(--ink);
  -webkit-mask-image: url("/assets/signature.png");
  mask-image: url("/assets/signature.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: right center;
  mask-position: right center;
}

.services {
  margin-top: 2rem;
}

.services h2 {
  font-family: "Playpen Sans", cursive;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services li {
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--rule);
}

.services li:last-child {
  border-bottom: none;
}

.services li a {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr;
  gap: 1.5rem;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
}

.services .service-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
  justify-self: start;
}

.services li a:hover .service-name {
  border-bottom-color: var(--accent);
}

.services .service-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.services .service-desc p {
  margin: 0;
}

.services .service-desc p + p {
  margin-top: 0.6rem;
}

.offer {
  margin-top: 1rem;
}

.offer h2,
.phases h2,
.fit h2 {
  font-family: "Playpen Sans", cursive;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.offer .tagline {
  font-family: "Playpen Sans", cursive;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.offer-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px dashed var(--rule);
}

.offer-list li:last-child {
  border-bottom: none;
}

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--accent);
  font-weight: 700;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin: 0 0 1.5rem;
  font-family: "Playpen Sans", cursive;
  font-size: 1.1rem;
}

.price-line .price {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.guarantee {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: rgba(122, 46, 46, 0.04);
}

@media (prefers-color-scheme: dark) {
  .guarantee {
    background: rgba(224, 138, 122, 0.06);
  }
}

.guarantee p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.guarantee p + p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.guarantee strong {
  color: var(--accent);
}

.phases {
  margin-top: 2rem;
}

.phase {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--rule);
}

.phase:last-child {
  border-bottom: none;
}

.phase-number {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-align: center;
}

.phase-content h3 {
  margin: 0 0 0.4rem;
  font-family: "Playpen Sans", cursive;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.phase-content h3 .duration {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 0.5rem;
}

.phase-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.phase-content p + p {
  margin-top: 0.5rem;
}

.fit {
  margin-top: 2rem;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.fit-grid h3 {
  margin: 0 0 0.6rem;
  font-family: "Playpen Sans", cursive;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.fit-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.fit-grid li {
  padding: 0.3rem 0 0.3rem 1.3rem;
  position: relative;
}

.fit-grid .yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.fit-grid .no li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.cta-block {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  text-wrap: pretty;
}

.cta-button {
  display: inline-block;
  padding: 1.1rem 2.2rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 2px solid var(--accent);
  transition:
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
  box-shadow: 0 2px 8px rgba(122, 46, 46, 0.2);
  cursor: pointer;
}

.cta-button:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 46, 46, 0.25);
}

.cta-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

footer {
  text-align: center;
  padding-bottom: 6rem;
}

.period {
  font-size: x-large;
  color: var(--accent);
}

@media (max-width: 600px) {
  header {
    padding: 2rem 1.25rem 0;
  }
  .content {
    padding: 2.5rem 1.25rem 2rem;
  }
  .lets-talk {
    padding: 0.55rem 1.1rem;
    font-size: 0.75rem;
  }
  .brand {
    padding: 0.55rem 0;
    font-size: 0.875rem;
  }
  .letter {
    font-size: 1rem;
  }
  .jerod-photo {
    width: 64px;
    height: 64px;
  }
  .letter p {
    margin: 0 0 1rem;
  }

  .services li a {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .offer h2,
  .phases h2,
  .fit h2 {
    font-size: 1.3rem;
  }

  .phase {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
  }

  .phase-number {
    font-size: 1.8rem;
  }

  .fit-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cta-button {
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
  }
}
