/* Mountain View email signup: lean port of the site's brand tokens. */
@font-face {
  font-family: "Anton";
  src: url("/fonts/Anton-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #d71920;
  --red-dark: #8f0018;
  --red-press: #b3151b;
  --yellow: #ffc400;
  --yellow-press: #eab400;
  --ink: #111111;
  --off-white: #faf8f4;
  --grey: #f0f0f0;
  --hairline: #e4e1da;
  --green: #1e9e4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip-link:focus {
  left: 0;
  z-index: 10;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}
.site-name {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

body.embedded {
  background: transparent;
}
body.embedded .wrap {
  max-width: 38rem;
  padding: 1rem 1rem 2rem;
}

.display {
  font-family: "Anton", "Barlow Condensed", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.15;
  margin: 0.75rem 0 0.5rem;
  text-transform: uppercase;
}

h2 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 0.35rem;
}

.lede {
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.optional,
.dim {
  color: #5c5952;
}

/* Forms */
.field {
  margin: 0 0 1.25rem;
}
.field label {
  display: block;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border: 2px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea:focus,
input:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.field-error {
  color: var(--red-dark);
  font-weight: bold;
  margin: 0 0 0.35rem;
}

.field-check .check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 1rem;
}
.field-check input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0.1rem 0 0;
  accent-color: var(--red);
}

/* Buttons */
.btn {
  display: inline-block;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  width: 100%;
}
.btn-primary:active {
  background: var(--red-press);
}
.btn-primary:disabled {
  background: var(--red-press);
  opacity: 0.8;
}
.btn-secondary {
  background: var(--ink);
  color: #fff;
}
.btn-small {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: var(--grey);
  color: var(--ink);
  width: auto;
}

/* Notices */
.notice {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0 1.25rem;
}
.notice-ok {
  background: #e8f6ed;
  border: 2px solid var(--green);
}
.notice-error {
  background: #fdeeee;
  border: 2px solid var(--red-dark);
  color: var(--red-dark);
  font-weight: bold;
}
.notice-warn {
  background: #fff7dd;
  border: 2px solid var(--yellow-press);
}

/* Review link section */
.review-link {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 3px solid var(--yellow);
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  box-shadow: 7px 7px 0 var(--red);
}
.review-link h2 {
  font-family: "Anton", "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.review-kicker {
  margin: 0 0 0.35rem;
  color: var(--yellow);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.review-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.2rem auto;
  font-size: clamp(2.3rem, 11vw, 4rem);
  line-height: 1;
  gap: clamp(0.15rem, 1.2vw, 0.45rem);
}
.review-star {
  color: #737373;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.review-stars:hover .review-star,
.review-stars:focus-within .review-star {
  color: var(--yellow);
}
.review-stars .review-star:hover ~ .review-star,
.review-stars .review-star:focus ~ .review-star {
  color: #737373;
}
.review-star:hover,
.review-star:focus-visible {
  transform: translateY(-3px) scale(1.08);
}
.review-button {
  display: block;
  width: 100%;
  background: var(--yellow);
  color: var(--ink);
}
.review-optional {
  margin: 1rem 0 0;
  color: #d7d7d7;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .review-star { transition: none; }
}

/* Honeypot — off-screen, not display:none, so simple bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Staff */
.staff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.staff-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.tabs {
  display: flex;
  gap: 0.35rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--grey);
  color: var(--ink);
  text-decoration: none;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 600;
}
.tabs a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.card {
  background: #fff;
  border: 2px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 0 1rem;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.card-email {
  font-weight: bold;
  overflow-wrap: anywhere;
}
.card-status {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--grey);
}
.status-active {
  background: #e8f6ed;
  color: var(--green);
}
.status-unsubscribed {
  background: var(--grey);
  color: #5c5952;
}
.card-head time {
  margin-left: auto;
  color: #5c5952;
  font-size: 0.85rem;
}
.card-consent {
  margin: 0.35rem 0;
}
.card-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}

.qr-preview {
  background: #fff;
  border: 2px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem;
  max-width: 20rem;
  margin: 0 0 1.25rem;
}
.qr-preview svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  text-align: center;
  color: #5c5952;
  font-size: 0.85rem;
  padding: 1rem;
  border-top: 1px solid var(--hairline);
}

code {
  background: var(--grey);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
