/* Front Porch Gallatin: shared styles for index.html and event.html */

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

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

body {
  margin: 0;
  background: #f6f1e7;
  color: #3b2f2a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}

.card {
  background: #fffdf8;
  border: 1px solid #e6dccb;
  border-radius: 14px;
  padding: 28px 22px 30px;
}

.logo {
  display: block;
  margin: 0 auto 26px;
}

.logo img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
  font-size: 28px;
  line-height: 1.22;
  margin: 0 0 12px;
  color: #3b2f2a;
}

.sub {
  margin: 0 0 22px;
  color: #6b625a;
  font-size: 17px;
}

.points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.points li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 12px;
}

.points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c2662d;
}

/* Forms */

.field {
  margin: 0 0 18px;
}

label {
  display: block;
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 6px;
}

.optional {
  font-weight: normal;
  color: #6b625a;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  font: inherit;
  font-size: 17px;
  color: #3b2f2a;
  background: #ffffff;
  border: 1px solid #b9ab95;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236b625a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

input::placeholder,
textarea::placeholder {
  color: #8a8077;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #b4541f;
}

/* Honeypot: off-screen, not hidden with display:none so bots still fill it */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 24px 0 0;
  padding: 12px 20px;
  font: inherit;
  font-size: 19px;
  font-weight: bold;
  color: #ffffff;
  background: #c2662d;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.button:hover {
  background: #b4541f;
}

.button:disabled,
.button:disabled:hover {
  background: #e6dccb;
  color: #3b2f2a;
  cursor: wait;
}

.privacy {
  margin: 12px 0 0;
  font-size: 15px;
  color: #6b625a;
  text-align: center;
}

.status {
  margin: 0;
}

.status:empty {
  display: none;
}

.status.is-error {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fbeee4;
  border: 1px solid #e3b593;
  border-radius: 10px;
  color: #7a3412;
}

.status.is-success {
  padding: 18px 16px;
  background: #f6f1e7;
  border: 1px solid #e6dccb;
  border-radius: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
}

/* Links */

a {
  color: #b4541f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #3b2f2a;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 6px;
  font-size: 16px;
}

/* Focus: solid, high-contrast outline on everything interactive */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b4541f;
  outline-offset: 2px;
}

.button:focus-visible {
  outline-color: #3b2f2a;
}

/* Footer */

.footer {
  margin: 26px 0 0;
  text-align: center;
  font-size: 14px;
  color: #6b625a;
}

.footer p {
  margin: 0 0 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Larger screens */

@media (min-width: 600px) {
  .page {
    padding: 56px 20px 56px;
  }

  .card {
    padding: 40px 44px 42px;
  }

  h1 {
    font-size: 33px;
  }

  .logo img {
    max-width: 260px;
  }
}
