:root {
  color-scheme: light;
  font-family: "Inter", system-ui, sans-serif;
  color: #203c33;
  background: #f4f3ec;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 clamp(1.25rem, 5vw, 4rem) 3rem;
}

header {
  padding: 1.25rem 0;
  border-bottom: 1px solid #c7cec3;
}

a { color: inherit; }
:focus-visible { outline: 3px solid #a04e26; outline-offset: 4px; }

.brand, .button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 650;
}

.brand {
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: #234e40;
  color: #f4f3ec;
}

.camera {
  position: relative;
  width: 0.95rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 0.2rem;
  background: currentColor;
}

.camera::after {
  content: "";
  position: absolute;
  right: -0.4rem;
  top: 0.06rem;
  border: 0.29rem solid transparent;
  border-right: 0.4rem solid currentColor;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(4rem, 13vh, 8rem);
}

.intro { padding-top: 1.75rem; }

h1 {
  margin: 0;
  font: normal clamp(3.1rem, 7.7vw, 6.15rem)/1.02 "PT Serif", Georgia, serif;
  letter-spacing: -0.045em;
}

.intro p, details p {
  color: #4d6157;
  line-height: 1.55;
}

.intro p { margin: 1.5rem 0 0; }

form {
  display: grid;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid #cbd2c8;
  border-radius: 1rem;
  background: #fffef9;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

label {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input {
  min-width: 0;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1.1rem;
  border: 1px solid #84968a;
  border-radius: 0.4rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

.button {
  justify-content: space-between;
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.25rem;
  padding: 0.8rem 1rem;
  border-radius: 0.4rem;
  background: #234e40;
  color: white;
}

.button:hover { background: #16382d; }
.button:disabled { opacity: 0.7; cursor: wait; }

#status {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #903e26;
}

#status:not(:empty) { margin-top: 0.65rem; }

details {
  margin-top: 1.25rem;
  border-top: 1px solid #e1e4da;
  padding-top: 1rem;
  font-size: 0.9rem;
}

summary { cursor: pointer; }
summary:hover { text-decoration: underline; }
details p { margin: 0.65rem 0 0; }

@media (max-width: 46rem) {
  main {
    grid-template-columns: minmax(0, 1fr);
    max-width: 28rem;
    margin: 2.25rem auto 0;
    gap: 1.75rem;
  }

  .intro { padding-top: 0; }
  .intro p { margin-top: 0.8rem; }
}
