@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,300;6..72,400;6..72,500;6..72,600&display=swap');

/* Shared presentation refinements for the photography-led draft. */

html,
body,
button,
input,
textarea,
select {
  font-family: 'Newsreader', Georgia, serif;
  font-optical-sizing: auto;
}

body {
  font-weight: 400;
}

h1,
h2,
body[data-page="home"] .hero h1,
body[data-page="home"] .section-heading h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
}

h3,
body[data-page="home"] #homeWineryPreview .winery-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
}

nav,
nav button,
.button,
.text-link,
.card-actions button,
.floating-enquiry,
.filters label,
.details-list strong {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
}

.login-modal {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  overflow: hidden;
}

.login-modal::backdrop {
  background: rgba(18,18,18,.48);
  backdrop-filter: blur(4px);
}

.login-modal form {
  padding: 38px 36px 34px;
}

.login-modal h2,
body[data-page="home"] .login-modal h2 {
  margin: 0 40px 12px 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -.03em;
}

.login-modal form > p:not(.trade-login-help):not(.form-result) {
  margin: 0 0 26px;
  color: var(--soft-text);
  font-size: 15px;
  line-height: 1.55;
}

.login-modal label {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

.login-modal input[type="password"] {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #cfc8be;
  border-radius: 10px;
  outline: none;
  background: #faf9f7;
  color: var(--text);
  font-size: 17px;
  letter-spacing: .08em;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-modal input[type="password"]:hover {
  border-color: #a9a096;
  background: #fff;
}

.login-modal input[type="password"]:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(123,31,42,.10);
}

.trade-login-help {
  margin: 14px 0 24px;
  color: var(--soft-text);
  font-size: 13px;
  line-height: 1.5;
}

.trade-login-help a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(123,31,42,.35);
}

.login-modal .button.primary {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
}

.login-modal .button.primary:hover {
  background: #641923;
  border-color: #641923;
}

.login-modal .modal-close {
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #f3f0eb;
  color: #504b45;
  font-size: 22px;
  line-height: 1;
}

.login-modal .modal-close:hover {
  background: #e9e4dd;
  color: var(--text);
}

.login-modal .form-result {
  margin-top: 12px;
  min-height: 0;
  font-size: 13px;
}

@media (max-width: 640px) {
  .login-modal form {
    padding: 32px 24px 26px;
  }

  .login-modal h2,
  body[data-page="home"] .login-modal h2 {
    font-size: 34px;
  }
}
