@font-face {
  font-family: Inter;
  src: url("./media/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./media/Inter-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #172426;
  --paper: #f7f8f0;
  --acid: #dfee83;
  --line: #abb3a7;
  --muted: #4b5854;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 100%;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
.shell {
  width: min(1100px, calc(100% - clamp(2.5rem, 8vw, 8rem)));
  margin-inline: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.3rem;
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.105em;
  text-decoration: none;
}
.wordmark span {
  color: #455d20;
}
.mast-label,
.subject {
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.subject {
  margin: 0 0 0.9rem;
}
.opening {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 6vw, 5.8rem);
  padding: clamp(2.6rem, 5vw, 5rem) 0;
}
.problem {
  align-self: center;
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  margin: 0;
}
h1 {
  font-size: clamp(3.2rem, 5.4vw, 5.25rem);
  line-height: 0.99;
  letter-spacing: -0.074em;
}
mark {
  background: linear-gradient(
    transparent 53%,
    var(--acid) 53%,
    var(--acid) 94%,
    transparent 94%
  );
  color: inherit;
}
p {
  font-size: 1.02rem;
  line-height: 1.5;
}
.premise {
  max-width: 31rem;
  margin: 1.6rem 0 1.45rem;
}
.peer-note {
  border-inline-start: 4px solid #849936;
  padding-left: 0.7rem;
  margin: 0 0 1rem;
  font-weight: 700;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 0.7rem 0;
  text-align: right;
}
th:first-child {
  text-align: left;
}
thead th {
  border-bottom: 2px solid var(--ink);
  font-size: 0.91rem;
  font-weight: 400;
}
tbody th,
tbody td {
  font-weight: 700;
  font-size: clamp(1.48rem, 2.6vw, 2.25rem);
  letter-spacing: -0.055em;
  border-bottom: 1px solid var(--line);
}
.choices {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.choices button {
  flex: 1;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.45rem;
  background: var(--ink);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.choices button {
  background: transparent;
  color: var(--ink);
}
.choices button:hover,
.choices button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
button:active,
.button:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 3px solid #876126;
  outline-offset: 4px;
}
.photo {
  margin: 0;
  align-self: stretch;
  min-height: 20rem;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}
.photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% center;
}
.result,
.followup {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.result {
  border-radius: 0.55rem;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.35rem, 4.5vw, 3.5rem);
}
.result h2,
.followup h2 {
  font-size: clamp(2.2rem, 4.1vw, 3.7rem);
  letter-spacing: -0.065em;
  line-height: 1.03;
}
.result h2 {
  color: var(--acid);
  scroll-margin-top: 1.5rem;
}
.result p {
  margin: 0.7rem 0;
}
.result .subject {
  color: var(--acid);
  margin: 0 0 0.6rem;
}
.values {
  display: flex;
  gap: clamp(1.2rem, 5vw, 4rem);
  margin: 1.35rem 0;
}
.values span,
.values strong {
  display: block;
}
.values span {
  font-size: 0.88rem;
}
.values strong {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: -0.06em;
}
.values div:first-child strong {
  color: var(--acid);
}
details summary {
  cursor: pointer;
  font-size: 1rem;
  padding: 0.45rem 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.math {
  font-variant-numeric: tabular-nums;
}
.share-block {
  border-top: 2px solid var(--acid);
  padding-top: 1rem;
}
.share-block button {
  margin-top: 0.45rem;
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}
h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
}
#share-status:empty,
#tie-feedback:empty {
  display: none;
}
#manual {
  display: block;
  margin-top: 0.7rem;
}
#share-link {
  width: 100%;
  margin-top: 0.4rem;
}
.followup {
  padding: clamp(2.6rem, 5vw, 4.5rem) 0;
}
.followup p {
  max-width: 38rem;
}
.followup .subject {
  margin-bottom: 0.8rem;
}
.meet {
  background: var(--acid);
  padding: clamp(1.25rem, 3vw, 2.1rem);
  border-radius: 0.5rem;
}
.meet p {
  margin: 0.85rem 0 1.2rem;
}
form label {
  display: block;
  font-size: 0.91rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.amount-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.money-input {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: white;
  border: 1.5px solid var(--ink);
  padding: 0 0.7rem;
  border-radius: 0.4rem;
  max-width: 9.5rem;
}
input {
  color: var(--ink);
  padding: 0.7rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
}
.money-input input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.2rem;
  border: 0;
}
#tie-key {
  margin-top: 0.55rem;
}
.film {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0 1.6rem;
}
.film video {
  display: block;
  width: min(18rem, 100%);
  margin: 1rem 0;
  border-radius: 0.45rem;
  background: var(--ink);
}
footer.shell {
  padding: 1.3rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 720px) {
  .masthead {
    min-height: 4rem;
  }
  .opening {
    display: block;
    padding: 1.8rem 0 2rem;
  }
  .photo {
    display: none;
  }
  .result,
  .followup {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }
  .premise {
    margin: 1.05rem 0 0.8rem;
  }
  .subject {
    margin-bottom: 0.65rem;
  }
  h1 {
    font-size: clamp(3.05rem, 10.6vw, 4.7rem);
  }
  .choices {
    margin-top: 1rem;
  }
  .result h2 {
    scroll-margin-top: 0.9rem;
  }
  .followup {
    padding: 2rem 0;
  }
  .meet .button {
    width: 100%;
  }
  footer.shell {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  button:active,
  .button:active {
    transform: none;
  }
}
