:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f3f5f1;
  color: #17201a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(34, 91, 82, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(136, 51, 69, 0.12), transparent 48%),
    #f3f5f1;
}

.shell {
  position: relative;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.masthead {
  margin-bottom: 28px;
  padding-right: 250px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #49655d;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.profileCard {
  position: absolute;
  top: 56px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(23, 32, 26, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(23, 32, 26, 0.07);
}

.profileCard:hover,
.profileCard:focus-visible {
  border-color: rgba(34, 91, 82, 0.45);
  outline: none;
  transform: translateY(-1px);
}

.profileCard img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.profileCard strong,
.profileCard small {
  display: block;
}

.profileCard strong {
  margin-bottom: 2px;
  font-size: 0.98rem;
}

.profileCard small {
  color: #526159;
  font-size: 0.84rem;
}

.projects {
  display: grid;
  gap: 12px;
}

.project {
  position: relative;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(23, 32, 26, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(23, 32, 26, 0.08);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.projectClickable {
  cursor: pointer;
}

.project:hover,
.project:focus-visible {
  border-color: rgba(34, 91, 82, 0.45);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(23, 32, 26, 0.12);
}

.projectMain {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.projectMain:focus-visible {
  outline: 2px solid rgba(34, 91, 82, 0.55);
  outline-offset: 4px;
}

.projectMainDisabled {
  cursor: default;
}

.projectContent {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.projectText {
  min-width: 0;
}

.projectThumb,
.projectPreview {
  flex: 0 0 auto;
  width: 112px;
  height: 84px;
  border-radius: 6px;
  border: 1px solid rgba(23, 32, 26, 0.11);
  background: rgba(23, 32, 26, 0.06);
  overflow: hidden;
}

.projectThumb {
  object-fit: cover;
}

.projectPreview {
  position: relative;
  display: block;
}

.projectPreviewFrame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 180px;
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.47);
  transform-origin: center;
}

.project strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.project small {
  display: block;
  color: #526159;
  font-size: 0.98rem;
}

.projectHelp {
  margin-top: 8px;
  color: #225b52;
  font-size: 0.86rem;
  font-weight: 800;
}

.projectMeta {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.updatedLabel {
  color: #526159;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.updatedValue {
  color: #17201a;
  font-size: 0.96rem;
  font-weight: 800;
}

.statusRow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.actionLink {
  border: 1px solid rgba(23, 32, 26, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.actionLink:hover,
.actionLink:focus-visible {
  border-color: rgba(34, 91, 82, 0.5);
  outline: none;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 920px);
    padding: 34px 0;
  }

  .masthead {
    padding-right: 0;
  }

  .profileCard {
    position: static;
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  .project {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .projectMain {
    width: 100%;
  }

  .projectContent {
    align-items: flex-start;
  }

  .projectThumb,
  .projectPreview {
    width: 96px;
    height: 72px;
  }

  .projectPreviewFrame {
    transform: translate(-50%, -50%) scale(0.4);
  }

  .projectMeta {
    align-items: flex-start;
    text-align: left;
  }

  .statusRow {
    justify-content: flex-start;
  }

  .updated {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    white-space: normal;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #111613;
    color: #edf2ec;
  }

  body {
    background:
      linear-gradient(120deg, rgba(63, 145, 132, 0.16), transparent 42%),
      linear-gradient(300deg, rgba(196, 83, 107, 0.14), transparent 48%),
      #111613;
  }

  .project {
    border-color: rgba(237, 242, 236, 0.14);
    background: rgba(23, 32, 26, 0.78);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  }

  .profileCard {
    border-color: rgba(237, 242, 236, 0.14);
    background: rgba(23, 32, 26, 0.72);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  }

  .actionLink {
    border-color: rgba(237, 242, 236, 0.16);
    background: rgba(237, 242, 236, 0.08);
  }

  .project small,
  .updatedLabel,
  .eyebrow,
  .profileCard small {
    color: #aebcaf;
  }

  .projectHelp {
    color: #9cd5c8;
  }

  .updatedValue {
    color: #edf2ec;
  }

  .projectThumb,
  .projectPreview {
    border-color: rgba(237, 242, 236, 0.12);
    background: rgba(237, 242, 236, 0.08);
  }

}
