:root {
  --bg: #dfe5ea;
  --panel: #f7f9fb;
  --panel-dark: #c7d0d8;
  --line: #8c99a3;

  --text: #26323a;
  --muted: #66747d;

  --cyan: #42b8d6;
  --cyan-dark: #248ca7;

  --green: #7dbb62;
  --yellow: #e7c95d;
  --red: #d96767;

  --shadow: rgba(50, 65, 75, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Verdana, Arial, sans-serif;
  color: var(--text);

  background:
    linear-gradient(
      to bottom,
      #eef2f5 0%,
      #dfe5ea 55%,
      #cfd7de 100%
    );

  min-height: 100vh;
}

/* main site frame */

#page {
  width: 960px;
  max-width: calc(100% - 20px);
  margin: 20px auto;
}

/* top "screen" */

header {
  position: relative;

  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #eef3f6 45%,
      #d7e0e6 100%
    );

  border: 2px solid var(--line);
  border-radius: 18px;

  padding: 18px 22px;
  margin-bottom: 16px;

  box-shadow:
    inset 0 2px 0 #ffffff,
    inset 0 -2px 0 #b7c2ca,
    0 5px 10px var(--shadow);
}

/* glossy top strip */

header::before {
  content: "";

  position: absolute;
  top: 6px;
  left: 16px;
  right: 16px;

  height: 5px;

  border-radius: 999px;

  background:
    linear-gradient(
      to right,
      transparent,
      rgba(255,255,255,0.9),
      transparent
    );
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: 34px;
  margin-bottom: 4px;

  color: #2e4c59;

  text-shadow: 0 1px 0 white;
}

h2 {
  font-size: 20px;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #dce7ed
    );

  border: 1px solid #a8b4bc;
  border-radius: 10px;

  padding: 7px 10px;

  box-shadow:
    inset 0 1px 0 white,
    0 2px 3px var(--shadow);
}

h3 {
  color: #365866;
}

a {
  color: var(--cyan-dark);
}

a:hover {
  color: #17697d;
}

/* two-column layout */

#layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

/* panels */

.sidebar-box,
.content-box {
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      var(--panel) 100%
    );

  border: 2px solid var(--line);
  border-radius: 15px;

  box-shadow:
    inset 0 1px 0 white,
    0 4px 8px var(--shadow);
}

.sidebar-box {
  padding: 12px;
  margin-bottom: 14px;
}

.content-box {
  padding: 16px;
  margin-bottom: 16px;
}

/* sidebar headers */

.sidebar-box h3 {
  margin: -12px -12px 10px;

  padding: 7px;

  text-align: center;

  border-radius: 12px 12px 5px 5px;

  background:
    linear-gradient(
      to bottom,
      #80d4e8,
      var(--cyan)
    );

  color: white;

  text-shadow: 0 1px 1px rgba(0,0,0,0.2);

  border-bottom: 1px solid var(--cyan-dark);
}

/* navigation */

nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

nav a {
  display: block;

  padding: 8px 10px;

  border-radius: 999px;

  text-decoration: none;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #dfe8ed
    );

  border: 1px solid #9ba8b0;

  color: #33434b;

  box-shadow:
    inset 0 1px 0 white,
    0 2px 2px rgba(0,0,0,0.08);

  transition:
    transform 0.08s ease,
    background 0.08s ease;
}

nav a:hover {
  transform: translateX(3px);

  background:
    linear-gradient(
      to bottom,
      #e9fbff,
      #bdebf5
    );
}

nav a:active {
  transform: translateX(3px) translateY(1px);

  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.15);
}

/* character cards */

.characters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.character {
  position: relative;

  text-align: center;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #e7edf1
    );

  border: 1px solid #9ba7af;
  border-radius: 14px;

  padding: 8px;

  box-shadow:
    inset 0 1px 0 white,
    0 3px 5px rgba(0,0,0,0.1);
}

.character img {
  width: 100%;
  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: 10px;

  border: 1px solid #909ba3;

  background: #d5dde2;
}

.character a {
  display: block;

  margin-top: 7px;

  text-decoration: none;

  font-weight: bold;
}

/* little colored "software tile" strips */

.juno {
  border-top: 6px solid #68ae65;
}

.julie {
  border-top: 6px solid #5778c2;
}

.rowan {
  border-top: 6px solid #d06161;
}

.avery {
  border-top: 6px solid #8c67ad;
}

/* project cards */

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project {
  padding: 12px;

  border: 1px solid #9aa6ad;
  border-radius: 12px;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #e9eef1
    );

  box-shadow:
    inset 0 1px 0 white;
}

/* status / notifications */

.update {
  position: relative;

  padding: 12px 12px 12px 18px;

  border-radius: 10px;

  background:
    linear-gradient(
      to bottom,
      #fbffff,
      #dff3f8
    );

  border: 1px solid #8fb8c2;
}

.update::before {
  content: "";

  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;

  width: 6px;

  border-radius: 0 5px 5px 0;

  background: var(--cyan);
}

.date {
  font-weight: bold;
  color: var(--cyan-dark);
}

/* 3DS-like circular icon buttons */

.icon-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.icon-button {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 25%,
      #ffffff,
      #d6e0e6 55%,
      #a9b4bb 100%
    );

  border: 2px solid #8c989f;

  box-shadow:
    inset 0 2px 2px white,
    0 3px 5px rgba(0,0,0,0.15);

  text-decoration: none;

  color: #40525c;

  font-weight: bold;
}

.icon-button:hover {
  background:
    radial-gradient(
      circle at 35% 25%,
      #ffffff,
      #caf3fb 55%,
      #65c6dc 100%
    );
}

.icon-button:active {
  transform: translateY(2px);
}

/* system-style bottom bar */

footer {
  position: relative;

  margin-top: 18px;

  padding: 12px 16px;

  text-align: center;

  color: #43515a;

  background:
    linear-gradient(
      to bottom,
      #f8fafb,
      #cfd7dd
    );

  border: 2px solid #8f9ba3;
  border-radius: 16px;

  box-shadow:
    inset 0 1px 0 white,
    0 4px 8px var(--shadow);
}

/* tiny status lights */

footer::before,
footer::after {
  content: "";

  position: absolute;
  top: 50%;

  width: 8px;
  height: 8px;

  margin-top: -4px;

  border-radius: 50%;

  background: #65d46e;

  box-shadow: 0 0 4px rgba(101, 212, 110, 0.8);
}

footer::before {
  left: 14px;
}

footer::after {
  right: 14px;
}

/* optional badge styles */

.badge {
  display: inline-block;

  padding: 3px 7px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: bold;

  border: 1px solid #929da4;

  background:
    linear-gradient(
      to bottom,
      white,
      #dfe6ea
    );
}

.badge-current {
  color: #356b36;
}

.badge-wip {
  color: #8b6a19;
}

.badge-old {
  color: #8b4646;
}

/* mobile */

@media (max-width: 720px) {
  #layout {
    grid-template-columns: 1fr;
  }

  .characters {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}