/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Variables ─────────────────────────────────────── */
:root {
  --ar-red: #8D171E;
  --black: #111111;
  --bg: #FAFAFA;
  --serif: 'GFS Didot', 'Didot', 'Bodoni Moda', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}

/* ── Base ──────────────────────────────────────────── */
html, body {
  height: 100%;
  margin: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* ── Screen-reader only ───────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Corner Fold ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 26vw;
  height: 30vh;
  background: rgba(43, 43, 43, 0.03);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Main — Grid centering ────────────────────────── */
main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

/* ── Content wrapper ──────────────────────────────── */
.content {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* ── Stack ────────────────────────────────────────── */
.stack {
  text-align: center;
  width: fit-content;
  margin: 0 auto;
}

/* ── Pre-heading ──────────────────────────────────── */
.pre-heading {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  color: #444444;
  margin-bottom: 4.25rem;
}

/* ── Brand Name ───────────────────────────────────── */
.brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7.5vw, 3.6rem);
  letter-spacing: 0.35em;
  line-height: 1.1;
  color: var(--black);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  font-kerning: none;
  font-feature-settings: "kern" 0;
  white-space: nowrap;
  display: inline-block;
  position: relative;
  padding-bottom: 1.75rem;
  margin-bottom: 2.75rem;
  /* Compensate trailing letter-spacing to kill right-drift */
  margin-right: -0.35em;
}

/* ── Underline (locked to heading width) ──────────── */
.brand-name::after {
  content: '';
  display: block;
  height: 2px;
  width: 72%;
  margin: 20px auto 0;
  background: var(--ar-red);
}

/* ── Subtext ──────────────────────────────────────── */
.subtext {
  font-family: var(--sans);
  font-weight: 300;
  font-style: italic;
  font-size: 0.875rem;
  color: #444444;
  letter-spacing: 0.01em;
  margin-bottom: 3.75rem;
}

/* ── Notify Form ──────────────────────────────────── */
.notify-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-row {
  display: inline-flex;
  width: 100%;
  max-width: 360px;
}

.form-row input {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--black);
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  border-right: none;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-row input::placeholder {
  color: #A0A0A0;
  font-weight: 300;
}

.form-row input:focus {
  border-color: var(--ar-red);
}

.form-row button {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  background: var(--black);
  border: 1px solid var(--black);
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.form-row button:hover {
  background: #333333;
  border-color: #333333;
}

.form-row button:focus-visible {
  outline: 2px solid var(--ar-red);
  outline-offset: 2px;
}

.form-message {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 300;
  margin-top: 0.75rem;
  min-height: 1.2em;
  color: var(--black);
}

.form-message.error {
  color: var(--ar-red);
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  position: relative;
  z-index: 1;
}

.site-footer p {
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 300;
  color: #999;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 520px) {
  .content {
    padding: 2rem 1.25rem;
  }

  .brand-name {
    letter-spacing: 0.25em;
    margin-right: -0.25em;
    white-space: normal;
  }

  .pre-heading {
    margin-bottom: 2rem;
  }

  .form-row {
    flex-direction: column;
    max-width: 300px;
  }

  .form-row input {
    border-right: 1px solid #D0D0D0;
    border-bottom: none;
  }

  .form-row input:focus {
    border-color: var(--ar-red);
  }

  .form-row button {
    border-top: 1px solid var(--black);
    padding: 0.85rem 1.6rem;
  }

  .subtext {
    margin-bottom: 2.25rem;
  }
}
