:root {
  --pink: #e2327e;
  --pink-deep: #c01f66;
  --pink-press: #a81858;
  --ink: #372a3a;
  --ink-soft: #5f5261;
  --line: rgba(55, 42, 58, 0.28);
  --paper: #fffafb;
  --error: #8f1239;
  --night: #2a1420;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-140%);
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  z-index: 10;
}

.skip:focus {
  transform: none;
}

.top,
.page,
.foot {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.top {
  padding: 22px 0 8px;
}

.logo {
  width: 68px;
  height: 68px;
  display: block;
}

h1 {
  margin: 28px 0 18px;
  max-width: 11ch;
  font-size: clamp(2.8rem, 6.6vw, 6.25rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.sub {
  max-width: 34ch;
  margin: 0 0 48px;
  font-size: 1.125rem;
  line-height: 1.5;
}

.compose {
  display: grid;
  gap: 36px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.place {
  margin-top: 32px;
}

.place p:last-child {
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
}

.hint {
  margin: 0.2em 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

aside a,
.foot a {
  color: inherit;
  font-weight: 500;
  text-underline-offset: 3px;
}

aside a:hover,
.foot a:hover {
  color: var(--pink-deep);
}

.say,
.line,
.prompt,
legend,
.thanks h2,
.thanks p {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.say,
.prompt,
legend {
  display: block;
  margin: 0 0 0.7em;
  padding: 0;
}

.row {
  margin: 0 0 0.85em;
}

.line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28em 0.4em;
}

.line input,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 0 0 0.08em;
}

.line input {
  flex: 1 1 14rem;
  min-width: min(100%, 12rem);
  min-height: 1.35em;
}

.line input.wide {
  flex-basis: 100%;
}

.line input::placeholder,
textarea::placeholder {
  color: #6f5d68;
}

.line input:focus-visible,
textarea:focus-visible,
button:focus-visible,
.foot a:focus-visible,
aside a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

[aria-invalid="true"] {
  border-bottom-color: var(--error);
}

.field-error,
.form-status {
  margin: 0.35em 0 0;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.form-status {
  margin-top: 14px;
}

fieldset {
  margin: 0.4em 0 1.35em;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #e3d3db;
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
}

.pill input {
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.pill input:checked::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill:has(input:checked) {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  color: #fff;
}

.pill:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.pill input:focus-visible {
  outline: none;
}

.other {
  margin-top: 14px;
}

.prompt {
  margin-bottom: 0.35em;
}

textarea {
  display: block;
  width: 100%;
  min-height: 4.6rem;
  resize: vertical;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--pink-deep);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 200ms ease;
}

button:hover {
  background: var(--pink-press);
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.thanks h2 {
  margin: 0 0 0.3em;
}

.thanks p {
  margin: 0;
  max-width: 18ch;
}

.thanks h2:focus {
  outline: none;
}

footer {
  margin-top: 88px;
  background: var(--night);
  color: #fff;
}

.foot {
  padding: 72px 0 64px;
}

.foot-title {
  margin: 0 0 16px;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.foot a {
  font-size: 1.05rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.foot a.social {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 14px 32px 14px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.foot a.social svg,
.foot a.social img {
  width: 52px;
  height: 52px;
  flex: none;
  display: block;
}

.foot a.social:hover {
  background: #ffe4f0;
  color: var(--ink);
}

.building {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  max-width: 28ch;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 699px) {
  .actions button,
  .foot a.social {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .top {
    padding-top: 28px;
  }

  h1 {
    margin-top: 36px;
  }

  .sub {
    margin-bottom: 72px;
  }

  .compose {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 48px 80px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
