:root {
  color-scheme: light;
  --ink: #30201d;
  --accent: #a83450;
  --paper: #fdf8f3;
  --line: #e9dcd3;
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  width: min(1120px, calc(100% - 96px));
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Inter", "Aptos", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}
.site-header { padding: 28px 0; border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -.055em;
}
.brand span { margin-left: -9px; }
.brand span, h1 span { color: var(--accent); }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding: clamp(44px, 8vh, 98px) 0;
}
h1 {
  margin: 0;
  font: 400 clamp(56px, 7vw, 103px)/.95 Georgia, serif;
  letter-spacing: -.075em;
}
p {
  max-width: 32ch;
  margin: 28px 0 0;
  color: #66514b;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.6;
}
.art {
  position: relative;
  aspect-ratio: 1.18;
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper);
}
.art img {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 91%;
  height: auto;
  transform: translate(-50%, -50%);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  color: #66514b;
  font-size: 14px;
}
@media (max-width: 720px) {
  body { width: calc(100% - 40px); }
  .site-header { padding: 19px 0; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
  h1 { font-size: clamp(48px, 11vw, 78px); }
  p { margin-top: 18px; }
  .desktop { display: none; }
  .art { border-radius: 22px; width: min(100%, 520px); }
}

.site-header, footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.site-header nav, footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
nav a, .text-link { color: var(--accent); font-weight: 650; text-underline-offset: .2em; }
.site-header nav a:last-child { border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; text-decoration: none; }
.site-header nav { align-items: center; }
.site-header nav a:last-child:hover { background: #f8e5e0; }
.text-link { display: inline-block; margin-top: 16px; }
.sparkle { position: absolute; z-index: 1; top: 18%; left: 20%; font-size: clamp(18px, 3vw, 36px); color: var(--accent); }
.inner { flex: 1; width: min(100%, 680px); margin-inline: auto; padding: clamp(48px, 8vw, 88px) 0; }
.inner h1 { font-size: clamp(52px, 8vw, 84px); }
.inner section, .questions { margin-top: 28px; }
.inner h2 { margin: 0; font-size: 22px; }
.inner p { max-width: 64ch; margin: 9px 0 0; font-size: 17px; }
.questions details, .site-notice section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.site-notice section { margin-top: 0; }
.site-notice section:first-of-type { margin-top: 28px; }
.questions p, .site-notice p { max-width: none; }
.site-notice p { text-align: justify; }
.questions summary { cursor: pointer; font-weight: 650; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }


.hero .copy {
  width: min-content;
  max-width: 100%;
}
.hero .copy p { max-width: none; text-align: justify; }

.hero-title {
  font-size: clamp(26px, 4.65vw, 67px);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .hero-title { font-size: clamp(26px, 8.5vw, 62px); }
}

@media (min-width: 721px) {
  .hero { grid-auto-rows: max-content; align-content: center; }
  .hero .art { aspect-ratio: auto; align-self: stretch; min-height: clamp(180px, 22vw, 270px); }
}

.login { width: min(100%, 520px); margin: auto; padding: 52px 0; }
.login h1 { font-size: clamp(44px, 8vw, 72px); }
.login p { max-width: none; font-size: 16px; }
.login .notice { margin: 20px 0 25px; }
.login form { background: #fff; border: 1px solid var(--line); padding: clamp(16px, 4vw, 28px); border-radius: 18px; }
.login label, .login legend { display: block; font-weight: 650; margin-bottom: 6px; }
.login input { width: 100%; margin-bottom: 16px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.login .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.login button { padding: 10px 13px; font: inherit; border-radius: 8px; cursor: pointer; }
.login button[type=submit] { background: var(--accent); color: white; border: 1px solid var(--accent); }
.login button[type=button] { background: white; color: var(--accent); border: 1px solid var(--line); }
.login button:disabled { opacity: .6; cursor: default; }
.login a { color: var(--accent); }
.login :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#result { min-height: 2.5em; margin: 12px 0; }
.login fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.field-error:not(:empty) { color: var(--accent); margin: -8px 0 16px; }
.login input[aria-invalid="true"] { border-color: var(--accent); }

.login legend { padding: 0; }
.recovery-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.recovery-fields input { text-align: center; padding-inline: 4px; }

.notice-art {
  display: block;
  width: min(100%, 380px);
  height: auto;
  margin: 12px auto 0;
}

.login-pig {
  display: block;
  position: relative;
  width: min(65%, 220px);
  height: auto;
  margin: 0 auto -4px;
  transform: translateY(4%);
  pointer-events: none;
}
