:root {
  color-scheme: light;
  font: 100%/1.5 system-ui, sans-serif;
  color: #172f28;
  background: #e9eee7;
  --accent: #244e40;
  --paper: #fcfcf7;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

main { width: min(100%, 28rem); min-width: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.15rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.mark {
  border: 1px solid #649486;
  border-radius: .55rem;
  background: var(--accent);
  width: 2rem;
  height: 2rem;
  position: relative;
}

.mark::before {
  content: "";
  position: absolute;
  inset: .51rem;
  border: 2px solid #e8f3d9;
  border-radius: .35rem .35rem .35rem 0;
  transform: rotate(-15deg);
}

section {
  border: 1px solid #bccbc1;
  border-radius: 1.15rem;
  padding: clamp(1.25rem, 6vw, 2.45rem);
  background: var(--paper);
  box-shadow: 0 15px 32px rgb(23 47 40 / .07);
}

h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 8vw, 2.9rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
}

p { color: #465f54; margin: .85rem 0 1.8rem; }
label { display: block; margin-bottom: .45rem; font-size: .92rem; font-weight: 650; }

input, button {
  font: inherit;
  min-height: 3rem;
  width: 100%;
  border-radius: .62rem;
}

input { display: block; border: 1px solid #72887b; padding: .6rem .8rem; color: inherit; background: #fff; }
input[aria-invalid="true"] { border-color: #9c382b; }
.feedback { margin: .65rem 0 0; color: #9c382b; }

button {
  border: 1px solid transparent;
  background: var(--accent);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem .9rem;
  margin-top: 1rem;
  font-weight: 650;
}

button:hover { background: #163d30; }
:focus-visible { outline: 3px solid #397354; outline-offset: 3px; }
