@font-face {
  font-family: SweetSans;
  font-weight: 700;
  src: url("/assets/fonts/SweetSansPro-Bold.otf") format("opentype");
}

:root {
  --color-white: #fff;
  --color-black: #2e2a2b;
  --color-tan: #ead7ae;
  --color-yellow: #cec32f;
  --color-red: #ef684d;
  --color-green: #1bad72;
  --color-blue: #305da2;
  --color-text: var(--color-black);
  --font-family-body: "freight-text-pro", serif;
  --font-family-brand: SweetSans;
  --font-family-brand-alt: "oswald", sans-serif;
  --font-family-header: "thermal-variable", sans-serif;
}

body {
  background-color: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-family-body);
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0 auto;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

input {
  appearance: none;
  -webkit-appearance: none;
}

ul,
ol {
  text-align: left;
}

ul > li + li {
  margin-top: 0.75rem;
}

ul li::marker {
  color: var(--color-blue);
}

section {
  padding: 3rem 2rem;
  overflow-wrap: break-word;
  text-align: center;
  word-break: break-word;
}

section:nth-child(even) {
  --border: 1px dashed var(--color-tan);
  background-color: color-mix(in srgb, var(--color-tan), transparent 70%);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 0 2rem 2rem 2rem;
  margin-top: 2rem;
}

section > div {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 880px;
}

section > div > * + * {
  margin-top: 1.5rem;
}

h2 {
  background-color: var(--color-black);
  color: var(--color-tan);
  font-family: var(--font-family-header);
  font-variation-settings: "wght" 800, "opsz" 900;
  font-size: 1.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding: 0.75rem 1.4rem;
  position: relative;
  display: inline-block;
}

h2 span {
  color: var(--color-green);
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
}

section:nth-child(even) h2 {
  transform: translateY(-50%);
}

section:nth-child(even) h2 + * {
  margin-top: 0;
}

section:nth-child(odd) h2 {
  margin-bottom: 1rem;
}

a:not(.cta, nav > a) {
  color: inherit;
  background-color: color-mix(in srgb, var(--color-green), transparent 70%);
  border-radius: 4px;
  display: inline-block;
  font-weight: 700;
  padding: 0 0.5rem;
  text-decoration: none;
  transition: background-color 300ms;
  font-style: italic;
}

a:not(.cta, nav > a):hover {
  background-color: color-mix(in srgb, var(--color-green), transparent 90%);
}

.cta {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-green);
  border: none;
  border-radius: 3px;
  color: var(--color-white);
  cursor: pointer;
  font-family: var(--font-family-brand-alt);
  font-size: 1.2rem;
  letter-spacing: 1px;
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 300ms;
}

.cta:hover {
  background-color: color-mix(in srgb, var(--color-green), transparent 10%);
}

.download {
  align-items: center;
  display: inline-flex;
  padding: 1rem;
  white-space: nowrap;
}

.download img {
  flex-shrink: 0;
  height: 30px;
  margin-right: 0.75rem;
}

.note {
  border-top: 1px dashed color-mix(in srgb, var(--color-black), transparent 70%);
  font-size: 1.2rem;
  padding: 2rem 2rem 1rem 2rem;
  margin: 3rem 1rem 0 1rem;
}

p {
  text-wrap: pretty;
}

p strong {
  font-weight: 600;
}

p em {
  font-style: italic;
  font-weight: 600;
}

hia-youtube {
  display: block;
}

#section-intro p {
  font-size: 1.4rem;
  font-weight: 300;
  margin: 0;
}

#section-intro nav {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#section-intro nav a {
  border-bottom: 2px solid var(--color-green);
  box-sizing: border-box;
  color: var(--color-text);
  display: inline-block;
  font-family: var(--font-family-brand-alt);
  letter-spacing: 1px;
  line-height: 1;
  margin: 0 0.75rem 0.75rem 0;
  padding: 0.25rem 0.25rem 0.1rem 0.25rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 300ms;
}

#section-intro nav a:hover {
  background-color: color-mix(in srgb, var(--color-green), transparent 90%);
}

#section-intro hia-youtube {
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1);
  margin: 4rem 0 2rem 0;
}

#section-building > div {
  gap: 1rem;
}

#section-building p {
  text-align: left;
}

#section-building ul {
  padding-left: 0;
}

#section-building .content {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3rem;
}

#section-building .photos {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr 1fr;
}

#section-building .photos img {
  border: 6px solid var(--color-white);
  border-radius: 12px;
  box-shadow: rgba(0 0 0 / 10%) 0 0 24px;
  max-width: 100%;
}

#section-goals .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

#section-goals figure {
  margin: 0;
}

#section-goals figure > * + * {
  margin-top: 1rem;
}

#section-goals figure,
#section-goals figcaption {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#section-goals figure div {
  align-items: center;
  display: flex;
  flex: 1;
}

#section-goals figcaption {
  font-size: 1.5rem;
}

#section-goals figcaption strong {
  color: var(--color-green);
  letter-spacing: 1px;
  font-family: var(--font-family-brand-alt);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
}

#section-cost .content {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 2rem;
}

#section-cost .content > div {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
}

#section-cost .content > .operator {
  justify-content: center;
}

#section-cost .content strong {
  color: var(--color-green);
  font-family: var(--font-family-brand-alt);
  letter-spacing: 1px;
  text-transform: uppercase;
}

#section-letter > div > p {
  text-align: left;
  align-self: flex-start;
  padding: 0 10%;
}

#section-letter figure {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
}

#section-letter figure p {
  margin-bottom: 1.5rem;
}

#section-letter figcaption {
  letter-spacing: 1px;
  font-family: var(--font-family-brand-alt);
  font-size: 0.9rem;
  text-transform: uppercase;
}

#section-next-steps .grid {
  display: grid;
  gap: 2rem 1rem;
  grid-template-columns: auto 1fr;
  grid-auto-flow: row;
  list-style: none;
}

#section-next-steps .grid > img {
  align-self: center;
  height: 50px;
}

#section-next-steps .grid > div {
  align-items: center;
  display: flex;
  text-align: left;
}

#section-commit hia-form > * + *,
#section-commit li + li {
  margin-top: 1rem;
}

#section-commit hia-form {
  display: block;
  width: 100%;
}

#section-commit form {
  align-items: center;
  display: flex;
  flex-direction: column;
}

#section-commit form > * + * {
  margin-top: 2rem;
}

#section-commit .commit {
  background-color: color-mix(in srgb, var(--color-green), transparent 95%);
  border-radius: 6px;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 2rem;
}

#section-commit ol,
#section-commit li {
  list-style: none;
}

#section-commit ol li {
  position: relative;
}

#section-commit ol li::before {
  align-items: center;
  background: var(--color-green);
  border-radius: 26px;
  color: var(--color-white);
  content: attr(data-num);
  display: flex;
  font-family: var(--font-family-brand-alt);
  font-size: 1rem;
  height: 26px;
  justify-content: center;
  left: 0;
  line-height: 0;
  position: absolute;
  transform: translate(calc(-100% - 10px), 0);
  width: 26px;
}

#section-commit ol li span {
  white-space: nowrap;
}

#section-commit ol li input {
  background-color: var(--color-white);
  border: none;
  border-bottom: 2px solid var(--color-green);
  border-radius: 6px;
  color: inherit;
  display: inline-flex;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  width: 10ch;
}

#section-commit ol li input:focus {
  outline: none;
}

#section-commit .contact {
  align-self: stretch;
  background-color: color-mix(in srgb, var(--color-green), transparent 95%);
  box-sizing: border-box;
  border-radius: 6px;
  padding: 2rem;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
  width: 100%;
}

#section-commit .contact > * + * {
  margin-top: 1rem;
}

#section-commit .contact label {
  color: var(--color-green);
  display: block;
  font-size: 1rem;
  font-family: var(--font-family-brand-alt);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

#section-commit .contact input {
  background-color: var(--color-white);
  box-shadow: none;
  box-sizing: border-box;
  border: 1px solid var(--color-green);
  border-radius: 6px;
  font-size: inherit;
  font-family: inherit;
  padding: 0.5rem;
  width: 100%;
}

#section-commit .success {
  display: none;
  background-color: color-mix(in srgb, var(--color-green), transparent 90%);
  border-radius: 6px;
  padding: 1rem;
}

#section-progress h2 {
  visibility: hidden;
}

#section-progress table {
  border-collapse: collapse;
  margin-top: 4rem;
  table-layout: fixed;
  width: 100%;
}

#section-progress table th {
  border-bottom: 2px solid var(--color-green);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 0.75rem 0.5rem 0.75rem;
  position: relative;
}

#section-progress table th span {
  color: color-mix(in srgb, var(--color-green), transparent 20%);
  left: 100%;
  position: absolute;
  top: 50%;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

#section-progress table tr:nth-child(even) td {
  background-color: color-mix(in srgb, var(--color-green), transparent 90%);
}

#section-progress table tr td {
  border-right: 2px solid var(--color-white);
  padding: 0.25rem;
}

#section-progress table tr td:last-child {
  border-right: none;
}

#section-progress table tr td sup {
  vertical-align: top;
}

footer {
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: 0.8rem;
  line-height: 1.7;
  padding: 4rem 1rem;
  text-align: center;
}

footer img {
  margin-bottom: 1rem;
}

@media screen and (min-width: 450px) {
  #section-goals figure:first-child img {
    transform: translateY(20px);
  }

  #section-commit p {
    padding: 0 4rem;
  }
}

@media screen and (max-width: 450px) {
  section {
    padding: 3rem 1rem;
  }

  #section-intro h1 img {
    height: 200px;
  }

  #section-intro nav {
    margin-top: 1rem;
  }

  #section-building .content {
    gap: 1rem;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  #section-building .photos {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  #section-goals .content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  #section-goals .content img {
    height: 100px;
  }

  #section-cost .content {
    flex-direction: column;
  }

  #section-letter p {
    align-self: flex-start;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }

  #section-next-steps .grid > img {
    align-self: flex-start;
  }
}
