@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Archivo-Variable.woff2") format("woff2");
}

:root {
  --cream: #f6f0e1;
  --ink: #201c15;
  --muted: #6b6152;
  --sage: #6f7d55;
  --sage-deep: #566047;
}

* {
  box-sizing: border-box;
}

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

body {
  background-color: var(--cream);
  background-image: url("illustration-border.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 60px);
  overflow-x: hidden;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 2.6vw, 26px);
  max-width: 640px;
  animation: rise 700ms ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content {
    animation: none;
  }
}

.logo {
  width: clamp(86px, 9vw, 128px);
  height: clamp(86px, 9vw, 128px);
  object-fit: contain;
  display: block;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 15ch;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  color: var(--sage-deep);
}

.subhead {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
}

/* ---------- Button (hand-drawn sticker style) ---------- */

.cta-wrap {
  position: relative;
  margin-top: clamp(4px, 1vw, 10px);
  padding: 8px;
}

.cta-wrap::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transform: rotate(2deg);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: clamp(14px, 1.8vw, 18px) clamp(28px, 3.4vw, 38px);
  border-radius: 999px;
  transform: rotate(-1.4deg);
  transition: transform 180ms ease, background 180ms ease;
}

.cta:hover {
  transform: rotate(-1.4deg) translateY(-2px);
  background: var(--sage-deep);
}

.cta:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 4px;
}

.cta .arrow {
  font-size: 1.05em;
  transition: transform 180ms ease;
}

.cta:hover .arrow {
  transform: translate(2px, -2px);
}

.email-link {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--sage-deep);
  border-color: var(--sage-deep);
}

@media (max-width: 640px) {
  body {
    padding: 28px 20px;
  }
}
