:root {
  --page-bg: #88a9c7;
  --page-grid: rgba(255, 255, 255, 0.25);
  --panel-bg: #d8d2c2;
  --panel-shadow: #5d6d7e;
  --panel-highlight: #fffff0;
  --ink: #1e2a35;
  --accent: #c13e2f;
  --fridge-light: #f6f8fb;
  --fridge-mid: #d9e0e8;
  --fridge-dark: #a8b4c2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", Verdana, Tahoma, sans-serif;
  color: var(--ink);
  background-color: var(--page-bg);
  background-image:
    linear-gradient(var(--page-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid) 1px, transparent 1px),
    radial-gradient(circle at top, #dbe8f4 0%, #88a9c7 55%, #58738f 100%);
  background-size: 24px 24px, 24px 24px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(980px, calc(100% - 28px));
  margin: 22px auto;
  padding: 14px;
  background: var(--panel-bg);
  border: 3px solid #7d8ea1;
  border-right-color: #425364;
  border-bottom-color: #425364;
  box-shadow: 0 0 0 3px #edf1f4, 10px 10px 0 rgba(30, 42, 53, 0.2);
}

.site-chrome,
.footer-bar,
.content-card,
.hero-panel {
  border: 2px solid #8c9cad;
  border-right-color: #536576;
  border-bottom-color: #536576;
  background: linear-gradient(180deg, var(--panel-highlight), var(--panel-bg));
}

.site-chrome {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 12px 14px;
}

.site-chrome h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 #fff9d9;
}

.eyebrow,
.kicker,
.meta-line,
.status-box,
.home-link,
.footer-bar,
.nav-strip {
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.kicker,
.meta-line {
  margin: 0;
  font-size: 0.75rem;
  color: #7d2c1f;
}

.status-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 10px;
  font-size: 0.75rem;
  background: #fef7d1;
  border: 2px solid #c6b56a;
}

.status-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4dae2f;
  box-shadow: 0 0 10px rgba(77, 174, 47, 0.8);
}

.hero-panel {
  margin-top: 16px;
  padding: 16px;
}

.hero-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.hero-copy p:last-child {
  margin: 0;
  max-width: 34ch;
  text-align: right;
}

.fridge-scene {
  padding: 12px;
  background:
    linear-gradient(180deg, #c1d0df 0%, #9fb2c4 100%);
  border: 2px solid #96aabc;
}

.fridge-door {
  position: relative;
  width: min(100%, 600px);
  height: 760px;
  margin: 0 auto;
  border-radius: 30px 30px 18px 18px;
  border: 3px solid #93a3b5;
  background: linear-gradient(135deg, var(--fridge-light) 0%, var(--fridge-mid) 50%, var(--fridge-dark) 100%);
  box-shadow:
    inset 18px 0 25px rgba(255, 255, 255, 0.8),
    inset -25px 0 35px rgba(76, 93, 112, 0.2),
    18px 18px 0 rgba(55, 72, 90, 0.25);
  overflow: hidden;
}

.freezer-line {
  position: absolute;
  top: 185px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(180deg, #9caaba, #e8eef5 65%, #97a7b7);
}

.handle {
  position: absolute;
  top: 120px;
  right: 34px;
  width: 18px;
  height: 440px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7e8da0, #eef3f8 55%, #7e8da0);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.25);
}

.magnet {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 10px;
  color: #1e2430;
  box-shadow: 4px 4px 0 rgba(48, 61, 75, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.magnet:hover,
.magnet:focus-visible {
  transform: translate(-2px, -3px) rotate(-1deg);
  box-shadow: 8px 8px 0 rgba(48, 61, 75, 0.2);
}

.magnet-title {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
}

.magnet-subtitle {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.magnet-music {
  top: 68px;
  left: 72px;
  width: 168px;
  height: 104px;
  border: 3px solid #3a3a42;
  border-radius: 16px;
  background:
    radial-gradient(circle at 38px 52px, #252525 0 14px, #e8e8d0 15px 20px, transparent 21px),
    radial-gradient(circle at 130px 52px, #252525 0 14px, #e8e8d0 15px 20px, transparent 21px),
    linear-gradient(180deg, #f9e18a, #d95b47);
}

.magnet-book {
  top: 248px;
  left: 96px;
  width: 150px;
  height: 126px;
  border: 3px solid #78593a;
  border-radius: 10px;
  background:
    linear-gradient(90deg, #d5be95 0 20px, #f2ddaa 20px 100%),
    linear-gradient(180deg, #f6edd2, #d6bf8f);
}

.magnet-book::before {
  content: "LIBRARY";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.magnet-comedy {
  top: 455px;
  left: 82px;
  width: 132px;
  height: 132px;
  border: 3px solid #9d7d0f;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40px 46px, #2f1f11 0 6px, transparent 7px),
    radial-gradient(circle at 92px 46px, #2f1f11 0 6px, transparent 7px),
    radial-gradient(circle at 66px 82px, transparent 0 22px, #2f1f11 23px 27px, transparent 28px),
    linear-gradient(180deg, #ffe874, #f8bf1f);
}

.magnet-projects {
  top: 300px;
  right: 105px;
  width: 186px;
  height: 186px;
  padding: 26px;
  border: 3px solid #823b60;
  clip-path: polygon(50% 0%, 61% 20%, 83% 8%, 74% 30%, 100% 34%, 78% 49%, 96% 68%, 71% 68%, 74% 93%, 50% 79%, 25% 93%, 29% 68%, 4% 68%, 21% 49%, 0% 34%, 26% 30%, 17% 8%, 39% 20%);
  background: linear-gradient(180deg, #ff9bbf, #ffdb63);
}

.note {
  position: absolute;
  width: 145px;
  padding: 12px;
  background: #fff7b5;
  border: 1px solid rgba(90, 76, 18, 0.3);
  box-shadow: 6px 6px 0 rgba(78, 67, 25, 0.15);
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: 1rem;
  line-height: 1.2;
  transform: rotate(-4deg);
}

.note p {
  margin: 0;
}

.note-top {
  top: 74px;
  right: 92px;
}

.note-bottom {
  bottom: 62px;
  right: 110px;
  transform: rotate(3deg);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 8px 12px;
  font-size: 0.72rem;
}

.content-card {
  margin-top: 16px;
  padding: 18px;
}

.nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.75rem;
}

.nav-strip a,
.home-link {
  display: inline-block;
  padding: 8px 12px;
  border: 2px solid #7e8ea0;
  border-right-color: #4e5f70;
  border-bottom-color: #4e5f70;
  background: linear-gradient(180deg, #fff4bd, #edc86e);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.section-grid h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  text-transform: uppercase;
  line-height: 0.95;
}

.section-grid p {
  margin: 0 0 14px;
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.55;
}

.sidebar-note {
  padding: 16px;
  border: 2px dashed #7f5f1f;
  background: #fff6ba;
  font-family: "Courier New", Courier, monospace;
}

.sidebar-note p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sidebar-note p:last-child {
  margin-bottom: 0;
}

.home-link {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 14px);
    margin: 10px auto;
    padding: 10px;
  }

  .site-chrome,
  .hero-copy,
  .footer-bar,
  .section-grid {
    display: block;
  }

  .status-box,
  .hero-copy p:last-child,
  .footer-bar p + p,
  .sidebar-note {
    margin-top: 12px;
  }

  .fridge-door {
    height: 760px;
  }

  .magnet-projects {
    right: 52px;
    width: 160px;
    height: 160px;
    padding: 18px;
  }

  .note-top,
  .note-bottom {
    right: 34px;
  }
}

@media (max-width: 620px) {
  .fridge-door {
    height: 820px;
  }

  .magnet {
    transform: scale(0.95);
    transform-origin: top left;
  }

  .magnet:hover,
  .magnet:focus-visible {
    transform: scale(0.95) translate(-2px, -3px) rotate(-1deg);
  }

  .magnet-projects {
    top: 600px;
    left: 190px;
    right: auto;
    transform-origin: center;
  }

  .note-bottom {
    bottom: 22px;
  }
}