:root {
  --page-bg: #f4f4f6;
  --page-text: #222222;

  --canvas-bg: #f2efe9;
  --texture-light: #f5f3ee;
  --texture-dark: #ddd7cc;
  --cream: #f4e0b5;
  --red: #d52735;
  --black: #111111;

  --line-width: 6px;
}

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background-color: var(--page-bg);
  color: var(--page-text);
}

.site-header,
.site-footer {
  padding: 1.25rem 1rem;
  text-align: center;
}

.site-header {
  border-bottom: 1px solid #d9d9dd;
}

.site-footer {
  border-top: 1px solid #d9d9dd;
  font-size: 0.875rem;
  color: #555555;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.page-subtitle {
  margin: 0;
  max-width: 40rem;
  margin-inline: auto;
  font-size: 0.95rem;
  color: #444444;
}

.site-main {
  flex: 1;
  display: flex;
}

.artwork-center {
  flex: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
}

.artwork-canvas {
  position: relative;
  width: 312px;
  height: 426px;
  background-color: var(--canvas-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.halley-upper-texture {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 300px;
  background-image: repeating-linear-gradient(
    135deg,
    var(--texture-light) 0,
    var(--texture-light) 3px,
    var(--texture-dark) 4px,
    var(--texture-dark) 6px
  );
}

.halley-prison-frame {
  position: absolute;
  width: 104px;
  height: 104px;
  left: 104px;
  top: 90px;
  background-color: var(--black);
  border: var(--line-width) solid var(--black);
}

.halley-bar {
  position: absolute;
  top: var(--line-width);
  bottom: var(--line-width);
  width: 12px;
  background-color: var(--cream);
}

.halley-bar--1 { left: 4px; }
.halley-bar--2 { left: 28px; }
.halley-bar--3 { left: 52px; }
.halley-bar--4 { left: 76px; }

.halley-middle-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 260px;
  height: 40px;
  background-color: var(--cream);
  border-top: var(--line-width) solid var(--black);
  border-bottom: var(--line-width) solid var(--black);
}

.halley-lower {
  position: absolute;
  left: 0;
  right: 0;
  top: 300px;
  bottom: 0;
  background-color: var(--black);
}

.halley-lower-block {
  position: absolute;
  background-color: var(--red);
}

.halley-lower-block--top-1 {
  top: var(--line-width);
  left: var(--line-width);
  width: 96px;
  height: 36px;
}

.halley-lower-block--top-2 {
  top: var(--line-width);
  left: calc(var(--line-width) * 2 + 96px);
  width: 96px;
  height: 36px;
}

.halley-lower-block--top-3 {
  top: var(--line-width);
  left: calc(var(--line-width) * 3 + 192px);
  width: 96px;
  height: 36px;
}

.halley-lower-block--bottom {
  left: var(--line-width);
  right: var(--line-width);
  top: calc(var(--line-width) * 2 + 36px);
  bottom: var(--line-width);
}

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