:root {
  color-scheme: light;
  --paper: #fff8ec;
  --ink: #29251f;
  --action: #a33b24;
  --attention: #9a5100;
  --muted: #6d6255;
  --line: #ddd3c3;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--attention);
  outline-offset: 6px;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 96px));
  min-height: 100svh;
  margin: 0 auto;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header {
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -2px;
  text-decoration: none;
}

.wordmark span {
  display: inline-block;
  margin-left: 4px;
  color: var(--action);
  transform: rotate(12deg);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--attention);
  font-size: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

main {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 48px;
  flex: 1;
  padding: 72px 0 88px;
}

.aside {
  margin: 0 0 24px;
  color: var(--action);
  font-size: 17px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.description {
  max-width: 390px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.retry {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--action);
  border-radius: 6px;
  background: var(--action);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.retry:hover {
  background: #842f1d;
}

.retry span {
  font-size: 24px;
  line-height: 1;
}

.return-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

figure {
  margin: 0;
  text-align: center;
}

figure img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
}

figcaption {
  width: fit-content;
  margin: 24px auto 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  transform: rotate(-3deg);
}

footer {
  min-height: 88px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .page {
    width: calc(100% - 40px);
  }

  header {
    min-height: 88px;
    gap: 12px;
  }

  .wordmark {
    font-size: 30px;
  }

  .status {
    font-size: 12px;
  }

  main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(44px, 10vw, 68px);
  }

  figure img {
    max-width: 240px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
