@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap");
:root {
  --paper: #f5efdf;
  --ink: #302b24;
  --muted: #71614f;
  --red: #8b2827;
  --line: #cfbea2;
  --white: #fffaf0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 "DM Sans",
    sans-serif;
}
::selection {
  background: var(--red);
  color: var(--white);
}
header,
main,
footer {
  max-width: 1180px;
  margin: auto;
  padding: 0 48px;
}
header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
nav {
  display: flex;
  gap: 30px;
}
nav a {
  text-decoration: none;
  font-size: 14px;
}
.brand {
  font:
    bold 26px "Libre Baskerville",
    serif;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.brand span {
  color: var(--red);
}
h1,
h2,
h3 {
  font-family: "Libre Baskerville", serif;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  margin: 0 0 26px;
}
h2 {
  font-size: 30px;
  margin: 0 0 20px;
}
h3 {
  font-size: 25px;
  margin: 0 0 12px;
}
p {
  max-width: 65ch;
  color: var(--muted);
}
.intro {
  padding: 84px 0 90px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro p {
  max-width: 440px;
  margin-bottom: 30px;
}
.seal {
  aspect-ratio: 1;
  max-width: 310px;
  justify-self: center;
  width: 100%;
  border: 1px solid var(--red);
  border-radius: 50%;
  outline: 1px solid var(--red);
  outline-offset: -14px;
  color: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}
.seal strong {
  font:
    88px "Libre Baskerville",
    serif;
}
.seal span {
  font-size: 11px;
  letter-spacing: 0.16em;
}
.button,
button {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: 14px 23px;
  background: var(--red);
  color: var(--white);
  font:
    600 14px "DM Sans",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover,
.button:hover {
  background: #651d1d;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.secondary {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--line);
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
section {
  margin-bottom: 64px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.section-heading span,
.fine {
  font-size: 13px;
  color: var(--muted);
}
.giveaway {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}
.giveaway p {
  margin: 8px 0;
}
.meta {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.tag {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.giveaway button {
  align-self: center;
}
#entry-section {
  background: var(--white);
  padding: 40px;
  margin-top: 40px;
  border-radius: 12px;
}
form {
  max-width: 650px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0;
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px;
  background: var(--white);
  color: var(--ink);
  font:
    16px "DM Sans",
    sans-serif;
  caret-color: var(--red);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fields label {
  margin: 0;
}
.admin {
  padding-top: 60px;
}
.admin h1 {
  font-size: 44px;
}
.admin section {
  margin-top: 42px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  padding-bottom: 30px;
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.entry-list {
  padding: 20px 0;
  overflow-wrap: anywhere;
}
.entry-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.error {
  color: #a02423 !important;
}
.success {
  color: #36633c !important;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--line);
}
@media (max-width: 700px) {
  header,
  main,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  header {
    height: 85px;
  }
  nav {
    gap: 16px;
  }
  .intro {
    padding: 50px 0;
    gap: 30px;
    grid-template-columns: 1fr;
  }
  .seal {
    max-width: 190px;
    justify-self: end;
    margin-right: 15px;
  }
  .seal strong {
    font-size: 55px;
  }
  .seal span {
    font-size: 8px;
  }
  .section-heading {
    display: block;
  }
  .section-heading span {
    display: block;
    margin-bottom: 18px;
  }
  .giveaway {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .giveaway button {
    justify-self: start;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .fields label {
    margin: 20px 0;
  }
  #entry-section {
    padding: 24px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.giveaway > *,
.intro > *,
.fields > * {
  min-width: 0;
}
h1,
h2,
h3,
.giveaway p {
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
@keyframes seal-arrival {
  from {
    clip-path: inset(0 0 12% 0);
  }
  to {
    clip-path: inset(0);
  }
}
.seal {
  animation: seal-arrival 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .seal {
    animation: none;
  }
}

select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px;
  background: var(--white);
  color: var(--ink);
  font:
    16px "DM Sans",
    sans-serif;
}
