
:root {
  --paper: #f7f5f0;
  --paper-dark: #efede6;
  --ink: #201f1c;
  --muted: #77746d;
  --line: #dedbd2;
  --red: #a53b32;
  --red-dark: #862d26;
  --white: #fffefa;
  --error: #a33128;
  --success: #286b48;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Playfair Display", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.topbar {
  min-height: 76px;
  padding: 0 5.2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.brand-logo {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.brand-light {
  font-weight: 400;
  color: var(--muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.login-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.login-link i {
  margin-left: 4px;
  font-size: 10px;
  color: var(--red);
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
  min-height: calc(100vh - 76px);
}

.editorial {
  padding: 39px 8% 26px 10.4%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.editorial-top,
.editorial-footer,
.art-caption,
.side-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.eyebrow,
.edition,
.section-number,
.art-caption,
.editorial-footer,
.side-bottom {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: var(--red);
  border-radius: 50%;
}

.edition {
  color: #969188;
  font-weight: 500;
  font-size: 8px;
}

.editorial-copy {
  max-width: 590px;
  width: 100%;
  margin: 56px auto 38px;
}

.overline {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 18px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(45px, 5.3vw, 75px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -2.8px;
  margin: 0;
}

h1 em {
  color: var(--red);
  font-weight: 500;
}

.intro {
  max-width: 380px;
  margin: 23px 0 31px;
  font-size: 14px;
  line-height: 1.9;
  color: #6e6b64;
}

.editorial-art {
  position: relative;
  overflow: hidden;
  background: var(--paper-dark);
  border: 1px solid var(--line);
}

.art-image {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.art-caption {
  min-height: 41px;
  padding: 0 13px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  color: #77746d;
  letter-spacing: 0.7px;
  font-weight: 500;
}

.editorial-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #88847b;
  font-size: 8px;
  letter-spacing: 0.6px;
  font-weight: 500;
}

.signup-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(28px, 6.5vw, 92px) 20px;
  min-width: 0;
}

.signup-panel {
  width: 100%;
  max-width: 390px;
  margin: auto;
}

.mobile-heading {
  display: none;
}

.section-number {
  color: var(--red);
  font-size: 9px;
}

.form-heading {
  margin-bottom: 27px;
}

.form-heading h2 {
  font-family: var(--font-display);
  font-size: 43px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -1.4px;
  margin: 12px 0 8px;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  height: 47px;
  border: 1px solid #d7d4cc;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease;
}

.google-button:hover {
  background: var(--white);
  border-color: #b9b5ab;
}

.google-button i {
  font-size: 15px;
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.separator span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.separator p {
  margin: 0;
  color: #89857d;
  font-size: 10px;
  white-space: nowrap;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 43px 0 39px;
  border: 1px solid #d9d6ce;
  border-radius: 0;
  background: rgba(255, 254, 250, 0.58);
  color: var(--ink);
  outline: none;
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease;
}

.input-wrap input::placeholder {
  color: #aaa69e;
}

.input-wrap input:focus {
  border-color: var(--ink);
  background: var(--white);
}

.input-wrap input.invalid {
  border-color: var(--error);
}

.field-icon {
  position: absolute;
  left: 14px;
  color: #918c83;
  font-size: 12px;
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  right: 0;
  top: 0;
  width: 43px;
  height: 46px;
  border: 0;
  background: transparent;
  color: #858178;
  cursor: pointer;
}

.toggle-password:hover {
  color: var(--ink);
}

.field-hint,
.field-error {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 6px;
}

.field-hint {
  color: #89857d;
}

.field-error {
  color: var(--error);
}

.agreements {
  margin: 21px 0 19px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: #68655e;
  font-size: 11px;
  line-height: 1.7;
}

.check-row + .check-row {
  margin-top: 12px;
}

.check-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-check {
  display: flex;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border: 1px solid #c9c5bb;
  background: var(--white);
  color: transparent;
  font-size: 9px;
  transition: background 150ms ease, border-color 150ms ease;
}

.check-row input:checked + .custom-check {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.check-row input:focus-visible + .custom-check {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.check-row a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: #b5afa4;
  text-underline-offset: 3px;
}

.check-row a:hover {
  color: var(--red);
}

.agreement-error {
  margin-left: 26px;
  margin-bottom: 8px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 49px;
  padding: 0 17px;
  border: 1px solid var(--red);
  background: var(--red);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease;
}

.submit-button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.submit-button i {
  font-size: 13px;
}

.form-note {
  color: #969188;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
  margin: 13px 0 0;
}

.form-message {
  margin: 0 0 15px;
  padding: 12px;
  border: 1px solid #e5c3bf;
  background: #fbefed;
  color: var(--error);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.form-message.success {
  border-color: #c2d9ca;
  background: #edf6f0;
  color: var(--success);
}

.mobile-login {
  display: none;
}

.side-bottom {
  width: 100%;
  max-width: 390px;
  margin: 34px auto 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #969188;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.7px;
}

.side-bottom i {
  margin-left: 4px;
  font-size: 8px;
}

@media (min-width: 1500px) {
  .page {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .editorial {
    padding-left: 12%;
    padding-right: 10%;
  }

  .signup-side {
    padding-left: 9%;
    padding-right: 9%;
  }
}

@media (max-width: 1050px) {
  .page {
    grid-template-columns: 1fr 1fr;
  }

  .editorial {
    padding-left: 7%;
    padding-right: 7%;
  }

  .signup-side {
    padding-left: 28px;
    padding-right: 28px;
  }

  h1 {
    font-size: clamp(43px, 5vw, 61px);
  }

  .art-image {
    height: 190px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 65px;
    padding: 0 20px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .topbar-right {
    gap: 9px;
    font-size: 10px;
  }

  .page {
    display: block;
    min-height: calc(100vh - 65px);
  }

  .editorial {
    display: none;
  }

  .signup-side {
    padding: 30px 22px 22px;
    min-height: calc(100vh - 65px);
  }

  .signup-panel {
    max-width: 430px;
  }

  .mobile-heading {
    display: block;
    margin-bottom: 30px;
  }

  .form-heading h2 {
    font-size: 40px;
  }

  .side-bottom {
    max-width: 430px;
    margin-top: 30px;
  }

  .mobile-login {
    display: block;
    margin-top: 24px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
  }

  .mobile-login a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
  }
}

@media (max-width: 380px) {
  .topbar {
    padding: 0 14px;
  }

  .topbar-right > span {
    display: none;
  }

  .signup-side {
    padding-left: 17px;
    padding-right: 17px;
  }

  .form-heading h2 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
