/* _reset.scss */

/* Box sizing: border-box for everything */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: system-ui, sans-serif;
}

/* Make images & media flexible */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove animations/transitions for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Set lists to no bullets by default */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Anchor defaults */
a {
  text-decoration: none;
  color: inherit;
}

/* Headings balance */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  line-height: 1.2;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Actual content */

:root {
  --green: #224f38;
  --green-hover: #2b6547;
}

body {
  background: #f4f4f4;
  color: #111;
  font-family: Inter, sans-serif;
  font-size: 18px;
}

.main-wrapper {
  max-width: 40rem;
  margin: 4rem auto;
  padding: 0 1rem;
}

.logo {
  width: 10rem;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
}

h1 {
  font-size: 3.2rem;
  font-weight: 620;
  letter-spacing: -0.04rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

form {
  position: relative;
  background: #fff;
  padding: 1.8rem;
  margin: 4rem 0;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  z-index: 1000000;
}

.field {
  margin-bottom: 1.5rem;
}

.split-field {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.help-text {
  font-size: 0.9rem;
  color: #999;
}

input,
textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.45rem;
  border: 1px solid #ddd;
  border-radius: 0.2rem;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
}

button {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  width: 100%;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 0.2rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

button:hover {
  background: var(--green-hover);
}

button svg {
  display: block;
  width: 1rem;
  height: auto;
}

.divider {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  color: #666;
}

.footer {
  margin-top: 4rem;
  text-align: center;
  color: #666;
}

.snowflake {
  color: #c8ced0 !important;
}

@media (max-width: 30em) {
  h1 {
    font-size: 2.4rem;
  }
  .split-field {
    display: block;
  }
}
