/*
 * The binding page's only styles (the CSP allows no inline style).
 * Glossy's look, read from glossy.co on 2026-10-24: black on white, Playfair
 * Display headlines, Poppins for everything else, and red #e30202 for Glossy+
 * (`.plus-eyebrow` there). The fonts are served from this site (fonts/, under
 * the SIL Open Font License, OFL-*.txt), so the CSP admits no third party.
 */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-display-700.woff2") format("woff2");
}

:root {
  --ink: #161616;
  --paper: #ffffff;
  --muted: #666666;
  --rule: #e6e6e6;
  --wash: #f8f8f8;
  --plus: #e30202;
  --member: #1f7a55;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 16px 20px;
  border-bottom: 1px solid var(--rule);
}

.logo {
  display: block;
  width: 180px;
  height: auto;
}

.plus-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--plus);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app {
  display: flex;
  justify-content: center;
  padding: 28px 16px 8px;
}

.card {
  width: 100%;
  max-width: 440px;
}

.heading {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.heading:focus {
  outline: none;
}

.line {
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.linked {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--wash);
  border-left: 3px solid var(--ink);
}

.linked.member {
  border-left-color: var(--member);
}

.linked.not-member {
  border-left-color: var(--plus);
}

.linked-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.linked.member .linked-label {
  color: var(--member);
}

.linked.not-member .linked-label {
  color: var(--plus);
}

.linked-email {
  font-size: 15px;
  word-break: break-all;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 18px;
}

.label {
  font-size: 13px;
  font-weight: 600;
}

/* 16px keeps iOS from zooming into the field. */
.input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}

.input[aria-invalid="true"] {
  border-color: var(--plus);
}

.field-error {
  margin: 0;
  color: var(--plus);
  font-size: 14px;
}

.button {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: #000000;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.subscribe {
  margin: 4px 0 0;
  font-size: 15px;
}

.subscribe-link {
  color: var(--plus);
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--plus);
  outline-offset: 2px;
}

.footer {
  display: flex;
  justify-content: center;
  padding: 12px 16px 40px;
}

.footer p {
  max-width: 440px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
