/* BiggER House Craft Fair public pages: black on white, system fonts, phone first. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.site-header,
main,
.site-footer {
  max-width: 40rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 8px;
  color: #000;
  text-decoration: none;
}

.brand-roof {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
}

.brand-name {
  margin-top: -24px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  margin: 8px 0 12px;
  font-size: 1.75rem;
  line-height: 1.2;
}

h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.lede {
  margin: 0 0 24px;
}

.field {
  margin: 0 0 20px;
}

.field > label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.optional {
  font-weight: 400;
}

input[type='text'],
input[type='email'],
input[type='tel'],
select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid #000;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
}

input[aria-invalid='true'],
select[aria-invalid='true'] {
  border-color: #a00000;
}

.helper {
  margin: 6px 0 0;
  font-size: 0.9375rem;
}

.error {
  margin: 6px 0 0;
  color: #a00000;
  font-weight: 700;
}

.check {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  align-items: start;
  margin: 0 0 20px;
}

.check input[type='checkbox'] {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: #000;
}

.check .helper,
.check .error {
  grid-column: 2;
}

.turnstile {
  min-height: 65px;
  margin: 0 0 16px;
}

.button {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 2px solid #000;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
}

.button:disabled {
  border-color: #555;
  background: #555;
  cursor: progress;
}

.status {
  margin: 0 0 16px;
  padding: 12px;
  border: 2px solid #a00000;
  color: #a00000;
  font-weight: 700;
}

.success {
  margin: 16px 0 24px;
  font-size: 1.125rem;
}

.note {
  margin: 16px 0;
  font-size: 0.9375rem;
}

.rules {
  padding-left: 1.5rem;
}

.rules > li {
  margin: 0 0 16px;
}

.rules p {
  margin: 8px 0;
}

/* Consumer Disclosure (RSA 358-O:4): heading bold and at least 10 pt. */
.disclosure {
  margin: 32px 0;
  padding: 16px;
  border: 2px solid #000;
}

.disclosure h2 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.disclosure p {
  margin: 4px 0;
}

/* Google Places suggestions (built, off until launch gate G6). */
.places-suggestions {
  margin-top: 4px;
  border: 2px solid #000;
  border-radius: 4px;
  background: #fff;
}

.places-suggestions ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.places-suggestions li {
  padding: 12px;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}

.places-suggestions li.active,
.places-suggestions li:hover {
  background: #000;
  color: #fff;
}

.gmp-attribution {
  padding: 6px 12px;
  color: #5e5e5e;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2rem;
  }
}
