:root {
  --ink: #2c4e3d;
  --hero-olive: #403d22;
  --paper: #fffaf0;
  --cream: #fff3dc;
  --meadow: #697b47;
  --poppy: #dc645f;
  --marigold: #edc858;
  --sky: #c5e2e9;
  --line: rgba(44, 78, 61, 0.25);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button,
input { font: inherit; }

.entry-shell {
  min-height: 100svh;
}

button,
.prototype-note,
.help,
footer {
  font-family: "DM Mono", monospace;
}

.entry-panel {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 7vw, 7rem);
  place-items: center;
  overflow: hidden;
  background: var(--cream);
  text-align: left;
}

.centered-block {
  width: min(100%, 30rem);
}

.wordmark {
  position: relative;
  z-index: 1;
  width: 6.4rem;
  margin: 0 auto;
}

.wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }
.heart-line { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.heart-line-main { stroke-width: 2.1; }
.heart-line-echo { stroke: var(--poppy); stroke-width: 1.65; transform: translate(3px, 2px); }
.wordmark text { fill: var(--ink); font: 400 26px "Homemade Apple", cursive; letter-spacing: -0.5px; }

.entry-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: clamp(2.5rem, 6vh, 4rem) 0;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.8rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.86;
  white-space: normal;
}

h1 span { display: block; white-space: nowrap; }

.intro {
  max-width: 34rem;
  margin: 2rem 0 2.6rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.48;
}

form { display: grid; width: 100%; max-width: 25rem; gap: 0.75rem; }

.input-wrap {
  position: relative;
  border-bottom: 1px solid var(--ink);
}

.input-wrap::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--poppy);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.input-wrap:focus-within::after { transform: scaleX(1); }

input {
  width: 100%;
  padding: 0.9rem 2.5rem 0.9rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  text-align: left;
}

input::placeholder { color: rgba(44, 78, 61, 0.48); }

button {
  display: inline-flex;
  width: fit-content;
  min-width: 8.25rem;
  min-height: 3.2rem;
  margin-top: 1rem;
  padding: 0.85rem 1.2rem 0.85rem 1.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--meadow);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  justify-self: start;
}

button span { font-size: 1rem; line-height: 1; }
button:hover { background: var(--poppy); transform: translateY(-2px); }
button:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

.form-message { min-height: 1.25rem; margin: 0.25rem 0 0; color: var(--poppy); font-size: 0.9rem; }

.prototype-note,
.help {
  max-width: 34rem;
  font-size: 0.62rem;
  line-height: 1.55;
}

.prototype-note { margin: 1.35rem 0 0; color: rgba(44, 78, 61, 0.62); }
.help { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }

footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  font-size: 0.61rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer span:nth-child(2) { color: var(--poppy); }

@media (max-width: 860px) {
  .entry-panel { padding: 1.5rem 1.25rem 1.4rem; }
  .entry-content { margin: 3rem 0 3.5rem; }
  h1 { font-size: clamp(3.5rem, 14vw, 5.4rem); white-space: normal; }
  h1 span { display: block; white-space: nowrap; }
  footer { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .entry-content { margin: 2.5rem 0 3rem; }
  h1 { font-size: clamp(3.25rem, 15vw, 4.5rem); }
  .intro { margin-top: 1.65rem; }
  button { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .input-wrap::after,
  button { transition: none; }
}
