:root {
  color-scheme: light;
  --cream: #f3ead7;
  --paper: #fff7e8;
  --ink: #2e2a24;
  --muted: #7f7769;
  --line: #2e2a24;
  --green: #b9d8b4;
  --green-dark: #6c9674;
  --blue: #b9d7e8;
  --pink: #e8b7bd;
  --wood: #c59b6d;
  --shadow: #d8c7a8;
  --dark: #1f1b17;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  image-rendering: pixelated;
  background:
    linear-gradient(90deg, rgba(46, 42, 36, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(46, 42, 36, 0.04) 1px, transparent 1px),
    var(--cream);
  background-size: 18px 18px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.desktop {
  width: min(760px, 100%);
  display: grid;
  gap: 16px;
}

.window {
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--shadow);
}

.titlebar {
  height: 34px;
  border-bottom: 3px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: var(--green);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.controls {
  display: flex;
  gap: 6px;
}

.control {
  width: 13px;
  height: 13px;
  border: 2px solid var(--line);
  background: var(--paper);
}

.content {
  padding: clamp(18px, 5vw, 34px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 5vw, 36px);
  align-items: end;
}

.copy {
  align-self: center;
}

.tag {
  width: max-content;
  border: 2px solid var(--line);
  background: var(--blue);
  padding: 6px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 4px 4px 0 rgba(46, 42, 36, 0.18);
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(22px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

.copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 34ch;
}

.scene {
  border: 3px solid var(--line);
  background: #dff0eb;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0 0 88px;
  background:
    linear-gradient(#c8e3ef 0 70%, #e9f3e7 70% 100%);
}

.cloud {
  position: absolute;
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow:
    18px 0 0 var(--paper),
    36px 0 0 var(--paper),
    18px -12px 0 var(--paper);
  width: 22px;
  height: 16px;
}

.cloud.one {
  top: 40px;
  left: 36px;
}

.cloud.two {
  top: 72px;
  right: 78px;
  transform: scale(0.8);
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background:
    linear-gradient(90deg, rgba(46, 42, 36, 0.12) 3px, transparent 3px) 0 0 / 18px 18px,
    var(--green);
  border-top: 3px solid var(--line);
}

.house-link {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  width: 122px;
  height: 120px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  z-index: 3;
}

.house-link:focus-visible {
  outline: 3px dashed var(--green-dark);
  outline-offset: 8px;
}

.house-link:hover .house,
.house-link:focus-visible .house {
  transform: translateY(-3px);
}

.house-link:hover .door,
.house-link:focus-visible .door {
  background: #d9ad77;
}

.house {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 122px;
  height: 86px;
  background: #f4dfb9;
  border: 3px solid var(--line);
  transition: transform 120ms steps(2, end);
}

.roof {
  position: absolute;
  left: -13px;
  top: -34px;
  width: 148px;
  height: 34px;
  background: var(--pink);
  border: 3px solid var(--line);
}

.roof::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -9px;
  height: 6px;
  background: rgba(46, 42, 36, 0.14);
}

.door {
  position: absolute;
  bottom: -3px;
  left: 45px;
  width: 34px;
  height: 48px;
  background: var(--wood);
  border: 3px solid var(--line);
}

.door::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 22px;
  width: 5px;
  height: 5px;
  background: var(--line);
}

.window-small {
  position: absolute;
  top: 19px;
  width: 24px;
  height: 24px;
  border: 3px solid var(--line);
  background: #fff7d4;
}

.window-small.left {
  left: 14px;
}

.window-small.right {
  right: 14px;
}

.cat {
  position: absolute;
  right: 50px;
  bottom: 86px;
  width: 32px;
  height: 24px;
  background: var(--dark);
  border: 3px solid var(--line);
}

.cat::before,
.cat::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--dark);
}

.cat::before {
  left: 0;
}

.cat::after {
  right: 0;
}

.rabbit {
  position: absolute;
  left: 56px;
  bottom: 82px;
  width: 30px;
  height: 22px;
  background: var(--paper);
  border: 3px solid var(--line);
}

.rabbit::before,
.rabbit::after {
  content: "";
  position: absolute;
  top: -23px;
  width: 8px;
  height: 22px;
  background: var(--paper);
  border: 3px solid var(--line);
}

.rabbit::before {
  left: 2px;
}

.rabbit::after {
  right: 2px;
}

.note {
  border: 3px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  box-shadow: 6px 6px 0 var(--shadow);
}

.note strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 720px) {
  body {
    padding: 16px;
    align-items: start;
  }

  .desktop {
    margin-top: 24px;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .scene {
    min-height: 240px;
  }

  .note {
    display: grid;
    gap: 6px;
  }
}
