* {
  box-sizing: border-box;
}

:root {
  --ink: #21170f;
  --brown: #5b321d;
  --green: #2f6335;
  --red: #a12620;
  --paper: #ffffff;
  --soft: #f3f3f0;
  --rule: #b7b4ad;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select,
input {
  border-radius: 0;
}

button {
  cursor: pointer;
}

.masthead {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 18px 26px;
  border-bottom: 4px double var(--ink);
}

.seal {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border: 3px solid var(--brown);
  border-radius: 50%;
  color: var(--brown);
  font-family: "Courier New", monospace;
  font-weight: 900;
  letter-spacing: .08em;
  transform: rotate(-4deg);
}

.kicker,
.section-heading p,
.notice-code,
.result-label {
  margin: 0 0 5px;
  font-family: "Courier New", monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 4px;
  font-size: clamp(2rem, 8vw, 4.6rem);
  line-height: .96;
  letter-spacing: -.045em;
}

.subtitle {
  max-width: 680px;
  margin: 12px 0 0;
  font-size: 1.05rem;
}

main {
  width: min(100% - 36px, 1040px);
  margin: 0 auto;
}

main > section {
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
}

.notice {
  margin-top: 22px;
  padding: 22px !important;
  border: 3px solid var(--red) !important;
}

.notice-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.notice-heading h2 {
  margin: 0;
  font-size: 1.5rem;
}

.notice-code {
  color: var(--red);
}

.notice p:last-child {
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.65rem, 5vw, 2.8rem);
  line-height: 1.05;
}

.section-heading p {
  color: var(--green);
}

.grade-grid {
  display: grid;
  gap: 12px;
}

.grade-grid article {
  position: relative;
  padding: 20px;
  border: 2px solid var(--ink);
  background: #fff;
}

.grade-grid article h3 {
  margin: 0 0 7px 56px;
  font-size: 1.25rem;
}

.grade-grid article p {
  margin: 0 0 0 56px;
}

.grade {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid currentColor;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 900;
}

.grade-omega {
  background: var(--ink) !important;
  color: #fff;
}

.grade-omega .grade {
  color: #fff;
}

.assessment {
  max-width: 820px;
}

.assessment-intro {
  max-width: 680px;
  font-size: 1.1rem;
}

#potato-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > label,
fieldset legend {
  font-weight: 700;
}

input[type="number"],
select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 2px solid var(--ink);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.assess-button,
.contact-button {
  width: fit-content;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  background: var(--green);
  color: #fff;
  font-family: "Courier New", monospace;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 4px 4px 0 var(--ink);
}

.assess-button:hover,
.contact-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.result {
  margin-top: 28px;
  padding: 22px;
  border: 3px solid var(--brown);
  background: var(--soft);
}

.result-grade {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 8px 0 14px;
  border: 4px double var(--brown);
  border-radius: 50%;
  color: var(--brown);
  font-family: "Courier New", monospace;
  font-size: 2rem;
  font-weight: 900;
  transform: rotate(-5deg);
}

.result h3 {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.result-reference {
  margin: 18px 0 0;
  font-family: "Courier New", monospace;
  font-size: .82rem;
}

.bulletins ul {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.bulletins li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}

.bulletins li span {
  font-family: "Courier New", monospace;
  font-size: .8rem;
  font-weight: 700;
}

.submission {
  padding: 40px 0 48px;
}

.submission h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
}

.submission > p:not(.stamp) {
  max-width: 680px;
}

.stamp {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 10px 4px;
  border: 3px solid var(--red);
  color: var(--red);
  font-family: "Courier New", monospace;
  font-weight: 900;
  letter-spacing: .08em;
  transform: rotate(-2deg);
}

footer {
  width: min(100% - 36px, 1040px);
  margin: 0 auto;
  padding: 24px 0 40px;
  font-family: "Courier New", monospace;
  font-size: .77rem;
}

footer p {
  margin: 3px 0;
}

@media (min-width: 720px) {
  .masthead {
    grid-template-columns: 92px 1fr;
    padding-top: 48px;
  }

  .seal {
    width: 92px;
  }

  main {
    width: min(100% - 64px, 1040px);
  }

  .grade-grid {
    grid-template-columns: 1fr 1fr;
  }

  #potato-form {
    grid-template-columns: 1fr 1fr;
  }

  #potato-form fieldset,
  .assess-button {
    grid-column: 1 / -1;
  }

  .assess-button {
    justify-self: start;
  }
}
