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

html {
  background: var(--night-deep);
  color: var(--ivory);
  scroll-padding-top: calc(var(--head-h, 64px) + 20px);
}

body {
  margin: 0;
  background:
    radial-gradient(40% 50% at 50% 30%, var(--crimson-glow), transparent 70%),
    linear-gradient(180deg, var(--night) 0, var(--night-deep) 1400px);
  background-repeat: no-repeat;
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: var(--lh);
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
td,
.control-what {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.keep {
  display: inline-block;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -60px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-2);
  background: var(--gold);
  color: var(--on-gold);
}

.skip-link:focus {
  top: var(--sp-2);
}

.cut-frame {
  position: relative;
}

.cut-frame::before,
.cut-frame::after {
  content: "";
  position: absolute;
  width: calc(var(--cut) * 1.4142);
  height: 2px;
  background: var(--gold-line-strong);
  pointer-events: none;
}

.cut-frame::before {
  top: var(--cut);
  left: 0;
  transform: rotate(-45deg);
  transform-origin: 0 0;
}

.cut-frame::after {
  right: 0;
  bottom: var(--cut);
  transform: rotate(-45deg);
  transform-origin: 100% 100%;
}

.cut-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--sp-3);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, transform var(--press) var(--ease-out);
}

.cut-button:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .cut-button:hover {
    background: var(--gold-bright);
  }
}

.arch-defs {
  position: absolute;
  width: 0;
  height: 0;
}
