/* The Tasting Press — brand styles
   Palette: cream #F5EFE3 · burgundy #5E2233 · forest #31493A · gold #B08A4C */

:root {
  --cream:    #F5EFE3;
  --burgundy: #5E2233;
  --forest:   #31493A;
  --gold:     #B08A4C;
  --ink:      #2B2622;
  --paper:    #FBF8F2;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1.25rem 3rem;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.wrap { width: 100%; max-width: 40rem; }

/* --- Masthead ------------------------------------------------------------ */

.crest {
  display: block;
  margin: 0 auto 1.5rem;
  width: 68px;
  height: 68px;
}

h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.15;
  color: var(--burgundy);
  margin: 0 0 .75rem;
  letter-spacing: .01em;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  color: var(--forest);
  margin: 0 0 1.5rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--gold);
  width: 4.5rem;
  margin: 0 auto 1.5rem;
}

.lede {
  font-size: 1.05rem;
  margin: 0 auto 2.25rem;
  max-width: 32rem;
  color: var(--ink);
}

/* --- Signup card --------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid rgba(176, 138, 76, .38);
  border-radius: 3px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(43, 38, 34, .05);
}

.card h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.2rem;
  color: var(--burgundy);
  margin: 0 0 .35rem;
}

.card p.hint {
  font-size: .92rem;
  color: #6A6058;
  margin: 0 0 1.25rem;
}

form { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }

input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: .7rem .85rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(43, 38, 34, .28);
  border-radius: 2px;
}

input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

button {
  flex: 0 0 auto;
  padding: .7rem 1.5rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--cream);
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease;
}

button:hover { background: #4A1A28; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Honeypot: hidden from humans, visible to naive bots. Not display:none,
   which some bots skip — pushed off-canvas instead.
   .sr-only is the same treatment for genuine screen-reader labels. */
.hp,
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Messages ------------------------------------------------------------ */

.msg {
  margin: 0 0 1.25rem;
  padding: .7rem .9rem;
  border-radius: 2px;
  font-size: .95rem;
  text-align: left;
}

.msg.ok   { background: rgba(49, 73, 58, .1);  border-left: 3px solid var(--forest);  color: var(--forest); }
.msg.bad  { background: rgba(94, 34, 51, .08); border-left: 3px solid var(--burgundy); color: var(--burgundy); }

/* --- Footer -------------------------------------------------------------- */

footer {
  margin-top: 2.5rem;
  font-size: .85rem;
  color: #6A6058;
}

footer .sep { color: var(--gold); margin: 0 .5rem; }

@media (max-width: 30rem) {
  body { padding-top: 1.5rem; }
  form { flex-direction: column; }
  button { width: 100%; }
}
